# 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
jump to top

Package: phing\tasks\system

<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()'`
inherited Inherited from: \ConditionBase::$$conditions
Default value `array()`Details

Type
  n/a
Inherited_from
  \ConditionBase::$$conditions

`$property= ''`
Details

Type
  n/a

`$value= '"true"'`
Default value`"true"`Details

Type
  n/a

### Methods

`addAvailable( $a ) : void`
inherited

Inherited from: \ConditionBase::addAvailable()
Parameters

Name | Type | Description
--- | --- | ---
$a |  |

`countConditions( ) : void`
inherited

Inherited from: \ConditionBase::countConditions()
`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 |

`getConditions( ) : void`
inherited

Inherited from: \ConditionBase::getConditions()
`getIterator( ) : void`
inherited

Required for IteratorAggregate

Inherited from: \ConditionBase::getIterator()
`getProject( ) : void`
inherited

Inherited from: ProjectComponent::getProject()\ConditionBase::getProject()
`log( ) : void`
inherited

Inherited from: ProjectComponent::log()\ConditionBase::log()
`main( ) : void`

See whether our nested condition holds and set the property.

`setProject( ) : void`
inherited

Inherited from: ProjectComponent::setProject()\ConditionBase::setProject()
`setProperty( $p ) : void`

The name of the property to set. Required.

Parameters

Name | Type | Description
--- | --- | ---
$p |  |

`setValue( $v ) : void`

The value for the property to set. Defaults to "true".

Parameters

Name | Type | Description
--- | --- | ---
$v |  |

Documentation was generated by DocBlox 0.17.1.