eZTemplateTypeOperator Class Reference
[Template operators]
Operators for checking variable type.
More...
List of all members.
|
Public Methods |
| | eZTemplateTypeOperator ($isArrayName="is_array",$isBooleanName="is_boolean",$isIntegerName="is_integer",$isFloatName="is_float",$isNumericName="is_numeric",$isStringName="is_string",$isObjectName="is_object",$isClassName="is_class",$isNullName="is_null",$isSetName="is_set",$isUnsetName="is_unset",$getTypeName="get_type",$getClassName="get_class") |
| & | operatorList () |
| | namedParameterPerOperator () |
| | namedParameterList () |
| | modify (&$tpl,&$operatorName,&$operatorParameters,&$rootNamespace,&$currentNamespace,&$value,&$namedParameters) |
Public Attributes |
|
| Operators |
| | The array of operators.
|
|
| IsArrayName |
| | The "less than" name.
|
Detailed Description
Operators for checking variable type.
Usage: $var|is_array or is_array( $var ) $var|is_boolean or is_boolean( $var ) $var|is_integer or is_integer( $var ) $var|is_float or is_float( $var ) $var|is_numeric or is_numeric( $var ) $var|is_string or is_string( $var ) $var|is_object or is_object( $var ) $var|is_class('my_class') or is_class( 'my_class', $var ) $var|is_null or is_null( $var ) is_set( $var ) is_unset( $var ) $var|get_type or get_type( $var ) $var|get_class or get_class( $var )
Definition at line eztemplatetypeoperator.php.
Constructor & Destructor Documentation
| eZTemplateTypeOperator::eZTemplateTypeOperator |
( |
$ |
isArrayName = "is_array", |
|
|
$ |
isBooleanName = "is_boolean", |
|
|
$ |
isIntegerName = "is_integer", |
|
|
$ |
isFloatName = "is_float", |
|
|
$ |
isNumericName = "is_numeric", |
|
|
$ |
isStringName = "is_string", |
|
|
$ |
isObjectName = "is_object", |
|
|
$ |
isClassName = "is_class", |
|
|
$ |
isNullName = "is_null", |
|
|
$ |
isSetName = "is_set", |
|
|
$ |
isUnsetName = "is_unset", |
|
|
$ |
getTypeName = "get_type", |
|
|
$ |
getClassName = "get_class" |
|
) |
|
|
Member Function Documentation
| eZTemplateTypeOperator::modify |
( |
&$ |
tpl, |
|
|
&$ |
operatorName, |
|
|
&$ |
operatorParameters, |
|
|
&$ |
rootNamespace, |
|
|
&$ |
currentNamespace, |
|
|
&$ |
value, |
|
|
&$ |
namedParameters |
|
) |
|
|
|
|
Examines the input value and outputs a boolean value. See class documentation for more information.
Definition at line eztemplatetypeoperator.php. |
| eZTemplateTypeOperator::namedParameterList |
( |
|
) |
|
|
| eZTemplateTypeOperator::namedParameterPerOperator |
( |
|
) |
|
|
|
|
- Returns:
-
true to tell the template engine that the parameter list exists per operator type.
Definition at line eztemplatetypeoperator.php. |
| & eZTemplateTypeOperator::operatorList |
( |
|
) |
|
|
The documentation for this class was generated from the following file:
|