## [System.Data.ActiveRecord] element index

### Package indexes

- System.Caching
- System.Collections
- System.Data.ActiveRecord.Relations
- System.Data.ActiveReecord.Scaffold.InputBuilder
- System.Data.ActiveRecord.Scaffold
- System.Data.Common
- System.Data.Common.Pgsql
- System.Data.Common.Mssql
- System.Data.Common.Mysql
- System.Data.Commom.Sqlite
- System.Data.Common.Oracle
- System.Data.Common.Sqlite
- System.Data.DataGateway
- System.Data.SqlMap.Configuration
- System.Data.SqlMap.Statements
- System.Data.SqlMap
- System.Data
- System.Exceptions
- System.I18N
- System
- System.IO
- System.Security
- System.Util
- System.Web.Services
- System.Web
- System.Web.UI.ActiveControls
- System.Web.UI
- System.Web.UI.WebControls.assets
- System.Web.UI.WebControls
- System.Xml

All elements
_
top

$_connection
  TActiveRecord::$_connection in TActiveRecord.php
$_invalidFinderResult
  TActiveRecord::$_invalidFinderResult in TActiveRecord.php
  Defaults to 'null'
$_recordState
  TActiveRecord::$_recordState in TActiveRecord.php
__call
  TActiveRecord::__call() in TActiveRecord.php
  Dynamic find method using parts of method name as search criteria.
__construct
  TActiveRecordGateway::__construct() in TActiveRecordGateway.php
  Record gateway constructor.
__construct
  TActiveRecord::__construct() in TActiveRecord.php
  Create a new instance of an active record with given $data. The record can be saved to the database specified by the $connection object.
__get
  TActiveRecord::__get() in TActiveRecord.php
  Magic method for reading properties.
__set
  TActiveRecord::__set() in TActiveRecord.php
  Magic method for writing properties.
__sleep
  TActiveRecord::__sleep() in TActiveRecord.php
  Prevent __call() method creating __sleep() when serializing.
__wakeup
  TActiveRecord::__wakeup() in TActiveRecord.php
  Prevent __call() method creating __wakeup() when unserializing.

a
top

HAS_MANY
  TActiveRecord::HAS_MANY in TActiveRecord.php
HAS_ONE
  TActiveRecord::HAS_ONE in TActiveRecord.php
MANY_TO_MANY
  TActiveRecord::MANY_TO_MANY in TActiveRecord.php
TABLE_CONST
  TActiveRecordGateway::TABLE_CONST in TActiveRecordGateway.php
  Constant name for specifying optional table name in TActiveRecord.
TABLE_METHOD
  TActiveRecordGateway::TABLE_METHOD in TActiveRecordGateway.php
  Method name for returning optional table name in in TActiveRecord

c
top

$COLUMN_MAPPING
  TActiveRecord::$COLUMN_MAPPING in TActiveRecord.php
  This static variable defines the column mapping.
copyFrom
  TActiveRecord::copyFrom() in TActiveRecord.php
  Copies data from an array or another object.
count
  TActiveRecord::count() in TActiveRecord.php
  Find the number of records.
countRecords
  TActiveRecordGateway::countRecords() in TActiveRecordGateway.php
  Returns the number of records that match the given criteria.
createRecord
  TActiveRecord::createRecord() in TActiveRecord.php
  Create an AR instance specified by the AR class name and initial data.
createRecordGateway
  TActiveRecordManager::createRecordGateway() in TActiveRecordManager.php
createRelationContext
  TActiveRecord::createRelationContext() in TActiveRecord.php
  Gets a static copy of the relationship context for given property (a key in $RELATIONS), returns null if invalid relationship. Keeps a null reference to all invalid relations called.

d
top

delete
  TActiveRecordGateway::delete() in TActiveRecordGateway.php
  Delete the record.
delete
  TActiveRecord::delete() in TActiveRecord.php
  Deletes the current record from the database. Once deleted, this object can not be saved again in the same instance.
deleteAll
  TActiveRecord::deleteAll() in TActiveRecord.php
  Delete multiple records using a criteria.
deleteAllByPks
  TActiveRecord::deleteAllByPks() in TActiveRecord.php
  Alias for deleteByPk()
deleteByPk
  TActiveRecord::deleteByPk() in TActiveRecord.php
  Delete records by primary key. Usage:
deleteRecordsByCriteria
  TActiveRecordGateway::deleteRecordsByCriteria() in TActiveRecordGateway.php
  Delete multiple records by criteria.
deleteRecordsByPk
  TActiveRecordGateway::deleteRecordsByPk() in TActiveRecordGateway.php
  Delete multiple records using primary keys.

e
top

BELONGS_TO
  TActiveRecord::BELONGS_TO in TActiveRecord.php
equals
  TActiveRecord::equals() in TActiveRecord.php
  Compare two records using their primary key values (all column values if table does not defined primary keys). The default uses simple == for comparison of their values. Set $strict=true for identity comparison (===).

f
top

fetchResultsFor
  TActiveRecord::fetchResultsFor() in TActiveRecord.php
  Tries to load the relationship results for the given property. The $property value should correspond to an entry key in the $RELATION array.
find
  TActiveRecord::find() in TActiveRecord.php
  Find one single record that matches the criteria.
findAll
  TActiveRecord::findAll() in TActiveRecord.php
  Same as find() but returns an array of objects.
findAllByIndex
  TActiveRecord::findAllByIndex() in TActiveRecord.php
  Fetches records using the sql clause "(fields) IN (values)", where fields is an array of column names and values is an array of values that the columns must have.
findAllByPks
  TActiveRecord::findAllByPks() in TActiveRecord.php
  Find multiple records matching a list of primary or composite keys.
findAllBySql
  TActiveRecord::findAllBySql() in TActiveRecord.php
  Find records using full SQL, returns corresponding record object.
findByPk
  TActiveRecord::findByPk() in TActiveRecord.php
  Find one record using only the primary key or composite primary keys. Usage:
findBySql
  TActiveRecord::findBySql() in TActiveRecord.php
  Find records using full SQL, returns corresponding record object.
finder
  TActiveRecord::finder() in TActiveRecord.php
  Returns the instance of a active record finder for a particular class.
findRecordByPK
  TActiveRecordGateway::findRecordByPK() in TActiveRecordGateway.php
  Returns record data matching the given primary key(s). If the table uses composite key, specify the name value pairs as an array.
findRecordBySql
  TActiveRecordGateway::findRecordBySql() in TActiveRecordGateway.php
  Return record data from sql query.
findRecordsByCriteria
  TActiveRecordGateway::findRecordsByCriteria() in TActiveRecordGateway.php
  Returns record data matching the given critera. If $iterator is true, it will return multiple rows as TDbDataReader otherwise it returns the first row data.
findRecordsByIndex
  TActiveRecordGateway::findRecordsByIndex() in TActiveRecordGateway.php
findRecordsByPks
  TActiveRecordGateway::findRecordsByPks() in TActiveRecordGateway.php
  Returns records matching the list of given primary keys.
findRecordsBySql
  TActiveRecordGateway::findRecordsBySql() in TActiveRecordGateway.php
  Return record data from sql query.

g
top

getActiveDbConnection
  TActiveRecord::getActiveDbConnection() in TActiveRecord.php
getCache
  TActiveRecordManager::getCache() in TActiveRecordManager.php
getColumnValue
  TActiveRecord::getColumnValue() in TActiveRecord.php
  Retrieves the column value according to column name.
getCommand
  TActiveRecordGateway::getCommand() in TActiveRecordGateway.php
getDbConnection
  TActiveRecordManager::getDbConnection() in TActiveRecordManager.php
getDbConnection
  TActiveRecord::getDbConnection() in TActiveRecord.php
  Gets the current Db connection, the connection object is obtained from the TActiveRecordManager if connection is currently null.
getEnableCache
  TActiveRecordConfig::getEnableCache() in TActiveRecordConfig.php
getErrorMessageFile
  TActiveRecordException::getErrorMessageFile() in TActiveRecordException.php
getInsertValues
  TActiveRecordGateway::getInsertValues() in TActiveRecordGateway.php
getInstance
  TActiveRecordManager::getInstance() in TActiveRecordManager.php
getInvalidFinderResult
  TActiveRecordManager::getInvalidFinderResult() in TActiveRecordManager.php
getInvalidFinderResult
  TActiveRecordConfig::getInvalidFinderResult() in TActiveRecordConfig.php
getInvalidFinderResult
  TActiveRecord::getInvalidFinderResult() in TActiveRecord.php
getIsValid
  TActiveRecordChangeEventParameter::getIsValid() in TActiveRecord.php
getManager
  TActiveRecordGateway::getManager() in TActiveRecordGateway.php
getPrimaryKeyValues
  TActiveRecordGateway::getPrimaryKeyValues() in TActiveRecordGateway.php
getRecordCriteria
  TActiveRecord::getRecordCriteria() in TActiveRecord.php
  Create a new TSqlCriteria object from a string $criteria. The $args are additional parameters and are used in place of the $parameters if $parameters is not an array and $args is an arrary.
getRecordGateway
  TActiveRecord::getRecordGateway() in TActiveRecord.php
getRecordGateway
  TActiveRecordManager::getRecordGateway() in TActiveRecordManager.php
getRecordManager
  TActiveRecord::getRecordManager() in TActiveRecord.php
  Gets the record manager for this object, the default is to call TActiveRecordManager::getInstance().
getRecordRelation
  TActiveRecord::getRecordRelation() in TActiveRecord.php
getRecordRelations
  TActiveRecord::getRecordRelations() in TActiveRecord.php
getRecordTableInfo
  TActiveRecordGateway::getRecordTableInfo() in TActiveRecordGateway.php
  Returns table information, trys the application cache first.
getRecordTableInfo
  TActiveRecord::getRecordTableInfo() in TActiveRecord.php
getRecordTableName
  TActiveRecordGateway::getRecordTableName() in TActiveRecordGateway.php
  Gets the table name from the 'TABLE' constant of the active record class if defined, otherwise use the class name as table name.
getRelationHandler
  TActiveRecord::getRelationHandler() in TActiveRecord.php
  Returns the active record relationship handler for $RELATION with key value equal to the $property value.
getTableInfo
  TActiveRecordGateway::getTableInfo() in TActiveRecordGateway.php
  Returns table information for table in the database connection.
getUpdateValues
  TActiveRecordGateway::getUpdateValues() in TActiveRecordGateway.php

h
top

hasRecordRelation
  TActiveRecord::hasRecordRelation() in TActiveRecord.php

i
top

init
  TActiveRecordConfig::init() in TActiveRecordConfig.php
  Initialize the active record manager.
insert
  TActiveRecordGateway::insert() in TActiveRecordGateway.php
  Insert a new record.

o
top

onCreateCommand
  TActiveRecord::onCreateCommand() in TActiveRecord.php
  Raised when a command is prepared and parameter binding is completed.
onCreateCommand
  TActiveRecordGateway::onCreateCommand() in TActiveRecordGateway.php
  Raised when a command is prepared and parameter binding is completed.
onDelete
  TActiveRecord::onDelete() in TActiveRecord.php
  Raised before the record attempt to delete its data from the database.
onExecuteCommand
  TActiveRecordGateway::onExecuteCommand() in TActiveRecordGateway.php
  Raised when a command is executed and the result from the database was returned.
onExecuteCommand
  TActiveRecord::onExecuteCommand() in TActiveRecord.php
  Raised when a command is executed and the result from the database was returned.
onInsert
  TActiveRecord::onInsert() in TActiveRecord.php
  Raised before the record attempt to insert its data into the database.
onUpdate
  TActiveRecord::onUpdate() in TActiveRecord.php
  Raised before the record attempt to update its data in the database.

p
top

populateObject
  TActiveRecord::populateObject() in TActiveRecord.php
  Populates a new record with the query result.
populateObjects
  TActiveRecord::populateObjects() in TActiveRecord.php

r
top

$RELATIONS
  TActiveRecord::$RELATIONS in TActiveRecord.php
  This static variable defines the relationships.
raiseCommandEvent
  TActiveRecordGateway::raiseCommandEvent() in TActiveRecordGateway.php
  Raise the corresponding command event, insert, update, delete or select.

s
top

save
  TActiveRecord::save() in TActiveRecord.php
  Saves the current record to the database, insert or update is automatically determined.
setCache
  TActiveRecordManager::setCache() in TActiveRecordManager.php
setColumnValue
  TActiveRecord::setColumnValue() in TActiveRecord.php
  Sets the column value according to column name.
setDbConnection
  TActiveRecordManager::setDbConnection() in TActiveRecordManager.php
setDbConnection
  TActiveRecord::setDbConnection() in TActiveRecord.php
setEnableCache
  TActiveRecordConfig::setEnableCache() in TActiveRecordConfig.php
  Set true to cache the table meta data.
setInvalidFinderResult
  TActiveRecordManager::setInvalidFinderResult() in TActiveRecordManager.php
  Define the way an active record finder react if an invalid magic-finder invoked
setInvalidFinderResult
  TActiveRecord::setInvalidFinderResult() in TActiveRecord.php
  Define the way an active record finder react if an invalid magic-finder invoked
setInvalidFinderResult
  TActiveRecordConfig::setInvalidFinderResult() in TActiveRecordConfig.php
  Define the way an active record finder react if an invalid magic-finder invoked
setIsValid
  TActiveRecordChangeEventParameter::setIsValid() in TActiveRecord.php

t
top

TActiveRecordException.php
  TActiveRecordException.php in TActiveRecordException.php
TActiveRecordConfig.php
  TActiveRecordConfig.php in TActiveRecordConfig.php
TActiveRecordCriteria.php
  TActiveRecordCriteria.php in TActiveRecordCriteria.php
TActiveRecordGateway.php
  TActiveRecordGateway.php in TActiveRecordGateway.php
TActiveRecordManager.php
  TActiveRecordManager.php in TActiveRecordManager.php
TActiveRecord.php
  TActiveRecord.php in TActiveRecord.php
STATE_DELETED
  TActiveRecord::STATE_DELETED in TActiveRecord.php
STATE_LOADED
  TActiveRecord::STATE_LOADED in TActiveRecord.php
STATE_NEW
  TActiveRecord::STATE_NEW in TActiveRecord.php
TActiveRecord
  TActiveRecord in TActiveRecord.php
  Base class for active records.
TActiveRecordChangeEventParameter
  TActiveRecordChangeEventParameter in TActiveRecord.php
  TActiveRecordChangeEventParameter class
TActiveRecordConfig
  TActiveRecordConfig in TActiveRecordConfig.php
  TActiveRecordConfig module configuration class.
TActiveRecordConfigurationException
  TActiveRecordConfigurationException in TActiveRecordException.php
  Base exception class for Active Records.
TActiveRecordCriteria
  TActiveRecordCriteria in TActiveRecordCriteria.php
  Search criteria for Active Record.
TActiveRecordException
  TActiveRecordException in TActiveRecordException.php
  Base exception class for Active Records.
TActiveRecordGateway
  TActiveRecordGateway in TActiveRecordGateway.php
  TActiveRecordGateway excutes the SQL command queries and returns the data record as arrays (for most finder methods).
TActiveRecordInvalidFinderResult
  TActiveRecordInvalidFinderResult in TActiveRecord.php
  TActiveRecordInvalidFinderResult class.
TActiveRecordManager
  TActiveRecordManager in TActiveRecordManager.php
  TActiveRecordManager provides the default DB connection, default active record gateway, and table meta data inspector.

u
top

Null
  TActiveRecordInvalidFinderResult::Null in TActiveRecord.php
update
  TActiveRecordGateway::update() in TActiveRecordGateway.php
  Update the record.
updateAssociatedRecords
  TActiveRecordGateway::updateAssociatedRecords() in TActiveRecordGateway.php
updatePostInsert
  TActiveRecordGateway::updatePostInsert() in TActiveRecordGateway.php
  Sets the last insert ID to the corresponding property of the record if available.

x
top

Exception
  TActiveRecordInvalidFinderResult::Exception in TActiveRecord.php