/usr/share/php/Horde/View.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 extends Horde_View_Base
{
/**
* Includes the template in a scope with only public variables.
*
* @param string The template to execute. Not declared in the function
* signature so it stays out of the view's public scope.
* @param array Any local variables to declare.
*/
protected function _run()
{
// Set local variables.
if (is_array(func_get_arg(1))) {
foreach (func_get_arg(1) as $key => $value) {
${$key} = $value;
}
}
include func_get_arg(0);
}
}
|