/usr/share/php/Horde/View/Json.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 | <?php
/**
* @category Horde
* @package View
*/
/**
* Concrete class for handling views.
*
* @category Horde
* @package View
*/
class Horde_View_Json extends Horde_View_Base
{
/**
* Processes a template and returns the output.
*
* @param string $name The template to process.
*
* @return string The template output.
*/
public function render($name = '', $locals = array())
{
return json_encode((object)(array)$this);
}
/**
* Satisfy the abstract _run function in Horde_View_Base.
*/
protected function _run()
{
}
}
|