classes/phing/tasks/system/PhpEvalTask.php

Executes PHP function or evaluates expression and sets return value to a property.

WARNING: This task can, of course, be abused with devastating effects. E.g. do not modify internal Phing classes unless you know what you are doing.

author
Hans Lellelid
package
phing.tasks.system
todo
Add support for evaluating expressions
version
$Revision: 680 $

\FunctionParam

Supports the <param> nested tag for PhpTask.

package
phing.tasks.system

Properties

Propertyprivate  $val= ''
Details
Type

Methods

methodpublic  addText(  $v ) :
Parameters
Name Type Description
$v
methodpublic  getValue( ) :
methodpublic  setValue(  $v ) :
Parameters
Name Type Description
$v

\PhpEvalTask

Executes PHP function or evaluates expression and sets return value to a property.

WARNING: This task can, of course, be abused with devastating effects. E.g. do not modify internal Phing classes unless you know what you are doing.

Extends from
\Task
author
Hans Lellelid
copyright
2001,2002 THYRELL. All rights reserved
package
phing.tasks.system
todo
Add support for evaluating expressions
version
$Revision: 680 $

Properties

Propertyprotected  $class= ''
Details
Type
Propertyprotected  $expression= ''
Details
Type
Propertyprotected  $function= ''
Details
Type
Propertyprotected  $params= 'array'
Default valuearrayDetails
Type
Propertyprotected  $returnProperty= 'null'
Default valuenullDetails
Type

Methods

methodpublic  addText(  $expression ) :
Set PHP expression to evaluate.
Parameters
Name Type Description
$expression
methodprotected  callFunction( ) : mixed
Calls function and returns results.
Returns
Type Description
mixed
methodpublic  createParam( ) :
Add a nested tag.
methodprotected  evalExpression( ) : mixed
Evaluates expression and returns resulting value.
Returns
Type Description
mixed
methodpublic  main( ) :
Main entry point.
methodpublic  setClass(  $c ) :
Set [static] class which contains function to execute
Parameters
Name Type Description
$c
methodpublic  setExpression(  $expression ) :
Set PHP expression to evaluate.
Parameters
Name Type Description
$expression
methodpublic  setFunction(  $f ) :
Set function to execute
Parameters
Name Type Description
$f
methodpublic  setReturnProperty(  $r ) :
Sets property name to set with return value of function or expression.
Parameters
Name Type Description
$r
Documentation was generated by DocBlox 0.13.1.