tasks/system/PhpEvalTask.php

Show: inherited
Table of Contents

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: 1378 $  

\FunctionParam

Package: phing\tasks\system

Supports the <param> nested tag for PhpTask.

Properties

Propertyprivate  $val= ''
Details
Type
n/a

Methods

methodpublicaddText(  $v ) : void

Parameters
Name Type Description
$v
methodpublicgetValue( ) : void

methodpublicsetValue(  $v ) : void

Parameters
Name Type Description
$v

\PhpEvalTask

Package: phing\tasks\system

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.

Parent(s)
\Task < \ProjectComponent
Author
Hans Lellelid  
Todo
Add support for evaluating expressions  
Version
$Revision: 1378 $  

Properties

Propertyprotected  $class= ''
Details
Type
n/a
Propertyprotected  $expression= ''
Details
Type
n/a
Propertyprotected  $function= ''
Details
Type
n/a
Propertyprotected  $logLevel= 'Project::MSG_INFO'
Default valueProject::MSG_INFODetails
Type
n/a
Propertyprotected  $params= 'array()'
Default valuearray()Details
Type
n/a
Propertyprotected  $returnProperty= 'null'
Default valuenullDetails
Type
n/a

Methods

methodpublicaddText(  $expression ) : void

Set PHP expression to evaluate.

Parameters
Name Type Description
$expression
methodprotectedcallFunction( ) : mixed

Calls function and returns results.

Returns
Type Description
mixed
methodpubliccreateParam( ) : void

Add a nested tag.

methodprotectedevalExpression( ) : mixed

Evaluates expression and returns resulting value.

Returns
Type Description
mixed
methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void

Main entry point.

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetClass(  $c ) : void

Set [static] class which contains function to execute

Parameters
Name Type Description
$c
methodpublicsetDescription( ) : void

methodpublicsetExpression(  $expression ) : void

Set PHP expression to evaluate.

Parameters
Name Type Description
$expression
methodpublicsetFunction(  $f ) : void

Set function to execute

Parameters
Name Type Description
$f
methodpublicsetLevel( string $level ) : void

Set level of log messages generated (default = info)

Parameters
Name Type Description
$level string
methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetReturnProperty(  $r ) : void

Sets property name to set with return value of function or expression.

Parameters
Name Type Description
$r
methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

Documentation was generated by DocBlox 0.17.1.