PHP Класс Horde_Kolab_Format_Decorator_Timed, horde

Copyright 2010-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.
Автор: Gunnar Wrobel ([email protected])
Наследование: extends Horde_Kolab_Format_Decorator_Base
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Horde_Kolab_Format $handler, Horde_Support_Timer $timer, 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.
timeSpent ( ) : float Report the time spent for loading/saving objects.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Horde_Kolab_Format $handler, Horde_Support_Timer $timer, mixed $logger = null )
$handler Horde_Kolab_Format The handler to be decorated.
$timer Horde_Support_Timer The timer.
$logger mixed The optional logger. If set this needs to provide a debug() method.

load() публичный Метод

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.
Результат array The data array representing the object.

save() публичный Метод

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.
Результат resource The data as XML stream.

timeSpent() публичный Метод

Report the time spent for loading/saving objects.
public timeSpent ( ) : float
Результат float The amount of time.