See Release Notes
Long Term Support Release
Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]
Active Record implementation. Superset of Zend Framework's.
Copyright: | 2000-2013 John Lim |
Copyright: | 2014 Damien Regad, Mark Newnham and the ADOdb community |
License: | BSD-3-Clause |
License: | LGPL-2.1-or-later |
File Size: | 1210 lines (29 kb) |
Included or required: | 2 times |
Referenced: | 0 times |
Includes or requires: | 2 files lib/adodb/adodb-csvlib.inc.php lib/adodb/adodb-lib.inc.php |
ADODB_Active_DB:: (0 methods):
ADODB_Active_Table:: (1 method):
ADODB_SetDatabaseAdapter()
ADODB_Active_Record:: (42 methods):
UseDefaultValues()
SetDatabaseAdapter()
__set()
__construct()
__wakeup()
_pluralize()
_singularize()
hasMany()
TableHasMany()
TableKeyHasMany()
ClassHasMany()
belongsTo()
ClassBelongsTo()
TableBelongsTo()
TableKeyBelongsTo()
__get()
LoadRelations()
UpdateActiveTable()
GetPrimaryKeys()
Error()
ErrorMsg()
ErrorNo()
DB()
TableInfo()
Reload()
Set()
LastInsertID()
doquote()
GenWhere()
_QName()
Load()
LoadLocked()
Reset()
Save()
Insert()
Delete()
Find()
Replace()
Update()
GetAttributeNames()
nameQuoter()
adodb_GetActiveRecordsClass()
Class: ADODB_Active_DB - X-Ref
Class: ADODB_Active_Table - X-Ref
ADODB_SetDatabaseAdapter(&$db, $index=false) X-Ref |
No description |
Class: ADODB_Active_Record - X-Ref
UseDefaultValues($bool=null) X-Ref |
No description |
SetDatabaseAdapter(&$db, $index=false) X-Ref |
No description |
__set($name, $value) X-Ref |
No description |
__construct($table = false, $pkeyarr=false, $db=false) X-Ref |
No description |
__wakeup() X-Ref |
No description |
_pluralize($table) X-Ref |
No description |
_singularize($tables) X-Ref |
No description |
hasMany($foreignRef, $foreignKey = false, $foreignClass = 'ADODB_Active_Record') X-Ref |
No description |
TableHasMany($table, $foreignRef, $foreignKey = false, $foreignClass = 'ADODB_Active_Record') X-Ref |
No description |
TableKeyHasMany($table, $tablePKey, $foreignRef, $foreignKey = false, $foreignClass = 'ADODB_Active_Record') X-Ref |
No description |
ClassHasMany($parentclass, $foreignRef, $foreignKey = false, $foreignClass = 'ADODB_Active_Record') X-Ref |
No description |
belongsTo($foreignRef,$foreignKey=false, $parentKey='', $parentClass = 'ADODB_Active_Record') X-Ref |
No description |
ClassBelongsTo($class, $foreignRef, $foreignKey=false, $parentKey='', $parentClass = 'ADODB_Active_Record') X-Ref |
No description |
TableBelongsTo($table, $foreignRef, $foreignKey=false, $parentKey='', $parentClass = 'ADODB_Active_Record') X-Ref |
No description |
TableKeyBelongsTo($table, $tablePKey, $foreignRef, $foreignKey=false, $parentKey='', $parentClass = 'ADODB_Active_Record') X-Ref |
No description |
__get($name) X-Ref |
__get Access properties - used for lazy loading param: mixed $name return: mixed |
LoadRelations($name, $whereOrderBy='', $offset=-1,$limit=-1) X-Ref |
param: string $name param: string $whereOrderBy : eg. ' AND field1 = value ORDER BY field2' param: offset param: limit return: mixed |
UpdateActiveTable($pkeys=false,$forceUpdate=false) X-Ref |
No description |
GetPrimaryKeys(&$db, $table) X-Ref |
No description |
Error($err,$fn) X-Ref |
No description |
ErrorMsg() X-Ref |
No description |
ErrorNo() X-Ref |
No description |
DB() X-Ref |
No description |
TableInfo() X-Ref |
No description |
Reload() X-Ref |
No description |
Set(&$row) X-Ref |
No description |
LastInsertID(&$db,$fieldname) X-Ref |
No description |
doquote(&$db, $val,$t) X-Ref |
No description |
GenWhere(&$db, &$table) X-Ref |
No description |
_QName($n,$db=false) X-Ref |
No description |
Load($where=null,$bindarr=false, $lock = false) X-Ref |
No description |
LoadLocked($where=null, $bindarr=false) X-Ref |
No description |
Reset() X-Ref |
No description |
Save() X-Ref |
No description |
Insert() X-Ref |
No description |
Delete() X-Ref |
No description |
Find($whereOrderBy,$bindarr=false,$pkeysArr=false,$extra=array() X-Ref |
No description |
Replace() X-Ref |
No description |
Update() X-Ref |
No description |
GetAttributeNames() X-Ref |
No description |
nameQuoter($db, $name) X-Ref |
Quotes the table, column and field names. This honours the internal {@see $_quoteNames} property, which overrides the global $ADODB_QUOTE_FIELDNAMES directive. param: ADOConnection $db The database connection param: string $name The table or column name to quote return: string The quoted name |
adodb_GetActiveRecordsClass(&$db, $class, $table,$whereOrderBy,$bindarr, $primkeyArr,$extra) X-Ref |
No description |