tasks/system/condition/OrCondition.php
<or> condition container.
Iterates over all conditions and returns true as soon as one evaluates to true.
- Access
- public
- Author
- Andreas Aderhold
- Copyright
- 2001,2002 THYRELL. All rights reserved
- Package
- phing.tasks.system.condition
- Version
- $Id$
\OrCondition
Package: phing\tasks\system\condition
<or> condition container.
Iterates over all conditions and returns true as soon as one evaluates to true.
- Parent(s)
- \Condition < \ProjectComponent
- Access
- public
- Author
- Andreas Aderhold
- Copyright
- 2001,2002 THYRELL. All rights reserved
- Version
- $Id$
Properties

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

\Project
$project= 'null'
inherited
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::$$project
Default value
nullDetails- Type
- \Project
- Inherited_from
- \ProjectComponent::$$project
- Inherited_from
- \ConditionBase::$$project
Methods

addAvailable(
$a
)
:
void
inherited
Inherited from:
\ConditionBase::addAvailable()
Parameters
| Name | Type | Description |
|---|---|---|
| $a |

createAnd(
)
:
\AndCondition
inherited
Inherited from:
\ConditionBase::createAnd()
Returns
| Type | Description |
|---|---|
| \AndCondition |

createContains(
)
:
\ContainsCondition
inherited
Inherited from:
\ConditionBase::createContains()
Returns
| Type | Description |
|---|---|
| \ContainsCondition |

createEquals(
)
:
\EqualsCondition
inherited
Inherited from:
\ConditionBase::createEquals()
Returns
| Type | Description |
|---|---|
| \EqualsCondition |

createIsFalse(
)
:
\IsFalseCondition
inherited
Inherited from:
\ConditionBase::createIsFalse()
Returns
| Type | Description |
|---|---|
| \IsFalseCondition |

createIsSet(
)
:
\IsSetCondition
inherited
Inherited from:
\ConditionBase::createIsSet()
Returns
| Type | Description |
|---|---|
| \IsSetCondition |

createIsTrue(
)
:
\IsTrueCondition
inherited
Inherited from:
\ConditionBase::createIsTrue()
Returns
| Type | Description |
|---|---|
| \IsTrueCondition |

createNot(
)
:
\NotCondition
inherited
Inherited from:
\ConditionBase::createNot()
Returns
| Type | Description |
|---|---|
| \NotCondition |

createOr(
)
:
\OrCondition
inherited
Inherited from:
\ConditionBase::createOr()
Returns
| Type | Description |
|---|---|
| \OrCondition |

createOs(
)
:
\OsCondition
inherited
Inherited from:
\ConditionBase::createOs()
Returns
| Type | Description |
|---|---|
| \OsCondition |

createReferenceExists(
)
:
\ReferenceExistsCondition
inherited
Inherited from:
\ConditionBase::createReferenceExists()
Returns
| Type | Description |
|---|---|
| \ReferenceExistsCondition |

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

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

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