ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This class provides a few utility functions for easily generating HTML for the browser plugin. More...
Public Member Functions | |
__construct ($baseUri, array $namespaceMap) | |
Creates the object. More... | |
fullUrl ($path) | |
Generates a 'full' url based on a relative one. More... | |
h ($input) | |
Escape string for HTML output. More... | |
link ($url, $label=null) | |
Generates a full -tag. More... | |
xmlName ($element) | |
This method takes an xml element in clark-notation, and turns it into a shortened version with a prefix, if it was a known namespace. More... | |
Protected Attributes | |
$baseUri | |
$namespaceMap | |
This class provides a few utility functions for easily generating HTML for the browser plugin.
Definition at line 16 of file HtmlOutputHelper.php.
Sabre\DAV\Browser\HtmlOutputHelper::__construct | ( | $baseUri, | |
array | $namespaceMap | ||
) |
Creates the object.
baseUri must point to the root of the application. This will be used to easily generate links.
The namespaceMap contains an array with the list of xml namespaces and their prefixes. WebDAV uses a lot of XML with complex namespaces, so that can be used to make output a lot shorter.
string | $baseUri | |
array | $namespaceMap |
Definition at line 45 of file HtmlOutputHelper.php.
References Sabre\DAV\Browser\HtmlOutputHelper\$baseUri, and Sabre\DAV\Browser\HtmlOutputHelper\$namespaceMap.
Sabre\DAV\Browser\HtmlOutputHelper::fullUrl | ( | $path | ) |
Generates a 'full' url based on a relative one.
For relative urls, the base of the application is taken as the reference url, not the 'current url of the current request'.
Absolute urls are left alone.
string | $path |
Definition at line 63 of file HtmlOutputHelper.php.
References $path, and Sabre\Uri\resolve().
Referenced by Sabre\DAV\Browser\HtmlOutputHelper\link().
Sabre\DAV\Browser\HtmlOutputHelper::h | ( | $input | ) |
Escape string for HTML output.
string | $input |
Definition at line 75 of file HtmlOutputHelper.php.
References $input.
Referenced by Sabre\DAV\Browser\HtmlOutputHelper\link(), Sabre\DAVACL\Xml\Property\SupportedPrivilegeSet\toHtml(), and Sabre\DAV\Browser\HtmlOutputHelper\xmlName().
Sabre\DAV\Browser\HtmlOutputHelper::link | ( | $url, | |
$label = null |
|||
) |
Generates a full -tag.
Url is automatically expanded. If label is not specified, we re-use the url.
string | $url | |
string | $label |
Definition at line 91 of file HtmlOutputHelper.php.
References $url, Sabre\DAV\Browser\HtmlOutputHelper\fullUrl(), and Sabre\DAV\Browser\HtmlOutputHelper\h().
Referenced by Sabre\DAV\Xml\Property\Href\toHtml(), and Sabre\DAVACL\Xml\Property\Acl\toHtml().
Sabre\DAV\Browser\HtmlOutputHelper::xmlName | ( | $element | ) |
This method takes an xml element in clark-notation, and turns it into a shortened version with a prefix, if it was a known namespace.
string | $element |
Definition at line 105 of file HtmlOutputHelper.php.
References Sabre\DAV\Browser\HtmlOutputHelper\h().
Referenced by Sabre\DAVACL\Xml\Property\SupportedPrivilegeSet\toHtml(), and Sabre\DAVACL\Xml\Property\Acl\toHtml().
|
protected |
Definition at line 23 of file HtmlOutputHelper.php.
Referenced by Sabre\DAV\Browser\HtmlOutputHelper\__construct().
|
protected |
Definition at line 30 of file HtmlOutputHelper.php.
Referenced by Sabre\DAV\Browser\HtmlOutputHelper\__construct().