The Target component.
Carries all required target data. Implements the abstract class TaskContainer
addDataType(\RuntimeConfigurable $rtc)
addDependency(string $dependency)
access | public |
---|
string
The dependency target to add
addTask(\Task $task)
getDependencies() : array
array
Referece to target dependencoesgetDescription() : string
string
The description text of this targetgetHidden() : boolean
If true, target does not come in phing -list
boolean
getName() : string
access | public |
---|
string
The name of the targetgetProject() : \Project
\Project
Reference to current porject objectgetTasks() : array
The task objects are copied here. Don't use this method to modify task objects.
array
Task[]isHidden() : boolean
boolean
main()
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)
string
Comma separated list of targetnames that depend on this target
\BuildException |
---|
setDescription(string $description)
string
The description text
setIf(string $property)
The property name given as parameter must be present so the if condition evaluates to true
access | public |
---|
string
The property name that has to be present
setName(string $name)
string
Name 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 |
---|
string
The property name that has to be present
toString() : string
In our case it simply returns the target name field
string
The string representation of this targettestIfCondition() : boolean
boolean
true
if the property specified
in $this->ifCondition
exists;
false
otherwisetestUnlessCondition() : boolean
boolean
true
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