Maileon PHP client  1.5.0
Easily integrate your PHP application with Maileon.
com_maileon_api_mailings_Attachment Class Reference
Inheritance diagram for com_maileon_api_mailings_Attachment:
com_maileon_api_xml_AbstractXMLWrapper

Public Member Functions

 __construct ($id=null, $filename=null, $sizekb=null, $mime_type=null, $diagnosis=null, $created=null, $updated=null)
 
 fromXML ($xmlElement)
 
 toXML ()
 
 toString ()
 
- Public Member Functions inherited from com_maileon_api_xml_AbstractXMLWrapper
 fromXML ($xmlElement)
 
 fromXMLString ($xmlString)
 
 toXML ()
 
 toXMLString ()
 
 toString ()
 

Public Attributes

 $id
 
 $filename
 
 $sizekb
 
 $mime_type
 
 $diagnosis
 
 $created
 
 $updated
 

Detailed Description

The wrapper class for a Maileon attachment. This class wraps the XML structure.

Author
Viktor Balogh | Wanadis Kft. | balogh.viktor@maileon.hu

Definition at line 8 of file Attachment.php.

Constructor & Destructor Documentation

com_maileon_api_mailings_Attachment::__construct (   $id = null,
  $filename = null,
  $sizekb = null,
  $mime_type = null,
  $diagnosis = null,
  $created = null,
  $updated = null 
)

Constructor initializing default values.

Parameters
type$id
type$filename
type$sizekb
type$mime_type
type$diagnosis
type$created
type$updated

Definition at line 29 of file Attachment.php.

Member Function Documentation

com_maileon_api_mailings_Attachment::fromXML (   $xmlElement)

Initialization of the attachment from a simple xml element.

Parameters
SimpleXMLElement$xmlElementThe xml element that is used to parse the attachment from.

Definition at line 53 of file Attachment.php.

com_maileon_api_mailings_Attachment::toXML ( )

Creates the XML representation of an attachment

Returns

Definition at line 69 of file Attachment.php.

com_maileon_api_mailings_Attachment::toString ( )

Human readable representation of this wrapper.

Returns
string A human readable version of the mailing.

Definition at line 90 of file Attachment.php.


The documentation for this class was generated from the following file: