CardDAV Client Library

Propstat
in package
implements XmlDeserializable

Represents XML DAV:propstat elements as PHP objects.

From RFC 4918: The propstat XML element MUST contain one prop XML element and one status XML element. The contents of the prop XML element MUST only list the names of properties to which the result in the status element applies. The optional precondition/ postcondition element and ’responsedescription’ text also apply to the properties named in ’prop’.

<!ELEMENT propstat (prop, status, error?, responsedescription?) >
Tags
psalm-immutable
psalm-import-type

DeserializedElem from Deserializers

Interfaces, Classes and Traits

XmlDeserializable

Table of Contents

$prop  : Prop
Contains properties related to a resource.
$status  : string
Holds a single HTTP status-line.
__construct()  : mixed
Constructs a Propstat element.
xmlDeserialize()  : Propstat
Deserializes the child elements of a DAV:propstat element and creates a new instance of Propstat.

Properties

$prop

Contains properties related to a resource.

public Prop $prop

$status

Holds a single HTTP status-line.

public string $status

Methods

__construct()

Constructs a Propstat element.

public __construct(string $status, Prop $prop) : mixed
Parameters
$status : string

The status value of the Propstat element.

$prop : Prop

The Prop child element, containing the reported properties.

Return values
mixed

xmlDeserialize()

Deserializes the child elements of a DAV:propstat element and creates a new instance of Propstat.

public static xmlDeserialize(Reader $reader) : Propstat
Parameters
$reader : Reader
Return values
Propstat

Search results