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: 1378 $
\FunctionParam
Supports the <param> nested tag for PhpTask.
Properties
Methods
\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.
- Parent(s)
- \Task < \ProjectComponent
- Author
- Hans Lellelid
- Todo
- Add support for evaluating expressions
- Version
- $Revision: 1378 $
Properties
Methods

addText(
$expression
)
:
voidSet PHP expression to evaluate.
| Name | Type | Description |
|---|---|---|
| $expression |

evalExpression(
)
:
mixedEvaluates expression and returns resulting value.
| Type | Description |
|---|---|
| mixed |

setClass(
$c
)
:
voidSet [static] class which contains function to execute
| Name | Type | Description |
|---|---|---|
| $c |

setExpression(
$expression
)
:
voidSet PHP expression to evaluate.
| Name | Type | Description |
|---|---|---|
| $expression |

setLevel(
string $level
)
:
voidSet level of log messages generated (default = info)
| Name | Type | Description |
|---|---|---|
| $level | string |

setReturnProperty(
$r
)
:
voidSets property name to set with return value of function or expression.
| Name | Type | Description |
|---|---|---|
| $r |