classes/phing/Target.php
The Target component. Carries all required target data. Implements the abstract class {@link TaskContainer}
@author Andreas Aderhold andi@binarycloud.com
- access
- public
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing
- see
- \TaskContainer
- version
- $Revision: 915 $ $Date: 2010-10-12 04:30:52 +0200 (Tue, 12 Oct 2010) $
\Target
The Target component. Carries all required target data. Implements the abstract class {@link TaskContainer}
@author Andreas Aderhold andi@binarycloud.com
- Implements
- \TaskContainer
- see
- \TaskContainer
- access
- public
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing
- version
- $Revision: 915 $ $Date: 2010-10-12 04:30:52 +0200 (Tue, 12 Oct 2010) $
Properties

boolean
$hidden= 'false'
Whether to hide target in targets list (-list -p switches)
falseDetails- Type
- boolean
Methods

addDataType(
$rtc
)
:
@param object The RuntimeConfigurabel object
| Name | Type | Description |
|---|---|---|
| $rtc |
- access
- public

addDependency(
$dependency
)
:
@param string The dependency target to add
| Name | Type | Description |
|---|---|---|
| $dependency |
- access
- public

addTask(
$task
)
:
@param object The task object to add
| Name | Type | Description |
|---|---|---|
| $task |
- access
- public

getDependencies(
)
:
@return array Referece to target dependencoes

getDescription(
)
:
@return string The description text of this target

getHidden(
)
:
boolean| Type | Description |
|---|---|
| boolean |

getName(
)
:
@return string The name of the target
- access
- public

getProject(
)
:
@return Project Reference to current porject object

getTasks(
)
:
arrayThe task objects are copied here. Don't use this method to modify task objects.
| Type | Description |
|---|---|
| array |

main(
)
:

performTasks(
)
:
This method is for ZE2 and used for proper exception handling of task exceptions.

setDepends(
$depends
)
:
@param string $depends Comma separated list of targetnames that depend on this target
| Name | Type | Description |
|---|---|---|
| $depends |
- throws

setDescription(
$description
)
:
@param string The description text
| Name | Type | Description |
|---|---|---|
| $description |

setHidden(
$flag
)
:
\Target| Name | Type | Description |
|---|---|---|
| $flag |
| Type | Description |
|---|---|
| \Target |

setIf(
$property
)
:
@param string The property name that has to be present
| Name | Type | Description |
|---|---|---|
| $property |
- access
- public

setName(
$name
)
:
@param string Name of this target
| Name | Type | Description |
|---|---|---|
| $name |

setProject(
$project
)
:
@param Project The reference to the current project
| Name | Type | Description |
|---|---|---|
| $project |

setUnless(
$property
)
:
@param string The property name that has to be present
| Name | Type | Description |
|---|---|---|
| $property |
- access
- public

testIfCondition(
)
:
@return boolean true if the property specified
in $this->ifCondition exists;
false otherwise

testUnlessCondition(
)
:
@return boolean true if the property specified
in $this->unlessCondition exists;
false otherwise