PHP Class Horde_Core_Ui_VarRenderer, horde

Author: Jason M. Felice ([email protected])
Exibir arquivo Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_params array Parameters which change this renderer's behavior.

Public Methods

Method Description
__construct ( array $params = [] ) Constructs a new renderer.
factory ( mixed $driver, array $params = [] ) : Horde_Core_Ui_VarRenderer Constructs a new instance.
render ( Horde_Form $form, Horde_Form_Variable $var, Variables $vars, boolean $isInput = false ) Renders a variable.
renderEnd ( ) : string Finishes rendering after all fields are output.

Method Details

__construct() public method

Constructs a new renderer.
public __construct ( array $params = [] )
$params array The name of the variable which will track this UI widget's state.

factory() public static method

Constructs a new instance.
public static factory ( mixed $driver, array $params = [] ) : Horde_Core_Ui_VarRenderer
$driver mixed 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.
$params array Parameters specific to the subclass.
return Horde_Core_Ui_VarRenderer A subclass instance.

render() public method

Renders a variable.
public render ( Horde_Form $form, Horde_Form_Variable $var, Variables $vars, boolean $isInput = false )
$form Horde_Form A Horde_Form instance, or null if none is available.
$var Horde_Form_Variable A Horde_Form_Variable.
$vars Variables A Horde_Variables instance.
$isInput boolean Whether this is an input field.

renderEnd() public method

Finishes rendering after all fields are output.
public renderEnd ( ) : string
return string TODO

Property Details

$_params protected_oe property

Parameters which change this renderer's behavior.
protected array $_params
return array