Class soapclientmime

Description

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

  • access: public
  • version: $Id: nusoapmime.php,v 1.7 2005/07/27 19:24:42 snichol Exp $
  • author: Scott Nichol <snichol@sourceforge.net>
  • author: Thanks to Guillaume and Henning Reich for posting great attachment code to the mail list

Located in /core/nusoap/lib/nusoapmime.php (line 48)

soapclient
   |
   --soapclientmime
Method Summary
string addAttachment (string $data, [string $filename = ''], [string $contenttype = 'application/octet-stream'], [string $cid = false])
array getAttachments ()
Methods
addAttachment (line 82)

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.

  • return: The content-id (cid) of the attachment
  • access: public
string addAttachment (string $data, [string $filename = ''], [string $contenttype = 'application/octet-stream'], [string $cid = false])
  • 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)
clearAttachments (line 102)

clears the MIME attachments for the current request.

  • access: public
void clearAttachments ()
getAttachments (line 116)

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.

  • return: The attachments.
  • access: public
array getAttachments ()

Documentation generated on Tue, 4 Oct 2005 21:59:20 -0700 by phpDocumentor 1.3.0RC3