Documentation

SupportedMethodSet
in package
implements XmlSerializable, HtmlOutput

supported-method-set property.

This property is defined in RFC3253, but since it's so common in other webdav-related specs, it is part of the core server.

This property is defined here: http://tools.ietf.org/html/rfc3253#section-3.1.3

Tags
copyright

Copyright (C) fruux GmbH (https://fruux.com/)

author

Evert Pot (http://evertpot.com/)

license

http://sabre.io/license/ Modified BSD License

Interfaces, Classes and Traits

XmlSerializable
Objects implementing XmlSerializable can control how they are represented in Xml.
HtmlOutput
WebDAV properties that implement this interface are able to generate their own html output for the browser plugin.

Table of Contents

$methods  : array<string|int, string>
List of methods.
__construct()  : mixed
Creates the property.
getValue()  : array<string|int, string>
Returns the list of supported http methods.
has()  : bool
Returns true or false if the property contains a specific method.
toHtml()  : string
Generate html representation for this value.
xmlSerialize()  : mixed
The xmlSerialize method is called during xml writing.

Properties

Methods

__construct()

Creates the property.

public __construct(array<string|int, string> $methods) : mixed
Parameters
$methods : array<string|int, string>
Return values
mixed

getValue()

Returns the list of supported http methods.

public getValue() : array<string|int, string>
Return values
array<string|int, string>

has()

Returns true or false if the property contains a specific method.

public has(string $methodName) : bool
Parameters
$methodName : string
Return values
bool

toHtml()

Generate html representation for this value.

public toHtml(HtmlOutputHelper $html) : string

The html output is 100% trusted, and no effort is being made to sanitize it. It's up to the implementor to sanitize user provided values.

The output must be in UTF-8.

The baseUri parameter is a url to the root of the application, and can be used to construct local links.

Parameters
$html : HtmlOutputHelper
Return values
string

xmlSerialize()

The xmlSerialize method is called during xml writing.

public xmlSerialize(Writer $writer) : mixed

Use the $writer argument to write its own xml serialization.

An important note: do not create a parent element. Any element implementing XmlSerializable should only ever write what's considered its 'inner xml'.

The parent of the current element is responsible for writing a containing element.

This allows serializers to be re-used for different element names.

If you are opening new elements, you must also close them again.

Parameters
$writer : Writer
Return values
mixed

Search results