# 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
  \ConditionTask
Author
  Andreas Aderhold
Copyright
  © 2001,2002 THYRELL. All rights reserved
Version
  $Revision: 557 $

### Properties

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

Type

`\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
Default value `null` Details

Type
  \Project
Inherited_from
  \ProjectComponent::$project

### 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( ) : \Project`
inherited

Returns a reference to current project

Inherited from: \ProjectComponent::getProject()
Returns

Type | Description
--- | ---
\Project | Reference to current porject object

`log( $msg, integer $level = Project::MSG_INFO ) : void`
inherited

Logs a message with the given priority.

Inherited from: \ProjectComponent::log()

@param string $msg The message to be logged.

Parameters

Name | Type | Description
--- | --- | ---
$msg |  |
$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()
Parameters

Name | Type | Description
--- | --- | ---
$project | \Project | The reference to the current project

## \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

`$outer= ''`

"Outer" ConditionBase class.

Details

Type

### 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.15.1.