CardDAV Client Library

Prop
in package
implements XmlDeserializable

Represents XML DAV:prop elements as PHP objects.

Tags
psalm-import-type

DeserializedElem from Deserializers

psalm-type

PropTypes = array { '{DAV:}add-member'?: string, '{DAV:}getetag'?: string, '{DAV:}resourcetype'?: list, '{DAV:}supported-report-set'?: list, '{DAV:}sync-token'?: string, '{DAV:}displayname'?: string, '{urn:ietf:params:xml:ns:carddav}supported-address-data'?: list<array{'content-type': string, version: string}>, '{http://calendarserver.org/ns/}getctag'?: string, '{urn:ietf:params:xml:ns:carddav}address-data'?: string, '{urn:ietf:params:xml:ns:carddav}addressbook-description'?: string, '{urn:ietf:params:xml:ns:carddav}max-resource-size'?: int, }

Interfaces, Classes and Traits

XmlDeserializable

Table of Contents

PROP_DESERIALIZERS  = [MStilkerichCardDavClientXmlElementsElementNames::ABOOK_HOME => [MStilkerichCardDavClientXmlElementsDeserializers::class, 'deserializeHrefMulti'], MStilkerichCardDavClientXmlElementsElementNames::ADD_MEMBER => [MStilkerichCardDavClientXmlElementsDeserializers::class, 'deserializeHrefSingle'], MStilkerichCardDavClientXmlElementsElementNames::CURUSRPRINC => [MStilkerichCardDavClientXmlElementsDeserializers::class, 'deserializeHrefSingle'], MStilkerichCardDavClientXmlElementsElementNames::RESTYPE => '\Sabre\Xml\Deserializer\enum', MStilkerichCardDavClientXmlElementsElementNames::SUPPORTED_REPORT_SET => [MStilkerichCardDavClientXmlElementsDeserializers::class, 'deserializeSupportedReportSet'], MStilkerichCardDavClientXmlElementsElementNames::SUPPORTED_ADDRDATA => [MStilkerichCardDavClientXmlElementsDeserializers::class, 'deserializeSupportedAddrData'], MStilkerichCardDavClientXmlElementsElementNames::ADDRDATATYPE => [MStilkerichCardDavClientXmlElementsDeserializers::class, 'deserializeToAttributes']]
Deserializers for various child elements of prop.
$props  : array<string, mixed>
The child elements of this Prop element.
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 = [MStilkerichCardDavClientXmlElementsElementNames::ABOOK_HOME => [MStilkerichCardDavClientXmlElementsDeserializers::class, 'deserializeHrefMulti'], MStilkerichCardDavClientXmlElementsElementNames::ADD_MEMBER => [MStilkerichCardDavClientXmlElementsDeserializers::class, 'deserializeHrefSingle'], MStilkerichCardDavClientXmlElementsElementNames::CURUSRPRINC => [MStilkerichCardDavClientXmlElementsDeserializers::class, 'deserializeHrefSingle'], MStilkerichCardDavClientXmlElementsElementNames::RESTYPE => '\Sabre\Xml\Deserializer\enum', MStilkerichCardDavClientXmlElementsElementNames::SUPPORTED_REPORT_SET => [MStilkerichCardDavClientXmlElementsDeserializers::class, 'deserializeSupportedReportSet'], MStilkerichCardDavClientXmlElementsElementNames::SUPPORTED_ADDRDATA => [MStilkerichCardDavClientXmlElementsDeserializers::class, 'deserializeSupportedAddrData'], MStilkerichCardDavClientXmlElementsElementNames::ADDRDATATYPE => [MStilkerichCardDavClientXmlElementsDeserializers::class, 'deserializeToAttributes']]
Tags
psalm-var

array<string, callable(\Sabre\Xml\Reader):void | class-string<\Sabre\Xml\XmlDeserializable>>

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
psalm-var

PropTypes

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
Return values
mixed

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>
Tags
psalm-param

DeserializedElem $deserElem

Return values
void

Search results