Wrapper class that holds all information necessary to create a task that did not exist when Phing started.
This has something to do with phing encountering an task XML element it is not aware of at start time. This is a situation where special steps need to be taken so that the element is then known.
| author |
Andreas Aderhold andi@binarycloud.com |
|---|---|
| author |
Hans Lellelid hans@xmpl.org |
| version |
$Id: aba1d73cc012ecc9885d6950db7a9340a01c7ed4 $ |
| package |
phing |
__construct($elementName)
| access |
public |
|---|
getTag() : string
stringThe XML element name that is unknown
maybeConfigure()
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
addChild(\UnknownElement $child)
handleChildren($parent, object $parentWrapper)
@param object $parent The parent object the unkown element belongs to
objectThe parent wrapper object
makeObject(\UnknownElement $ue, \RuntimeConfigurable $w) : object
objectThe Task or DataType represented by the given unknown element.
makeTask(\UnknownElement $ue, \RuntimeConfigurable $w, boolean $onTopLevel = false) : \Task
booleanWhether to treat this task as if it is top-level.
\TaskThe freshly created task
getTaskName() : string
stringName of this task
setOwningTarget(\Target $target)
getOwningTarget() : \Target
setTaskName(string $name) : string
string
stringA string representing the name of this task for log
getTaskType() : string
stringThe type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
stringThe message to be logged.
integerThe message's priority at this message should have
setDescription(string $desc)
stringThe text describing the task
getDescription() : string
stringThe text description of the task
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
| throws |
|---|
getLocation() : \Location
setLocation(\Location $location)
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
perform()
setProject(\Project $project)
getProject() : \Project
elementName :
realThing :
children :
description : string
| var |
|---|
string
taskType : string
| var |
|---|
string
taskName : string
| var |
|---|
string
project : \Project