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