The Target component.
Carries all required target data. Implements the abstract class TaskContainer
addDataType(\RuntimeConfigurable $rtc)
addDependency(string $dependency)
| access | public |
|---|
stringThe dependency target to add
addTask(\Task $task)
getDependencies() : array
arrayReferece to target dependencoesgetDescription() : string
stringThe description text of this targetgetHidden() : boolean
If true, target does not come in phing -list
booleangetName() : string
| access | public |
|---|
stringThe name of the targetgetProject() : \Project
\ProjectReference to current porject objectgetTasks() : array
The task objects are copied here. Don't use this method to modify task objects.
arrayTask[]isHidden() : boolean
booleanmain()
Does some checking, then processes and performs the tasks for this target.
performTasks()
This method is for ZE2 and used for proper exception handling of task exceptions.
setDepends(string $depends)
stringComma separated list of targetnames that depend on this target
\BuildException |
|---|
setDescription(string $description)
stringThe description text
setIf(string $property)
The property name given as parameter must be present so the if condition evaluates to true
| access | public |
|---|
stringThe property name that has to be present
setName(string $name)
stringName of this target
setProject(\Project $project)
setUnless(string $property)
The property name given as parameter must be present so the unless condition evaluates to true
| access | public |
|---|
stringThe property name that has to be present
toString() : string
In our case it simply returns the target name field
stringThe string representation of this targettestIfCondition() : boolean
booleantrue if the property specified
in $this->ifCondition exists;
false otherwisetestUnlessCondition() : boolean
booleantrue if the property specified
in $this->unlessCondition exists;
false otherwise$children : array
$dependencies : array
$description : string
$hidden : boolean
$ifCondition : string
$name : string
$project : \Project
$unlessCondition : string