ConditionBase

Extends \ProjectComponent Implements \IteratorAggregate, \CustomChildCreator

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

author

Andreas Aderhold andi@binarycloud.com

copyright

2001,2002 THYRELL. All rights reserved

version

$Id: 4e5e33bd5784d9b68fab402fb7c75d980c2fbbf4 $

package

phing.tasks.system.condition

Methods

addAvailable

addAvailable(\AvailableTask $a) : void

Arguments

countConditions

countConditions() 

createAnd

createAnd() : \AndCondition

Response

\AndCondition

createContains

createContains() : \ContainsCondition

createEquals

createEquals() : \EqualsCondition

Response

\EqualsCondition

createIsFalse

createIsFalse() : \IsFalseCondition

createIsSet

createIsSet() : \IsSetCondition

Response

\IsSetCondition

createIsTrue

createIsTrue() : \IsTrueCondition

Response

\IsTrueCondition

createNot

createNot() : \NotCondition

Response

\NotCondition

createOr

createOr() : \OrCondition

Response

\OrCondition

createOs

createOs() : \OsCondition

Response

\OsCondition

createReferenceExists

createReferenceExists() : \ReferenceExistsCondition

Creates the object for the child element

customChildCreator(string $elementName, \Project $project) : \Condition
throws

Arguments

$elementName

string

$project

\Project

Response

\Condition

getConditions

getConditions() 

Required for IteratorAggregate

getIterator() 

Returns a reference to current project

getProject() : \Project
inherited

Response

\Project

Reference to current porject object

Logs a message with the given priority.

log(string $msg, integer $level = \Project::MSG_INFO) 
inherited

Arguments

$msg

string

The message to be logged.

$level

integer

The message's priority at this message should have

References the project to the current component.

setProject(\Project $project) 
inherited

Arguments

$project

\Project

The reference to the current project

Properties

conditions

conditions : 

Type(s)

Holds a reference to the project that a project component (a task, a target, etc.) belongs to

project : \Project
inherited
var

A reference to the current project instance

Type(s)

\Project