⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
php
/
Horde
/
Core
/
Ui
/
View File Name :
VarRenderer.php
* @category Horde * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Core */ /** * The Horde_Core_Ui_VarRenderer:: class provides base functionality for other * Horde UI elements. * * @author Jason M. Felice
* @category Horde * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Core */ class Horde_Core_Ui_VarRenderer { /** * Parameters which change this renderer's behavior. * * @var array */ protected $_params; /** * Constructs a new renderer. * * @param array $params The name of the variable which will track this UI * widget's state. */ public function __construct($params = array()) { $this->_params = $params; } /** * Constructs a new instance. * * @param mixed $driver This is the renderer subclass we will instantiate. * If an array is passed, the first element is the * library path and the second element is the driver * name. * @param array $params Parameters specific to the subclass. * * @return Horde_Core_Ui_VarRenderer A subclass instance. * @throws Horde_Exception */ public static function factory($driver, $params = array()) { if (is_array($driver)) { $app = $driver[0]; $driver = $driver[1]; } $driver = Horde_String::ucfirst(basename($driver)); if (!empty($app)) { include_once $GLOBALS['registry']->get('fileroot', $app) . '/lib/Ui/VarRenderer/' . $driver . '.php'; } $class = __CLASS__ . '_' . $driver; if (!class_exists($class)) { throw new LogicException('Class definition of ' . $class . ' not found.'); } return new $class($params); } /** * Renders a variable. * * @param Horde_Form $form A Horde_Form instance, * or null if none is available. * @param Horde_Form_Variable $var A Horde_Form_Variable. * @param Variables $vars A Horde_Variables instance. * @param boolean $isInput Whether this is an input field. */ public function render($form, $var, $vars, $isInput = false) { $state = '_renderVar' . ($isInput ? 'Input' : 'Display'); $method = $state . '_' . $var->type->getTypeName(); if (!method_exists($this, $method)) { $method = $state . 'Default'; } return $this->$method($form, $var, $vars); } /** * Finishes rendering after all fields are output. * * @return string TODO */ public function renderEnd() { return ''; } }