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: 65f8f706a91a2e93636b0f1729954dabb6999f4c $ |
| package |
phing |
getHelper(string $class)
stringThe class to create a Helper for
__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.
stringThe classname for this IH.
setAttribute(\Project $project, string $element, string $attributeName, mixed $value)
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).
| throws |
|---|
string
string
objectReturns the nested element.
storeElement(\Project $project, string $element, string $child, string|null $elementName = null) : void
supportsCharacters() : boolean
boolean
getAttributes() : string[]
string[]
getNestedElements() : 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.
objectThe Task or type element.
stringFully qualified class name of element when possible.
getPropertyName(string $methodName, string $prefix) : string
string
string
string
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 | |
|---|---|
| access |
private |
object
helpers : array
| var |
IntrospectionHelpers[] |
|---|
array