|
Doctrine 1.2.4
|
Inherits Doctrine_Template.
Public Member Functions | |
| __get ($name) | |
| __isset ($name) | |
| __set ($name, $value) | |
| __unset ($name) | |
| actAs ($tpl, array $options=array()) | |
| add ($value) | |
| addChild (Doctrine_Template $template) | |
| addListener ($listener, $name=null) | |
| attribute ($attr, $value) | |
| bind ($name, $resource) | |
| bindQueryParts (array $queryParts) | |
| check ($constraint, $name=null) | |
| contains ($offset) | |
| get ($name) | |
| getDistance (Doctrine_Record $record, $kilometers=false) | |
| getDistanceQuery () | |
| getInvoker () | |
| getListener () | |
| getLocator () | |
| getOption ($name, $default=null) | |
| getOptions () | |
| getPlugin () | |
| getTable () | |
| hasColumn ($name, $type=null, $length=null, $options=array()) | |
| hasColumns (array $definitions) | |
| hasMany () | |
| hasOne () | |
| hasPlugin () | |
| index ($name, array $definition=array()) | |
| locate ($name) | |
| offsetExists ($offset) | |
| offsetGet ($offset) | |
| offsetSet ($offset, $value) | |
| offsetUnset ($offset) | |
| option ($name, $value=null) | |
| remove ($offset) | |
| set ($name, $value) | |
| setArray (array $array) | |
| setColumnOption ($columnName, $option, $value) | |
| setColumnOptions ($name, array $options) | |
| setInvoker (Doctrine_Record_Abstract $invoker) | |
| setListener ($listener) | |
| setLocator (Doctrine_Locator $locator) | |
| setTableDefinition () | |
| setUp () | |
| unique ($fields, $options=array(), $createUniqueIndex=true) | |
Static Public Member Functions | |
| static | getNullObject () |
| static | initNullObject (Doctrine_Null $null) |
Protected Attributes | |
| $_table | |
Definition at line 35 of file Geographical.php.
|
inherited |
Get key from data
| mixed | $name |
Definition at line 70 of file Access.php.
|
inherited |
Check if key exists in data
| string | $name |
Definition at line 81 of file Access.php.
|
inherited |
Set key and value to data
| $name | |
| $value |
Definition at line 58 of file Access.php.
|
inherited |
Remove key from data
| string | $name |
Definition at line 92 of file Access.php.
|
inherited |
Loads the given plugin.
This method loads a behavior in the record. It will add the behavior also to the record table if it. It is tipically called in
| mixed | $tpl | if an object, must be a subclass of Doctrine_Template. If a string, Doctrine will try to instantiate an object of the classes Doctrine_Template_$tpl and subsequently $tpl, using also autoloading capabilities if defined. |
| array | $options | argument to pass to the template constructor if $tpl is a class name |
| Doctrine_Record_Exception | if $tpl is neither an instance of Doctrine_Template subclass or a valid class name, that could be instantiated. |
Definition at line 349 of file Abstract.php.
|
inherited |
Add the value
| mixed | $value | The value to add |
Definition at line 199 of file Access.php.
|
inherited |
Adds a plugin as a child to this plugin
| Doctrine_Template | $template |
Definition at line 109 of file Template.php.
|
inherited |
addListener
| Doctrine_EventListener_Interface | Doctrine_Overloadable | $listener |
Definition at line 67 of file Abstract.php.
|
inherited |
attribute sets or retrieves an option
| mixed | $attr | |
| mixed | $value |
Definition at line 182 of file Abstract.php.
|
inherited |
bind binds a resource to a name
| string | $name | the name of the resource to bind |
| mixed | $value | the value of the resource |
Definition at line 120 of file Injectable.php.
|
inherited |
bindQueryParts binds query parts to given component
| array | $queryParts | an array of pre-bound query parts |
Definition at line 322 of file Abstract.php.
|
inherited |
Adds a check constraint.
This method will add a CHECK constraint to the record table.
| mixed | $constraint | either a SQL constraint portion or an array of CHECK constraints. If array, all values will be added as constraint |
| string | $name | optional constraint name. Not used if $constraint is an array. |
Definition at line 388 of file Abstract.php.
|
inherited |
Check if the specified offset exists
| mixed | $offset | The offset to check |
Definition at line 188 of file Access.php.
|
inherited |
| Doctrine_Template_Geographical::getDistance | ( | Doctrine_Record | $record, |
$kilometers = false |
|||
| ) |
Get distance between this record and another
| string | $Doctrine_Record | |
| string | $kilometers |
Definition at line 97 of file Geographical.php.
| Doctrine_Template_Geographical::getDistanceQuery | ( | ) |
Initiate and get a distance query with the select parts for the number of kilometers and miles between this record and other zipcode records in the database
Definition at line 68 of file Geographical.php.
|
inherited |
returns the last used invoker
Definition at line 98 of file Template.php.
|
inherited |
getListener
Definition at line 79 of file Abstract.php.
|
inherited |
getLocator returns the locator associated with this object
if there are no locator locally associated then this method tries to fetch the current global locator
Definition at line 75 of file Injectable.php.
|
staticinherited |
getNullObject returns the null object associated with this object
Definition at line 145 of file Injectable.php.
|
inherited |
getOption returns the value of given option
| string | $name | the name of the option |
| mixed | $default | default value if option is not found |
Definition at line 155 of file Template.php.
|
inherited |
getOptions returns all options of this template and the associated values
Definition at line 142 of file Template.php.
|
inherited |
Get plugin instance
Definition at line 121 of file Template.php.
|
inherited |
returns the associated table object
Definition at line 77 of file Template.php.
|
inherited |
Sets a column definition
| string | $name | |
| string | $type | |
| integer | $length | |
| mixed | $options |
Definition at line 260 of file Abstract.php.
|
inherited |
Set multiple column definitions at once
| array | $definitions |
Definition at line 271 of file Abstract.php.
|
inherited |
Binds One-to-Many / Many-to-Many aggregate relation
| string | $componentName | the name of the related component |
| string | $options | relation options |
Definition at line 244 of file Abstract.php.
|
inherited |
Binds One-to-One aggregate relation
| string | $componentName | the name of the related component |
| string | $options | relation options |
Definition at line 229 of file Abstract.php.
|
inherited |
Check if this template has a generator plugin
Definition at line 131 of file Template.php.
|
inherited |
index defines or retrieves an index if the second parameter is set this method defines an index if not this method retrieves index named $name
| string | $name | the name of the index |
| array | $definition | the definition array |
Definition at line 107 of file Abstract.php.
|
staticinherited |
initNullObject initializes the null object
| Doctrine_Null | $null |
Definition at line 134 of file Injectable.php.
|
inherited |
locate locates a resource by given name and returns it
if the resource cannot be found locally this method tries to use the global locator for finding the resource
| Doctrine_Locator_Exception | if the resource could not be found |
| string | $name | the name of the resource |
Definition at line 96 of file Injectable.php.
|
inherited |
Check if an offset axists
| mixed | $offset |
Definition at line 103 of file Access.php.
|
inherited |
An alias of get()
| mixed | $offset |
Definition at line 115 of file Access.php.
|
inherited |
Sets $offset to $value
| mixed | $offset | |
| mixed | $value |
Definition at line 128 of file Access.php.
|
inherited |
Unset a given offset
| mixed | $offset |
Definition at line 143 of file Access.php.
|
inherited |
option sets or retrieves an option
| mixed | $name | the name of the option |
| mixed | $value | options value |
Definition at line 206 of file Abstract.php.
|
inherited |
Remove the element with the specified offset
| mixed | $offset | The offset to remove |
Definition at line 154 of file Access.php.
|
inherited |
|
inherited |
Set an entire aray to the data
| array | $array | An array of key => value pairs |
Definition at line 41 of file Access.php.
|
inherited |
Set an individual column option
| string | $columnName | |
| string | $option | |
| string | $value |
Definition at line 310 of file Abstract.php.
|
inherited |
Customize the array of options for a column or multiple columns. First argument can be a single field/column name or an array of them. The second argument is an array of options.
[php]
public function setTableDefinition()
{
parent::setTableDefinition();
$this->setColumnOptions('username', array(
'unique' => true
));
}
| string | $columnName | |
| array | $validators |
Definition at line 297 of file Abstract.php.
|
inherited |
sets the last used invoker
| Doctrine_Record | $invoker | the record that invoked the last delegated call |
Definition at line 88 of file Template.php.
|
inherited |
setListener
| Doctrine_EventListener_Interface | Doctrine_Overloadable | $listener |
Definition at line 90 of file Abstract.php.
|
inherited |
setLocator this method can be used for setting the locator object locally
| Doctrine_Locator | the locator object |
Definition at line 60 of file Injectable.php.
| Doctrine_Template_Geographical::setTableDefinition | ( | ) |
Set table definition for Geographical behavior
Definition at line 56 of file Geographical.php.
|
inherited |
|
inherited |
Defines a n-uple of fields that must be unique for every record.
This method Will automatically add UNIQUE index definition and validate the values on save. The UNIQUE index is not created in the database until you use
| array | $fields | values are fieldnames |
| array | $options | array of options for unique validator |
| bool | $createUniqueIndex | Whether or not to create a unique index in the database |
Definition at line 128 of file Abstract.php.
|
protectedinherited |
| Doctrine_Table | $_table | reference to associated Doctrine_Table instance |
Definition at line 38 of file Abstract.php.