Helper class that collects the methods that a task or nested element holds to set attributes, create nested elements or hold PCDATA elements.
author | Andreas Aderhold |
---|---|
author | Hans Lellelid |
copyright | 2001,2002 THYRELL. All rights reserved |
version | $Id: f33d6ef40fb4caf6fa12b8f1db8977e33c0cd7eb $ |
package | phing |
__construct(string $class)
This method loads all methods for the specified class and categorizes them as setters, creators, slot listeners, etc. This way, the setAttribue() doesn't need to perform any introspection -- either the requested attribute setter/creator exists or it does not & a BuildException is thrown.
string
The classname for this IH.
addText(\Project $project, string $element, string $text)
createElement(\Project $project, string $element, string $elementName) : object
Valid creators can be in the form createFoo() or addFoo(Bar).
\Project
string
string
\BuildException |
---|
object
Returns the nested element.getAttributes() : string[]
string[]
getElementName(\Project $project, object $element) : string
When possible the full classnam (phing.tasks.system.PropertyTask) will be returned. If not available (loaded in taskdefs or typedefs) then the XML element name will be returned.
\Project
object
The Task or type element.
string
Fully qualified class name of element when possible.getHelper(string $class)
string
The class to create a Helper for
getNestedElements() : string[]
string[]
getPropertyName(string $methodName, string $prefix) : string
string
string
string
setAttribute(\Project $project, string $element, string $attributeName, mixed $value)
storeElement(\Project $project, string $element, string $child, string | null $elementName) : void
\Project
string
string
string
null
\BuildException |
---|
supportsCharacters() : boolean
boolean
warn(string $msg)
string
$attributeSetters : array
$bean : object
access | private |
---|
$helpers : array
$methodAddText : string
$nestedCreators : array
$nestedStorers : array
$nestedTypes
$slotListeners : array
"task.current_file" -- which can be used in
task attributes, if supported. In the build XML these
are referred to like this: