tasks/system/ConditionTask.php
<condition> task as a generalization of <available>
This task supports boolean logic as well as pluggable conditions to decide, whether a property should be set.
This task does not extend Task to take advantage of ConditionBase.
- Access
- public
- Author
- Andreas Aderhold
- Copyright
- 2001,2002 THYRELL. All rights reserved
- Package
- phing.tasks.system
- Version
- $Id$
\ConditionTask
<condition> task as a generalization of <available>
This task supports boolean logic as well as pluggable conditions to decide, whether a property should be set.
This task does not extend Task to take advantage of ConditionBase.
- Parent(s)
- \ConditionBase < \ProjectComponent
- Access
- public
- Author
- Andreas Aderhold
- Copyright
- 2001,2002 THYRELL. All rights reserved
- Version
- $Id$
Properties

$conditions= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \ConditionBase::$$conditions

\Project
$project= 'null'
Holds a reference to the project that a project component (a task, a target, etc.) belongs to
A reference to the current project instanceInherited from: \ProjectComponent::$$project\ConditionBase::$$projectnullDetails- Type
- \Project
- Inherited_from
- \ProjectComponent::$$project
- Inherited_from
- \ConditionBase::$$project
Methods

addAvailable(
$a
)
:
void| Name | Type | Description |
|---|---|---|
| $a |

createAnd(
)
:
\AndCondition| Type | Description |
|---|---|
| \AndCondition |

createContains(
)
:
\ContainsCondition| Type | Description |
|---|---|
| \ContainsCondition |

createEquals(
)
:
\EqualsCondition| Type | Description |
|---|---|
| \EqualsCondition |

createIsFalse(
)
:
\IsFalseCondition| Type | Description |
|---|---|
| \IsFalseCondition |

createIsSet(
)
:
\IsSetCondition| Type | Description |
|---|---|
| \IsSetCondition |

createIsTrue(
)
:
\IsTrueCondition| Type | Description |
|---|---|
| \IsTrueCondition |

createNot(
)
:
\NotCondition| Type | Description |
|---|---|
| \NotCondition |

createOr(
)
:
\OrCondition| Type | Description |
|---|---|
| \OrCondition |

createOs(
)
:
\OsCondition| Type | Description |
|---|---|
| \OsCondition |

createReferenceExists(
)
:
\ReferenceExistsCondition| Type | Description |
|---|---|
| \ReferenceExistsCondition |

getProject(
)
:
\ProjectReturns a reference to current project
Inherited from: \ProjectComponent::getProject()\ConditionBase::getProject()| Type | Description |
|---|---|
| \Project | Reference to current porject object |

log(
string $msg, integer $level
=
Project::MSG_INFO
)
:
voidLogs a message with the given priority.
Inherited from: \ProjectComponent::log()\ConditionBase::log()| Name | Type | Description |
|---|---|---|
| $msg | string | The message to be logged. |
| $level | integer | The message's priority at this message should have |

setProject(
\Project $project
)
:
voidReferences the project to the current component.
Inherited from: \ProjectComponent::setProject()\ConditionBase::setProject()| Name | Type | Description |
|---|---|---|
| $project | \Project | The reference to the current project |

setProperty(
$p
)
:
voidThe name of the property to set. Required.
| Name | Type | Description |
|---|---|---|
| $p |