task as a generalization of

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.

author Andreas Aderhold
copyright 2001,2002 THYRELL. All rights reserved
version $Id$
access public
package phing.tasks.system

 Methods

addAvailable()

addAvailable(\AvailableTask $a) : void
Inherited
inherited_from \ConditionBase::addAvailable()

Parameters

$a

countConditions()

countConditions() 
Inherited
inherited_from \ConditionBase::countConditions()

createAnd()

createAnd() : \AndCondition
Inherited
inherited_from \ConditionBase::createAnd()

Returns

createContains()

createContains() : \ContainsCondition
Inherited
inherited_from \ConditionBase::createContains()

Returns

createEquals()

createEquals() : \EqualsCondition
Inherited
inherited_from \ConditionBase::createEquals()

Returns

createIsFalse()

createIsFalse() : \IsFalseCondition
Inherited
inherited_from \ConditionBase::createIsFalse()

Returns

createIsSet()

createIsSet() : \IsSetCondition
Inherited
inherited_from \ConditionBase::createIsSet()

Returns

createIsTrue()

createIsTrue() : \IsTrueCondition
Inherited
inherited_from \ConditionBase::createIsTrue()

Returns

createNot()

createNot() : \NotCondition
Inherited
inherited_from \ConditionBase::createNot()

Returns

createOr()

createOr() : \OrCondition
Inherited
inherited_from \ConditionBase::createOr()

Returns

createOs()

createOs() : \OsCondition
Inherited
inherited_from \ConditionBase::createOs()

Returns

createReferenceExists()

createReferenceExists() : \ReferenceExistsCondition
Inherited
inherited_from \ConditionBase::createReferenceExists()

Returns

Creates the object for the child element

customChildCreator(string $elementName, \Project $project) : \Condition
Inherited
inherited_from \ConditionBase::customChildCreator()

Parameters

$elementName

string

$project

\Project

Exceptions

\BuildException

Returns

getConditions()

getConditions() 
Inherited
inherited_from \ConditionBase::getConditions()

Required for IteratorAggregate

getIterator() 
Inherited
inherited_from \ConditionBase::getIterator()

Returns a reference to current project

getProject() : \Project
Inherited
inherited_from \ProjectComponent::getProject()
inherited_from \ConditionBase::getProject()

Returns

\ProjectReference to current porject object

Logs a message with the given priority.

log(string $msg, integer $level) 
Inherited
inherited_from \ProjectComponent::log()
inherited_from \ConditionBase::log()

Parameters

$msg

string

The message to be logged.

$level

integer

The message's priority at this message should have

See whether our nested condition holds and set the property.

main() 

References the project to the current component.

setProject(\Project $project) 
Inherited
inherited_from \ProjectComponent::setProject()
inherited_from \ConditionBase::setProject()

Parameters

$project

\Project

The reference to the current project

The name of the property to set.

setProperty($p) 

Required.

Parameters

$p

The value for the property to set.

setValue($v) 

Defaults to "true".

Parameters

$v

 Properties

 

$conditions 
Inherited
inherited_from \ConditionBase::$$conditions
 

$project : \Project
Inherited
inherited_from \ProjectComponent::$$project
inherited_from \ConditionBase::$$project
 

$property 
 

$value