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: 1a07dd0b3ac1379a2ce9c4981668c9234745a0a1 $

package

phing.tasks.system.condition

Methods

__construct

__construct( $taskName = 'component') 

Arguments

$taskName

addAvailable

addAvailable(\AvailableTask $a) : void

Arguments

countConditions

countConditions() : integer

Response

integer

createAnd

createAnd() : \AndCondition

Response

\AndCondition

createContains

createContains() : \ContainsCondition

createEquals

createEquals() : \EqualsCondition

Response

\EqualsCondition

createFilesMatch

createFilesMatch() 

createHasFreeSpace

createHasFreeSpace() 

createHttp

createHttp() 

createIsFailure

createIsFailure() 

createIsFalse

createIsFalse() : \IsFalseCondition

createIsFileSelected

createIsFileSelected() 

createIsPropertyFalse

createIsPropertyFalse() : \IsPropertyFalseCondition

createIsPropertyTrue

createIsPropertyTrue() : \IsPropertyTrueCondition

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

createPhingVersion

createPhingVersion() 

createReferenceExists

createReferenceExists() : \ReferenceExistsCondition

createSocket

createSocket() 

createVersionCompare

createVersionCompare() 

createXor

createXor() : \XorCondition

Response

\XorCondition

Creates the object for the child element

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

Arguments

$elementName

string

the name of the element that has been requested

$project

\Project

The project the element is in

Response

\Condition

getConditions

getConditions() : array<mixed,\Condition>

Response

array<mixed,\Condition>

Required for IteratorAggregate

getIterator() 

Returns a reference to current project

getProject() : \Project
inherited

Response

\Project

Reference to current porject object

Returns the name to use in logging messages.

getTaskName() : string

Response

string

the name to use in logging messages.

Logs a message with the given priority.

log(string $msg, integer $level = \Project::MSG_INFO) : void
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) : void
inherited

Arguments

$project

\Project

The reference to the current project

Sets the name to use in logging messages.

setTaskName(string $name) 

Arguments

$name

string

The name to use in logging messages. Should not be null.

Properties

conditions

conditions : 

Type(s)

taskName

taskName : string
var

Type(s)

string

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