Properties

$_changeNames

$_changeNames : 

Type

$_foreignSuffix

$_foreignSuffix : 

Type

$_dbat

$_dbat : 

Type

$_table

$_table : 

Type

$_sTable

$_sTable : 

Type

$_pTable

$_pTable : 

Type

$_tableat

$_tableat : 

Type

$_where

$_where : 

Type

$_saved

$_saved : 

Type

$_lasterr

$_lasterr : 

Type

$_original

$_original : 

Type

$foreignName

$foreignName : 

Type

$IrregularP

$IrregularP : 

Type

$IrregularS

$IrregularS : 

Type

$WeIsI

$WeIsI : 

Type

Methods

UseDefaultValues()

UseDefaultValues(  $bool = null) 

Parameters

$bool

SetDatabaseAdapter()

SetDatabaseAdapter(  $db) 

Parameters

$db

__set()

__set(  $name,   $value) 

Parameters

$name
$value

__construct()

__construct(  $table = false,   $pkeyarr = false,   $db = false,   $options = array()) 

Parameters

$table
$pkeyarr
$db
$options

__wakeup()

__wakeup() 

_pluralize()

_pluralize(  $table) 

Parameters

$table

_singularize()

_singularize(  $table) 

Parameters

$table

hasMany()

hasMany(  $foreignRef,   $foreignKey = false) 

Parameters

$foreignRef
$foreignKey

belongsTo()

belongsTo(  $foreignRef,   $foreignKey = false) 

ar->foreignName will contain the name of the tables associated with this table because this table's rows may also be referenced by those tables using thistable_id or the provided foreign keys (this index name is stored in ar->foreignKey)

this-table.other-table_id = other-table.id

Parameters

$foreignRef
$foreignKey

__get()

__get(mixed  $name) : void

__get Access properties - used for lazy loading

Parameters

mixed $name

LoadRelations()

LoadRelations(  $name,   $whereOrderBy,   $offset = -1,   $limit = -1) 

Parameters

$name
$whereOrderBy
$offset
$limit

UpdateActiveTable()

UpdateActiveTable(  $pkeys = false,   $forceUpdate = false) 

Parameters

$pkeys
$forceUpdate

GetPrimaryKeys()

GetPrimaryKeys(  $db,   $table) 

Parameters

$db
$table

Error()

Error(  $err,   $fn) 

Parameters

$err
$fn

ErrorMsg()

ErrorMsg() 

ErrorNo()

ErrorNo() 

DB()

DB() 

TableInfo()

TableInfo() 

Reload()

Reload() 

Set()

Set(  $row) 

Parameters

$row

LastInsertID()

LastInsertID(  $db,   $fieldname) 

Parameters

$db
$fieldname

doquote()

doquote(  $db,   $val,   $t) 

Parameters

$db
$val
$t

GenWhere()

GenWhere(  $db,   $table) 

Parameters

$db
$table

Load()

Load(  $where = null,   $bindarr = false) 

Parameters

$where
$bindarr

Save()

Save() 

Dirty()

Dirty() 

Insert()

Insert() 

Delete()

Delete() 

Find()

Find(  $whereOrderBy,   $bindarr = false,   $pkeysArr = false,   $extra = array()) 

Parameters

$whereOrderBy
$bindarr
$pkeysArr
$extra

packageFind()

packageFind(  $whereOrderBy,   $bindarr = false,   $pkeysArr = false,   $extra = array()) 

Parameters

$whereOrderBy
$bindarr
$pkeysArr
$extra

Replace()

Replace() 

Update()

Update() 

GetAttributeNames()

GetAttributeNames()