64 foreach ($this->privileges as $privName) {
68 $writer->endElement();
82 function has($privilegeName) {
84 return in_array($privilegeName, $this->privileges);
125 foreach (
$tree as $element) {
126 if ($element[
'name'] !==
'{DAV:}privilege') {
129 $result[] = $element[
'value'][0];
153 array_map([$html,
'xmlName'], $this->
getValue())
parseInnerTree(array $elementMap=null)
Parses all elements below the current element.
static xmlDeserialize(Reader $reader)
The deserialize method is called during xml parsing.
startElement($name)
Opens a new element.
has($privilegeName)
Returns true or false, whether the specified principal appears in the list.
__construct(array $privileges)
Creates the object.
The Reader class expands upon PHP's built-in XMLReader.
WebDAV properties that implement this interface are able to generate their own html output for the br...
getValue()
Returns the list of privileges.
This is the XML element interface.
toHtml(HtmlOutputHelper $html)
Generate html representation for this value.
writeElement($name, $content=null)
Write a full element tag and it's contents.
xmlSerialize(Writer $writer)
The xmlSerialize method is called during xml writing.
This class provides a few utility functions for easily generating HTML for the browser plugin...