classes/phing/UnknownElement.php
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
- author
- Hans Lellelid
- package
- phing
- version
- $Revision: 552 $
\UnknownElement
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.
- Extends from
- \Task
- author
- Andreas Aderhold
- author
- Hans Lellelid
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing
- version
- $Revision: 552 $
Properties
Methods

__construct(
string $elementName
)
:
| Name | Type | Description |
|---|---|---|
| $elementName | string | The XML element name that is unknown |
- access
- public

addChild(
object $child
)
:
| Name | Type | Description |
|---|---|---|
| $child | object | The object representing the child element |

getTag(
)
:
stringUnnownElement
handles.| Type | Description |
|---|---|
| string |

getTaskName(
)
:
@return string The task's name

handleChildren(
object $parent, $parentWrapper
)
:
@param ProjectComponent The parent object the unkown element belongs to
| Name | Type | Description |
|---|---|---|
| $parent | object | The parent wrapper object |
| $parentWrapper |

main(
)
:
- throws
- if the task can not be created

makeObject(
\UnknownElement $ue, \RuntimeConfigurable $w
)
:
object| Name | Type | Description |
|---|---|---|
| $ue | \UnknownElement | The unknown element to create the real object for. Must not be |
| $w | \RuntimeConfigurable | Ignored in this implementation. |
| Type | Description |
|---|---|
| object |

makeTask(
\UnknownElement $ue, \RuntimeConfigurable $w, boolean $onTopLevel
=
false
)
:
\Task| Name | Type | Description |
|---|---|---|
| $ue | \UnknownElement | The unknwon element to create a task from |
| $w | \RuntimeConfigurable | The wrapper object |
| $onTopLevel | boolean | Whether to treat this task as if it is top-level. |
| Type | Description |
|---|---|
| \Task |