Prop
in package
implements
XmlDeserializable
Represents XML DAV:prop elements as PHP objects.
Tags
Table of Contents
Interfaces
- XmlDeserializable
Constants
- PROP_DESERIALIZERS : array<string, callable|string> = [\MStilkerich\CardDavClient\XmlElements\Element...
- Deserializers for various child elements of prop.
Properties
- $props : array<string, mixed>
- The child elements of this Prop element.
Methods
- xmlDeserialize() : mixed
- Deserializes the child elements of a DAV:prop element and creates a new instance of Prop.
- storeProperty() : void
- Processes a deserialized prop child element.
Constants
PROP_DESERIALIZERS
Deserializers for various child elements of prop.
public
array<string, callable|string>
PROP_DESERIALIZERS
= [\MStilkerich\CardDavClient\XmlElements\ElementNames::ABOOK_HOME => [\MStilkerich\CardDavClient\XmlElements\Deserializers::class, 'deserializeHrefMulti'], \MStilkerich\CardDavClient\XmlElements\ElementNames::ADD_MEMBER => [\MStilkerich\CardDavClient\XmlElements\Deserializers::class, 'deserializeHrefSingle'], \MStilkerich\CardDavClient\XmlElements\ElementNames::CURUSRPRINC => [\MStilkerich\CardDavClient\XmlElements\Deserializers::class, 'deserializeHrefSingle'], \MStilkerich\CardDavClient\XmlElements\ElementNames::RESTYPE => '\Sabre\Xml\Deserializer\enum', \MStilkerich\CardDavClient\XmlElements\ElementNames::SUPPORTED_REPORT_SET => [\MStilkerich\CardDavClient\XmlElements\Deserializers::class, 'deserializeSupportedReportSet'], \MStilkerich\CardDavClient\XmlElements\ElementNames::SUPPORTED_ADDRDATA => [\MStilkerich\CardDavClient\XmlElements\Deserializers::class, 'deserializeSupportedAddrData'], \MStilkerich\CardDavClient\XmlElements\ElementNames::ADDRDATATYPE => [\MStilkerich\CardDavClient\XmlElements\Deserializers::class, 'deserializeToAttributes']]
Tags
Properties
$props
The child elements of this Prop element.
public
array<string, mixed>
$props
= []
Maps child element name to a child-element specific value.
Tags
Methods
xmlDeserialize()
Deserializes the child elements of a DAV:prop element and creates a new instance of Prop.
public
static xmlDeserialize(Reader $reader) : mixed
Parameters
- $reader : Reader
storeProperty()
Processes a deserialized prop child element.
private
storeProperty(array<string|int, mixed> $deserElem) : void
If the child element is known to this class, the deserialized value is stored to Prop::$props.
Parameters
- $deserElem : array<string|int, mixed>