PHP Class Horde_Kolab_Format_Xml_Type_String_Empty_List, horde

Copyright 2012-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.
Inheritance: extends Horde_Kolab_Format_Xml_Type_String_Empty
Mostrar archivo Open project: horde/horde

Protected Properties

Property Type Description
$default array A default value if required.

Public Methods

Method Description
loadNodeValue ( DOMNode $node, Horde_Kolab_Format_Xml_Helper $helper, array $params = [] ) : mixed | null Load the value of a node.

Protected Methods

Method Description
_escapeString ( string $value ) : string Escapes a string to fit into a comma-separated string.
_unescapeString ( string $value ) : string Unescapes a string from a comma-separated string.
generateWriteValue ( string $name, array $attributes, array $params ) : mixed Generate the value that should be written to the node. Override in the extending classes.

Method Details

_escapeString() protected method

Escapes a string to fit into a comma-separated string.
protected _escapeString ( string $value ) : string
$value string The original value.
return string The escaped value.

_unescapeString() protected method

Unescapes a string from a comma-separated string.
protected _unescapeString ( string $value ) : string
$value string The original value.
return string The unescaped value.

generateWriteValue() protected method

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.
return mixed The value to be written.

loadNodeValue() public method

Load the value of a node.
public loadNodeValue ( DOMNode $node, Horde_Kolab_Format_Xml_Helper $helper, array $params = [] ) : mixed | null
$node DOMNode Retrieve value for this node.
$helper Horde_Kolab_Format_Xml_Helper A XML helper instance.
$params array Additiona parameters for this parse operation.
return mixed | null The value or null if no value was found.

Property Details

$default protected_oe property

A default value if required.
protected array $default
return array