HtmlOutput.php 1005 B

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