PHP Class Horde_Kolab_Format_Decorator_Memory, horde
Copyright 2011-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not
receive this file, see
http://www.horde.org/licenses/lgpl21.
Mostra file
Open project: horde/horde
Public Methods
Method |
Description |
|
__construct ( Horde_Kolab_Format $handler, Horde_Support_Memory $memory, mixed $logger = null ) |
Constructor. |
|
load ( resource $xml, array $options = [] ) : array |
Load an object based on the given XML stream. |
|
save ( array $object, array $options = [] ) : resource |
Convert the data to a XML stream. |
|
Private Methods
Method Details
__construct()
public method
public __construct ( Horde_Kolab_Format $handler, Horde_Support_Memory $memory, mixed $logger = null ) |
$handler |
Horde_Kolab_Format |
The handler to be decorated. |
$memory |
Horde_Support_Memory |
The memory tracker. |
$logger |
mixed |
The logger. This must provide
a debug() method. |
Load an object based on the given XML stream.
public load ( resource $xml, array $options = [] ) : array |
$xml |
resource |
The XML stream of the message. |
$options |
array |
Additional options when parsing the XML. This
decorator provides no additional options. |
return |
array |
The data array representing the object. |
Convert the data to a XML stream.
public save ( array $object, array $options = [] ) : resource |
$object |
array |
The data array representing the object. |
$options |
array |
Additional options when writing the XML. This
decorator provides no additional options. |
return |
resource |
The data as XML stream. |