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
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.
- 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
Methods

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

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

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

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