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
- $Revision: 526 $ $Date: 2009-08-11 14:11:17 +0200 (Tue, 11 Aug 2009) $
\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
- $Revision: 526 $ $Date: 2009-08-11 14:11:17 +0200 (Tue, 11 Aug 2009) $
Properties

$conditions= 'array()'
array()Details- Type
- 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::$projectMethods

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 |

log(
$msg, integer $level
=
Project::MSG_INFO
)
:
void
@param string $msg The message to be logged.
| Name | Type | Description |
|---|---|---|
| $msg | ||
| $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()| 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 |