Class

Inheritance

class Inheritance extends XMLElement

A Class for information regarding possible objects representing a table

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)

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 getKey()

Get the value of key.

setKey($v $v)

Set the value of key.

Column getColumn()

Get the value of parent.

setColumn(Column $v)

Set the value of parent.

string getClassName()

Get the value of className.

setClassName(string $v)

Set the value of className.

string getPackage()

Get the value of package.

setPackage(string $v)

Set the value of package.

string getAncestor()

Get the value of ancestor.

setAncestor(string $v)

Set the value of ancestor.

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.

Parameters

array $attributes The attributes for the XML tag.

in XMLElement at line 60
public array getAttributes()

Returns the assoc array of attributes.

All attribute names (keys) are lowercase.

Return Value

array

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.

Parameters

string $name The [case-insensitive] name of the attribute to lookup.
mixed $defaultValue The default value to use in case the attribute is not set.

Return Value

mixed The value of the attribute or $defaultValue if not set.

at line 146
public appendXml(DOMNode $node)

Parameters

DOMNode $node

See also

XMLElement::appendXml(DOMNode)

in XMLElement at line 134
public VendorInfo addVendorInfo(mixed $data)

Sets an associated VendorInfo object.

Parameters

mixed $data VendorInfo object or XML attrib data (array)

Return Value

VendorInfo

in XMLElement at line 154
public VendorInfo getVendorInfoForType($type)

Gets the any associated VendorInfo object.

Parameters

$type

Return Value

VendorInfo

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'

Parameters

string $bname behavior name, e.g. 'timestampable'

Return Value

string behavior class name, e.g. 'TimestampableBehavior'

Exceptions

InvalidArgumentException

in XMLElement at line 199
public toString()

String representation of the current object.

This is an xml representation with the XML declaration removed.

See also

appendXml()

in XMLElement at line 214
public __toString()

Magic string method

See also

toString()

at line 48
public value getKey()

Get the value of key.

Return Value

value of key.

at line 58
public setKey($v $v)

Set the value of key.

Parameters

$v $v Value to assign to key.

at line 68
public Column getColumn()

Get the value of parent.

Return Value

Column

at line 78
public setColumn(Column $v)

Set the value of parent.

Parameters

Column $v Value to assign to parent.

at line 88
public string getClassName()

Get the value of className.

Return Value

string

at line 98
public setClassName(string $v)

Set the value of className.

Parameters

string $v

at line 108
public string getPackage()

Get the value of package.

Return Value

string

at line 118
public setPackage(string $v)

Set the value of package.

Parameters

string $v

at line 128
public string getAncestor()

Get the value of ancestor.

Return Value

string

at line 138
public setAncestor(string $v)

Set the value of ancestor.

Parameters

string $v