1<?php
2
3namespace Sabre\DAV\Browser;
4
5/**
6 * WebDAV properties that implement this interface are able to generate their
7 * own html output for the browser plugin.
8 *
9 * This is only useful for display purposes, and might make it a bit easier for
10 * people to read and understand the value of some properties.
11 *
12 * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
13 * @author Evert Pot (http://evertpot.com/)
14 * @license http://sabre.io/license/ Modified BSD License
15 */
16interface HtmlOutput {
17
18    /**
19     * Generate html representation for this value.
20     *
21     * The html output is 100% trusted, and no effort is being made to sanitize
22     * it. It's up to the implementor to sanitize user provided values.
23     *
24     * The output must be in UTF-8.
25     *
26     * The baseUri parameter is a url to the root of the application, and can
27     * be used to construct local links.
28     *
29     * @param HtmlOutputHelper $html
30     * @return string
31     */
32    function toHtml(HtmlOutputHelper $html);
33
34}
35