/usr/share/php/Horde/View/Interface.php is in php-horde-view 2.0.6-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | <?php
/**
* @category Horde
* @package View
*/
/**
* Horde_View_Interface is a reference for classes to be used as Horde
* Views. Implementing it is optional; type hinting is not used to
* enforce the interface.
*
* @category Horde
* @package View
*/
interface Horde_View_Interface
{
/**
* Undefined variables return null.
*
* @return null
*/
public function __get($name);
/**
* Accesses a helper object from within a template.
*
* @param string $method The helper method.
* @param array $args The parameters for the helper.
*
* @return string The result of the helper method.
*/
public function __call($name, $args);
/**
* Adds to the stack of template paths in LIFO order.
*
* @param string|array The directory (-ies) to add.
*/
public function addTemplatePath($path);
/**
* Resets the stack of template paths.
*
* To clear all paths, use Horde_View::setTemplatePath(null).
*
* @param string|array The directory (-ies) to set as the path.
*/
public function setTemplatePath($path);
/**
* Adds to the stack of helpers in LIFO order.
*
* @param Horde_View_Helper|string $helper The helper instance to add.
*
* @return Horde_View_Helper Returns the helper object that was added.
*/
public function addHelper($helper);
/**
* Assigns multiple variables to the view.
*
* The array keys are used as names, each assigned their corresponding
* array value.
*
* @param array $array The array of key/value pairs to assign.
*/
public function assign($array);
/**
* Processes a template and returns the output.
*
* @param string $name The template to process.
*
* @return string The template output.
*/
public function render($name);
/**
* Sets the output encoding.
*
* @param string $encoding A character set name.
*/
public function setEncoding($encoding);
/**
* Returns the current output encoding.
*
* @return string The current character set.
*/
public function getEncoding();
}
|