Maileon PHP client  1.5.0
Easily integrate your PHP application with Maileon.
com_maileon_api_json_AbstractJSONWrapper Class Reference
Inheritance diagram for com_maileon_api_json_AbstractJSONWrapper:
com_maileon_api_transactions_ContactReference com_maileon_api_transactions_ProcessingReport com_maileon_api_transactions_ProcessingReports com_maileon_api_transactions_RecentTransaction com_maileon_api_transactions_ReportContact com_maileon_api_transactions_Transaction

Public Member Functions

 toArray ()
 
 fromArray ($object_vars)
 
 __toString ()
 
 isEmpty ()
 

Detailed Description

Abstract base class for all JSON serializable elements.

All classes derived from this must initialize their member classes in the constructor.

Author
Balogh Viktor balog.nosp@m.h.vi.nosp@m.ktor@.nosp@m.mail.nosp@m.eon.h.nosp@m.u | Maileon - Wanadis Kft.

Definition at line 10 of file AbstractJSONWrapper.php.

Member Function Documentation

com_maileon_api_json_AbstractJSONWrapper::toArray ( )

Used to serialize this object to a JSON string. Override this to modify JSON parameters.

Returns
array This class in array form

Definition at line 18 of file AbstractJSONWrapper.php.

com_maileon_api_json_AbstractJSONWrapper::fromArray (   $object_vars)

Used to initialize this object from JSON. Override this to modify JSON parameters.

Parameters
array$object_varsThe array from json_decode

Definition at line 54 of file AbstractJSONWrapper.php.

com_maileon_api_json_AbstractJSONWrapper::__toString ( )

Creates a string representation from this object in the following format: ObjectName [ property1=value1, property2=value2, ... , propertyN=valueN ]

Returns
string

Definition at line 72 of file AbstractJSONWrapper.php.

com_maileon_api_json_AbstractJSONWrapper::isEmpty ( )

Can be overridden in derived classes to signal that this object is empty

Returns
boolean

Definition at line 89 of file AbstractJSONWrapper.php.


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