| [ Index ] |
PHP Cross Reference of Akelos Framework |
[Source view] [Print]
(no description)
| Author: | Bermi Ferrer |
| Copyright: | Copyright (c) 2002-2006, Akelos Media, S.L. http://www.akelos.org |
| License: | GNU Lesser General Public License |
| File Size: | 442 lines (18 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 1 file AkBaseModel.php |
AkAssociatedActiveRecord:: (29 methods):
_loadAssociationHandler()
setAssociationHandler()
loadAssociations()
getAssociated()
getId()
assign()
build()
create()
replace()
find()
load()
constructSql()
constructSqlForInclusion()
getAssociatedFinderSqlOptions()
getAssociationOption()
setAssociationOption()
getAssociationId()
getAssociatedIds()
getAssociatedHandlerName()
getAssociatedType()
getAssociationType()
getType()
hasAssociations()
findWithAssociations()
getCollectionHandlerName()
constructFinderSqlWithAssociations()
_findBySqlWithAssociations()
_generateObjectGraphFromResultSet()
_addTableAliasesToAssociatedSql()
Class: AkAssociatedActiveRecord - X-Ref
association(force_reload = false) - returns the associated object. Nil is returned if none is found.| _loadAssociationHandler($association_type) X-Ref |
| No description |
| setAssociationHandler(&$AssociationHandler, $association_id) X-Ref |
| No description |
| loadAssociations() X-Ref |
| No description |
| getAssociated($association_type) X-Ref |
| Gets an array of associated object of selected association type. |
| getId() X-Ref |
| No description |
| assign(&$Associated) X-Ref |
| No description |
| build($attributes = array() X-Ref |
| Returns a new object of the associated type that has been instantiated with attributes and linked to this object through a foreign key but has not yet been saved. |
| create($attributes = array() X-Ref |
| No description |
| replace(&$NewAssociated, $dont_save = false) X-Ref |
| No description |
| find() X-Ref |
| No description |
| load() X-Ref |
| No description |
| constructSql() X-Ref |
| No description |
| constructSqlForInclusion() X-Ref |
| No description |
| getAssociatedFinderSqlOptions($options = array() X-Ref |
| No description |
| getAssociationOption($option) X-Ref |
| No description |
| setAssociationOption($option, $value) X-Ref |
| No description |
| getAssociationId() X-Ref |
| No description |
| getAssociatedIds() X-Ref |
| No description |
| getAssociatedHandlerName($association_id) X-Ref |
| No description |
| getAssociatedType() X-Ref |
| No description |
| getAssociationType() X-Ref |
| No description |
| getType() X-Ref |
| No description |
| hasAssociations() X-Ref |
| No description |
| findWithAssociations($options) X-Ref |
| No description |
| getCollectionHandlerName($association_id) X-Ref |
| No description |
| constructFinderSqlWithAssociations($options, $include_owner_as_selection = true) X-Ref |
| Used for generating custom selections for habtm, has_many and has_one queries |
| _findBySqlWithAssociations($sql, $included_associations = array() X-Ref |
| _generateObjectGraphFromResultSet($results,$included_associations = array() X-Ref |
| Pass hand-made sql directly to _db->execute and generate the OG with this method. param: ADOResultSet $results a result set from Db->execute param: array $included_associations just like in ->find(); $options['include']; but in fact unused param: mixed $virtual_limit int or false; unsure if this works return: array ObjectGraph as an array |
| _addTableAliasesToAssociatedSql($table_alias, $sql) X-Ref |
| No description |
| Generated: Mon Oct 27 12:43:49 2008 | Cross-referenced by PHPXref 0.6 |