61 $report = (array)$report;
63 foreach ($report as
$r) {
65 if (!preg_match(
'/^{([^}]*)}(.*)$/',
$r))
66 throw new DAV\
Exception(
'Reportname must be in clark-notation');
68 $this->reports[] =
$r;
91 function has($reportName) {
121 foreach ($this->
getValue() as $val) {
125 $writer->endElement();
126 $writer->endElement();
An exception for terminatinating execution or to throw for unit testing.
This class provides a few utility functions for easily generating HTML for the browser plugin.
supported-report-set property.
toHtml(HtmlOutputHelper $html)
Generate html representation for this value.
getValue()
Returns the list of supported reports.
has($reportName)
Returns true or false if the property contains a specific report.
addReport($report)
Adds a report to this property.
__construct($reports=null)
Creates the property.
xmlSerialize(Writer $writer)
The xmlSerialize method is called during xml writing.
writeElement($name, $content=null)
Write a full element tag and it's contents.
startElement($name)
Opens a new element.
WebDAV properties that implement this interface are able to generate their own html output for the br...
Objects implementing XmlSerializable can control how they are represented in Xml.