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

Class: nusoap_server_mime

Source Location: /modules/nusoap/nusoapmime.php

Class Overview

nusoap_server
   |
   --nusoap_server_mime

nusoap_server_mime server 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:

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

Class Details

[line 284]
nusoap_server_mime server 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 318]

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

adds a MIME attachment to the current response.

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 338]

void clearAttachments( )

clears the MIME attachments for the current response.



Tags:

access:  public


[ Top ]

method getAttachments [line 352]

array getAttachments( )

gets the MIME attachments from the current request.

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