abstract class ScopedElement extends XMLElement
Data about an element with a name and optional namespace/schema/package attributes
Methods
loadFromXML(array $attributes)
This is the entry point method for loading data from XML. |
from XMLElement | |
array |
getAttributes()
Returns the assoc array of attributes. |
from XMLElement |
mixed |
getAttribute(string $name, mixed $defaultValue = null)
Gets a particular attribute by [case-insensitive] name. |
from XMLElement |
appendXml(DOMNode $node)
Appends DOM elements to represent this object in XML. |
from XMLElement | |
VendorInfo |
addVendorInfo(mixed $data)
Sets an associated VendorInfo object. |
from XMLElement |
VendorInfo |
getVendorInfoForType($type)
Gets the any associated VendorInfo object. |
from XMLElement |
string |
getConfiguredBehavior(string $bname)
Find the best class name for a given behavior Looks in build.properties for path like propel.behavior.[bname].class If not found, tries to autoload [Bname]Behavior If no success, returns 'Behavior' |
from XMLElement |
toString()
String representation of the current object. |
from XMLElement | |
__toString()
Magic string method |
from XMLElement | |
value |
getNamespace()
Get the value of the namespace. |
|
setNamespace($v $v)
Set the value of the namespace. |
||
value |
getPackage()
Get the value of package. |
|
setPackage($v $v)
Set the value of package. |
||
value |
getSchema()
Get the value of schema. |
|
setSchema($v $v)
Set the value of schema. |
Details
in XMLElement at line 48
public
loadFromXML(array $attributes)
This is the entry point method for loading data from XML.
It calls a setupObject() method that must be implemented by the child class.
in XMLElement at line 60
public array
getAttributes()
Returns the assoc array of attributes.
All attribute names (keys) are lowercase.
in XMLElement at line 74
public mixed
getAttribute(string $name, mixed $defaultValue = null)
Gets a particular attribute by [case-insensitive] name.
If attribute is not set then the $defaultValue is returned.
in XMLElement at line 125
abstract public
appendXml(DOMNode $node)
Appends DOM elements to represent this object in XML.
in XMLElement at line 134
public VendorInfo
addVendorInfo(mixed $data)
Sets an associated VendorInfo object.
in XMLElement at line 154
public VendorInfo
getVendorInfoForType($type)
Gets the any associated VendorInfo object.
in XMLElement at line 176
public string
getConfiguredBehavior(string $bname)
Find the best class name for a given behavior Looks in build.properties for path like propel.behavior.[bname].class If not found, tries to autoload [Bname]Behavior If no success, returns 'Behavior'
in XMLElement at line 199
public
toString()
String representation of the current object.
This is an xml representation with the XML declaration removed.
in XMLElement at line 214
public
__toString()
Magic string method
at line 73
public value
getNamespace()
Get the value of the namespace.
at line 83
public
setNamespace($v $v)
Set the value of the namespace.
at line 100
public value
getPackage()
Get the value of package.
at line 110
public
setPackage($v $v)
Set the value of package.
at line 124
public value
getSchema()
Get the value of schema.
at line 134
public
setSchema($v $v)
Set the value of schema.