Ampache
[ class tree: Ampache ] [ index: Ampache ] [ all elements ]

Class: nusoap_client_mime

Source Location: /modules/nusoap/nusoapmime.php

Class Overview

nusoap_client
   |
   --nusoap_client_mime

nusoap_client_mime client supporting MIME attachments defined at http://www.w3.org/TR/SOAP-attachments. It depends on the PEAR Mail_MIME library.


Author(s):

Version:

  • $Id$

Methods


Child classes:

soapclientmime
nusoap_client_mime client supporting MIME attachments defined at http://www.w3.org/TR/SOAP-attachments. It depends on the PEAR Mail_MIME library.

Class Details

[line 54]
nusoap_client_mime client supporting MIME attachments defined at http://www.w3.org/TR/SOAP-attachments. It depends on the PEAR Mail_MIME library.



Tags:

author:  Thanks to Guillaume and Henning Reich for posting great attachment code to the mail list
author:  Scott Nichol <snichol@users.sourceforge.net>
version:  $Id$
access:  public


[ Top ]


Class Methods


method addAttachment [line 88]

string addAttachment( string $data, [string $filename = ''], [string $contenttype = 'application/octet-stream'], [string $cid = false])

adds a MIME attachment to the current request.

If the $data parameter contains an empty string, this method will read the contents of the file named by the $filename parameter.

If the $cid parameter is false, this method will generate the cid.




Tags:

return:  The content-id (cid) of the attachment
access:  public


Parameters:

string   $data   The data of the attachment
string   $filename   The filename of the attachment (default is empty string)
string   $contenttype   The MIME Content-Type of the attachment (default is application/octet-stream)
string   $cid   The content-id (cid) of the attachment (default is false)

[ Top ]

method clearAttachments [line 108]

void clearAttachments( )

clears the MIME attachments for the current request.



Tags:

access:  public


[ Top ]

method getAttachments [line 122]

array getAttachments( )

gets the MIME attachments from the current response.

Each array element in the return is an associative array with keys data, filename, contenttype, cid. These keys correspond to the parameters for addAttachment.




Tags:

return:  The attachments.
access:  public


[ Top ]


Documentation generated on Thu, 12 Feb 2009 08:00:04 +0900 by phpDocumentor 1.4.2