[System.Data.ActiveRecord] element index

Package indexes

All elements
a c d e f g h i o p r s t u _
_
top
$_recordState
TActiveRecord::$_recordState in TActiveRecord.php
__call
TActiveRecord::__call() in TActiveRecord.php
Dynamic find method using parts of method name as search criteria.
__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.
__construct
TActiveRecordGateway::__construct() in TActiveRecordGateway.php
Record gateway constructor.
__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.
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
createRelationContext
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
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
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
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
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
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
getIsValid
getManager
TActiveRecordGateway::getManager() in TActiveRecordGateway.php
getPrimaryKeyValues
getRecordCriteria
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
TActiveRecordManager::getRecordGateway() in TActiveRecordManager.php
getRecordGateway
getRecordManager
Gets the record manager for this object, the default is to call TActiveRecordManager::getInstance().
getRecordRelation
getRecordRelations
getRecordTableInfo
TActiveRecordGateway::getRecordTableInfo() in TActiveRecordGateway.php
Returns table information, trys the application cache first.
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
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
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
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
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
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
setDbConnection
TActiveRecordManager::setDbConnection() in TActiveRecordManager.php
setEnableCache
TActiveRecordConfig::setEnableCache() in TActiveRecordConfig.php
Set true to cache the table meta data.
setIsValid
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 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).
TActiveRecordManager
TActiveRecordManager in TActiveRecordManager.php
TActiveRecordManager provides the default DB connection, default active record gateway, and table meta data inspector.
u
top
update
TActiveRecordGateway::update() in TActiveRecordGateway.php
Update the record.
updateAssociatedRecords
updatePostInsert
TActiveRecordGateway::updatePostInsert() in TActiveRecordGateway.php
Sets the last insert ID to the corresponding property of the record if available.
a c d e f g h i o p r s t u _