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: 8a83bd996348f364ad168855bc3ebebc07d0cf8f $ |
package |
phing |
__construct( $elementName)
access |
public |
---|---|
addChild(\UnknownElement $child)
getDescription() : string
string
The text description of the task
getLocation() : \Location
getOwningTarget() : \Target
getProject() : \Project
getRegisterSlot(string $slotName)
string
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getTag() : string
string
The XML element name that is unknown
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
handleChild(\IntrospectionHelper $ih, $parent, \UnknownElement $child, \RuntimeConfigurable $childWrapper)
handleChildren( $parent, object $parentWrapper)
@param object $parent The parent object the unkown element belongs to
object
The parent wrapper object
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws | |
---|---|
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
makeObject(\UnknownElement $ue, \RuntimeConfigurable $w) : object
\UnknownElement
The unknown element to create the real object for.
Must not be <code>null</code>.
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
maybeConfigure()
perform()
setDescription(string $desc)
string
The text describing the task
setLocation(\Location $location)
setOwningTarget(\Target $target)
setProject(\Project $project)
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
elementName :
realThing :
children :
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project