IsSetCondition

Extends \ProjectComponent Implements \Condition

Condition that tests whether a given property has been set.

author

Hans Lellelid [email protected] (Phing)

author

Stefan Bodewig [email protected] (Ant)

version

$Id: 7f924229801412025f52b9500cb5423e28c37c3c $

package

phing.tasks.system.condition

Methods

__construct

__construct() 
inherited

Check whether property is set.

evaluate() : boolean
Throws
\BuildException

Response

boolean

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.

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

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( $p) 

Arguments

$p

Properties

property

property : 

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

location

location : \Location
inherited
var

Type(s)

\Location

description

description : string
inherited
var

Type(s)

string