IsPropertyTrueCondition

Extends \ConditionBase Implements \Condition

Checks the value of a specified property.

Returns true if the property evaluates to true.

author

Siad Ardroumli [email protected]

package

phing.tasks.system.condition

Methods

__construct

__construct() 
inherited

addAvailable

addAvailable(\AvailableTask $a) : void
inherited

Arguments

countConditions

countConditions() : integer
inherited

Response

integer

createAnd

createAnd() : \AndCondition
inherited

Response

\AndCondition

createContains

createContains() : \ContainsCondition
inherited

createEquals

createEquals() : \EqualsCondition
inherited

Response

\EqualsCondition

createFilesMatch

createFilesMatch() 
inherited

createHasFreeSpace

createHasFreeSpace() 
inherited

createHttp

createHttp() 
inherited

createIsFailure

createIsFailure() 
inherited

createIsFalse

createIsFalse() : \IsFalseCondition
inherited

createIsFileSelected

createIsFileSelected() 
inherited

createIsPropertyFalse

createIsPropertyFalse() : \IsPropertyFalseCondition
inherited

createIsPropertyTrue

createIsPropertyTrue() : \IsPropertyTrueCondition
inherited

createIsSet

createIsSet() : \IsSetCondition
inherited

Response

\IsSetCondition

createIsTrue

createIsTrue() : \IsTrueCondition
inherited

Response

\IsTrueCondition

createMatches

createMatches() 
inherited

createNot

createNot() : \NotCondition
inherited

Response

\NotCondition

createOr

createOr() : \OrCondition
inherited

Response

\OrCondition

createOs

createOs() : \OsCondition
inherited

Response

\OsCondition

createPhingVersion

createPhingVersion() 
inherited

createReferenceExists

createReferenceExists() : \ReferenceExistsCondition
inherited

createSocket

createSocket() 
inherited

createVersionCompare

createVersionCompare() 
inherited

createXor

createXor() : \XorCondition
inherited

Response

\XorCondition

Creates the object for the child element

customChildCreator(string $elementName, \Project $project) : \Condition
inherited
Throws
\BuildException

Arguments

$elementName

string

the name of the element that has been requested

$project

\Project

The project the element is in

Response

\Condition

evaluate

evaluate() : boolean
Throws
\BuildException

Response

boolean

getConditions

getConditions() : array<mixed,\Condition>
inherited

Response

array<mixed,\Condition>

Returns the description of the current action.

getDescription() : string
inherited

Response

string

the description of the current action, or null if no description is available.

Required for IteratorAggregate

getIterator() 
inherited

Returns the file/location where this task was defined.

getLocation() : \Location
inherited

Response

\Location

the file/location where this task was defined. Should not return null.

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
inherited

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

Sets a description of the current action. This may be used for logging purposes.

setDescription(string $desc) 
inherited

Arguments

$desc

string

Description of the current action. May be null, indicating that no description is available.

Sets the file/location where this task was defined.

setLocation(\Location $location) 
inherited

Arguments

$location

\Location

The file/location where this task was defined. Should not be null

References the project to the current component.

setProject(\Project $project) : void
inherited

Arguments

$project

\Project

The reference to the current project

setProperty

setProperty( $property) : void

Arguments

$property

Sets the name to use in logging messages.

setTaskName(string $name) 
inherited

Arguments

$name

string

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

Properties

property

property : string|null
var

Type(s)

string|null

conditions

conditions : 
inherited

Type(s)

taskName

taskName : string
inherited
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

location

location : \Location
inherited
var

Type(s)

\Location

description

description : string
inherited
var

Type(s)

string