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
string
The 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
object
The parent wrapper object
makeObject(\UnknownElement $ue, \RuntimeConfigurable $w) : object
object
The Task or DataType represented by the given unknown element.
makeTask(\UnknownElement $ue, \RuntimeConfigurable $w, boolean $onTopLevel = false) : \Task
boolean
Whether to treat this task as if it is top-level.
\Task
The freshly created task
getTaskName() : string
string
Name of this task
setOwningTarget(\Target $target)
getOwningTarget() : \Target
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
getTaskType() : string
string
The type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
setDescription(string $desc)
string
The text describing the task
getDescription() : string
string
The 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