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

Защищенные свойства (Protected)

Свойство Тип Описание
$default string A default value if required.
$element string The class name representing the element that can occur multiple times.
$value integer Indicate which value type is expected.

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

Метод Описание
load ( string $name, &$attributes, DOMNode $parent_node, Horde_Kolab_Format_Xml_Helper $helper, array $params = [] ) : DOMNode | boolean Load the node value from the Kolab object.
save ( string $name, array $attributes, DOMNode $parent_node, Horde_Kolab_Format_Xml_Helper $helper, array $params = [] ) : DOMNode | boolean Update the specified attribute.

Защищенные методы

Метод Описание
generateWriteValue ( string $name, array $attributes, array $params ) : mixed Generate the value that should be written to the node. Override in the extending classes.

Приватные методы

Метод Описание
_writeMultiple ( DOMNode $parent_node, string $name, array $values, Horde_Kolab_Format_Xml_Helper $helper, array $params ) : array Write multiple values to one parent node.

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

generateWriteValue() защищенный Метод

Generate the value that should be written to the node. Override in the extending classes.
protected generateWriteValue ( string $name, array $attributes, array $params ) : mixed
$name string The name of the the attribute to be updated.
$attributes array The data array that holds all attribute values.
$params array The parameters for this write operation.
Результат mixed The value to be written.

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

Load the node value from the Kolab object.
public load ( string $name, &$attributes, DOMNode $parent_node, Horde_Kolab_Format_Xml_Helper $helper, array $params = [] ) : DOMNode | boolean
$name string The name of the the attribute to be fetched.
$parent_node DOMNode The parent node of the node to be loaded.
$helper Horde_Kolab_Format_Xml_Helper A XML helper instance.
$params array Additiona parameters for this parse operation.
Результат DOMNode | boolean The named DOMNode or false if no node value was found.

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

Update the specified attribute.
public save ( string $name, array $attributes, DOMNode $parent_node, Horde_Kolab_Format_Xml_Helper $helper, array $params = [] ) : DOMNode | boolean
$name string The name of the the attribute to be updated.
$attributes array The data array that holds all attribute values.
$parent_node DOMNode The parent node of the node that should be updated.
$helper Horde_Kolab_Format_Xml_Helper A XML helper instance.
$params array Additional parameters for this write operation.
Результат DOMNode | boolean The new/updated child node or false if this failed.

Описание свойств

$default защищенное свойство

A default value if required.
protected string $default
Результат string

$element защищенное свойство

The class name representing the element that can occur multiple times.
protected string $element
Результат string

$value защищенное свойство

Indicate which value type is expected.
protected int $value
Результат integer