# tasks/system/condition/ConditionBase.php

## \ConditionBase
jump to top

Package: phing\tasks\system\condition

Abstract baseclass for the <condition> task as well as several conditions - ensures that the types of conditions inside the task and the "container" conditions are in sync.

@author Hans Lellelid hans@xmpl.org

Implements
Parent(s)
  \ProjectComponent
Children
  \IfTask
  \ElseIfTask
  \NotCondition
  \OrCondition
  \AndCondition
  \WaitForTask
  \ConditionTask
Author
  Andreas Aderhold
Copyright
  © 2001,2002 THYRELL. All rights reserved
Version
  $Revision: 557 $

### Properties

`$conditions= 'array()'`
Default value `array()`Details

Type
  n/a

### Methods

`addAvailable( $a ) : void`

Parameters

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

`countConditions( ) : void`

`createAnd( ) : \AndCondition`

Returns

Type | Description
--- | ---
\AndCondition |

`createContains( ) : \ContainsCondition`

Returns

Type | Description
--- | ---
\ContainsCondition |

`createEquals( ) : \EqualsCondition`

Returns

Type | Description
--- | ---
\EqualsCondition |

`createIsFalse( ) : \IsFalseCondition`

Returns

Type | Description
--- | ---
\IsFalseCondition |

`createIsSet( ) : \IsSetCondition`

Returns

Type | Description
--- | ---
\IsSetCondition |

`createIsTrue( ) : \IsTrueCondition`

Returns

Type | Description
--- | ---
\IsTrueCondition |

`createNot( ) : \NotCondition`

Returns

Type | Description
--- | ---
\NotCondition |

`createOr( ) : \OrCondition`

Returns

Type | Description
--- | ---
\OrCondition |

`createOs( ) : \OsCondition`

Returns

Type | Description
--- | ---
\OsCondition |

`createReferenceExists( ) : \ReferenceExistsCondition`

Returns

Type | Description
--- | ---
\ReferenceExistsCondition |

`getConditions( ) : void`

`getIterator( ) : void`

Required for IteratorAggregate

`getProject( ) : void`

`log( ) : void`

`setProject( ) : void`

## \ConditionEnumeration
jump to top

Package: phing\tasks\system\condition

"Inner" class for handling enumerations.

Uses build-in PHP5 iterator support.

Implements

### Properties

`$num= '0'`

Current element number

Default value `0` Details

Type
  n/a

`$outer= ''`

"Outer" ConditionBase class.

Details

Type
  n/a

### Methods

`__construct( $outer ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$outer |  |

`current( ) : void`

`key( ) : void`

`next( ) : void`

`rewind( ) : void`

`valid( ) : void`

Documentation was generated by DocBlox 0.17.1.