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 andi@binarycloud.com |
---|---|
author |
Hans Lellelid hans@xmpl.org |
copyright |
2001,2002 THYRELL. All rights reserved |
version |
$Id: de242cfb0dd71d9eddf7306105b8eb06e9d5c5c7 $ |
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.
throws | |
---|---|
string
The classname for this IH.
addText(\Project $project, string $element, string $text)
createElement(\Project $project, object $element, string $elementName) : object
Valid creators can be in the form createFoo() or addFoo(Bar).
throws |
---|
\Project
object
Object the XML tag is child of. Often a task object.
string
XML tag name
object
Returns the nested element.
getAttributes() : array<mixed,string>
array<mixed,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() : array<mixed,string>
array<mixed,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 = null) : void
supportsCharacters() : boolean
boolean
warn(string $msg)
string
attributeSetters : array
var |
string[] |
---|
array
nestedCreators : array
var |
string[] |
---|
array
nestedStorers : array
var |
string[] |
---|
array
nestedTypes :
slotListeners : array
var |
string[] |
---|
array
methodAddText : string
var |
Method name of the addText (redundant?) method, if class supports it :) |
---|
string
bean : object
var |
---|
object
helpers : array
var |
IntrospectionHelpers[] |
---|
array