class Index extends XMLElement
Information about indices of a table.
Constants
DEBUG |
enables debug output
|
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 | |
__construct(string $name = null)
Creates a new Index instance. |
||
getIsUnique()
|
||
isUnique()
Returns the uniqueness of this index. |
||
getIndexName()
|
||
getName()
Gets the name of this index. |
||
setIndexName($name)
|
||
setName($name)
Set the name of this index. |
||
setTable(Table $parent)
Set the parent Table of the index |
||
getTable()
Get the parent Table of the index |
||
getTableName()
Returns the Name of the table the index is in |
||
addColumn(mixed $data)
Adds a new column to an index. |
||
setColumns(array $indexColumns)
Sets array of columns to use for index. |
||
boolean |
hasColumnSize(string $name)
Whether there is a size for the specified column. |
|
numeric |
getColumnSize(string $name)
Returns the size for the specified column, if given. |
|
resetColumnSize()
Reset the column sizes. |
||
getIndexColumnList()
|
||
getColumnList()
Return a comma delimited string of the columns which compose this index. |
||
getIndexColumns()
|
||
boolean |
hasColumnAtPosition(integer $pos, string $name, integer $size = null, boolean $caseInsensitive = false)
Check whether this index has a given column at a given position |
|
boolean |
hasColumns()
Check whether the index has columns. |
|
array |
getColumns()
Return the list of local columns. |
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.
at line 322
public
appendXml(DOMNode $node)
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 46
public
__construct(string $name = null)
Creates a new Index instance.
at line 86
public
getIsUnique()
at line 94
public
isUnique()
Returns the uniqueness of this index.
at line 103
public
getIndexName()
at line 111
public
getName()
Gets the name of this index.
at line 132
public
setIndexName($name)
at line 140
public
setName($name)
Set the name of this index.
at line 148
public
setTable(Table $parent)
Set the parent Table of the index
at line 156
public
getTable()
Get the parent Table of the index
at line 164
public
getTableName()
Returns the Name of the table the index is in
at line 174
public
addColumn(mixed $data)
Adds a new column to an index.
at line 197
public
setColumns(array $indexColumns)
Sets array of columns to use for index.
at line 213
public boolean
hasColumnSize(string $name)
Whether there is a size for the specified column.
at line 225
public numeric
getColumnSize(string $name)
Returns the size for the specified column, if given.
at line 237
public
resetColumnSize()
Reset the column sizes.
Useful for generated indices for FKs
at line 246
public
getIndexColumnList()
at line 256
public
getColumnList()
Return a comma delimited string of the columns which compose this index.
at line 265
public
getIndexColumns()
at line 281
public boolean
hasColumnAtPosition(integer $pos, string $name, integer $size = null, boolean $caseInsensitive = false)
Check whether this index has a given column at a given position
at line 304
public boolean
hasColumns()
Check whether the index has columns.
at line 314
public array
getColumns()
Return the list of local columns.
You should not edit this list.