eZ Publish  [4.2]
eZTemplateOperator Class Reference

Base documentation class for operators. More...

List of all members.

Public Member Functions

 modify ($element, $tpl, &$op_name, &$op_params, &$namespace, &$value, &$named_params)
 namedParameterList ()
 operatorList ()

Detailed Description

Base documentation class for operators.

Note:
This class is never used but only exists for documentation purposes.

Definition at line 39 of file eztemplateoperator.php.


Member Function Documentation

eZTemplateOperator::modify ( element,
tpl,
&$  op_name,
&$  op_params,
&$  namespace,
&$  value,
&$  named_params 
)

Modifies the input variable $value and sets the output result in the same variable.

Note:
Remember to use references on the function arguments.
Parameters:
elementThe operator element, can be used for doing advanced querying but should be avoided.
tplThe template object which called this class
op_nameThe name of this operator
op_paramsThe parameters for this operator
namespaceThe namespace which this operator works in
valueThe current namespace for functions, this is usually used in functions for setting new variables. The input/output value
named_paramsThe parameters as named lookups, only required if namedParameterList() is defined. The values of each parameter is also fetched for you.

Definition at line 74 of file eztemplateoperator.php.

eZTemplateOperator::namedParameterList ( )

Returns an array of named parameters, this allows for easier retrieval of operator parameters. This also requires the function modify() has an extra parameter called $named_params.

The position of each element (starts at 0) represents the position of the original sequenced parameters. The key of the element is used as parameter name, while the contents define the type and requirements. The keys of each element content is: type - defines the type of parameter allowed required - boolean which says if the parameter is required or not, if missing and required an error is displayed default - the default value if the parameter is missing

Definition at line 64 of file eztemplateoperator.php.

eZTemplateOperator::operatorList ( )

Returns the template operators which are registered when using eZTemplate::registerOperators()

Definition at line 44 of file eztemplateoperator.php.


The documentation for this class was generated from the following file: