ILIAS
Release_5_0_x_branch Revision 61816
|
Class arConnectorDB. More...
Public Member Functions | |
checkConnection (ActiveRecord $ar) | |
nextID (ActiveRecord $ar) | |
installDatabase (ActiveRecord $ar, $fields) | |
updateIndices (ActiveRecord $ar) | |
updateDatabase (ActiveRecord $ar) | |
resetDatabase (ActiveRecord $ar) | |
truncateDatabase (ActiveRecord $ar) | |
checkTableExists (ActiveRecord $ar) | |
checkFieldExists (ActiveRecord $ar, $field_name) | |
removeField (ActiveRecord $ar, $field_name) | |
renameField (ActiveRecord $ar, $old_name, $new_name) | |
create (ActiveRecord $ar) | |
read (ActiveRecord $ar) | |
update (ActiveRecord $ar) | |
delete (ActiveRecord $ar) | |
readSet (ActiveRecordList $arl) | |
affectedRows (ActiveRecordList $arl) | |
quote ($value, $type) |
Protected Member Functions | |
returnDB () | |
buildQuery (ActiveRecordList $arl) |
arConnectorDB::affectedRows | ( | ActiveRecordList | $arl | ) |
ActiveRecordList | $arl |
Reimplemented from arConnector.
Definition at line 286 of file class.arConnectorDB.php.
References $ilDB, buildQuery(), and returnDB().
|
protected |
ActiveRecordList | $arl |
Definition at line 301 of file class.arConnectorDB.php.
References $tpl, ActiveRecordList\getArConcatCollection(), ActiveRecordList\getArJoinCollection(), ActiveRecordList\getArLimitCollection(), ActiveRecordList\getArOrderCollection(), ActiveRecordList\getArSelectCollection(), ActiveRecordList\getArWhereCollection(), ActiveRecordList\getDebug(), ilUtil\sendInfo(), and ActiveRecordList\setLastQuery().
Referenced by affectedRows().
arConnectorDB::checkConnection | ( | ActiveRecord | $ar | ) |
ActiveRecord | $ar |
Reimplemented from arConnector.
Definition at line 29 of file class.arConnectorDB.php.
References returnDB().
arConnectorDB::checkFieldExists | ( | ActiveRecord | $ar, |
$field_name | |||
) |
ActiveRecord | $ar | |
$field_name |
Reimplemented from arConnector.
Definition at line 156 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getConnectorContainerName(), and returnDB().
arConnectorDB::checkTableExists | ( | ActiveRecord | $ar | ) |
ActiveRecord | $ar |
: This is the proper ILIAS approach on how to do this BUT: This is exteremely slow (listTables is used)! However, this is not the place to fix this issue. Report.
Reimplemented from arConnector.
Definition at line 139 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getConnectorContainerName(), and returnDB().
arConnectorDB::create | ( | ActiveRecord | $ar | ) |
ActiveRecord | $ar |
Reimplemented from arConnector.
Definition at line 209 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getArrayForConnector(), ActiveRecord\getConnectorContainerName(), and returnDB().
arConnectorDB::delete | ( | ActiveRecord | $ar | ) |
ActiveRecord | $ar |
Reimplemented from arConnector.
Definition at line 254 of file class.arConnectorDB.php.
References $ilDB, arFieldCache\getPrimaryFieldName(), arFieldCache\getPrimaryFieldType(), and returnDB().
arConnectorDB::installDatabase | ( | ActiveRecord | $ar, |
$fields | |||
) |
ActiveRecord | $ar | |
$fields |
Reimplemented from arConnector.
Definition at line 50 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getArFieldList(), ActiveRecord\getConnectorContainerName(), returnDB(), and updateIndices().
arConnectorDB::nextID | ( | ActiveRecord | $ar | ) |
ActiveRecord | $ar |
Reimplemented from arConnector.
Definition at line 39 of file class.arConnectorDB.php.
References ActiveRecord\getConnectorContainerName(), and returnDB().
arConnectorDB::quote | ( | $value, | |
$type | |||
) |
$value | |
$type |
Reimplemented from arConnector.
Definition at line 337 of file class.arConnectorDB.php.
References $ilDB, and returnDB().
arConnectorDB::read | ( | ActiveRecord | $ar | ) |
ActiveRecord | $ar |
Reimplemented from arConnector.
Definition at line 220 of file class.arConnectorDB.php.
References $ilDB, $query, $records, ActiveRecord\getConnectorContainerName(), arFieldCache\getPrimaryFieldName(), arFieldCache\getPrimaryFieldType(), ActiveRecord\getPrimaryFieldValue(), and returnDB().
arConnectorDB::readSet | ( | ActiveRecordList | $arl | ) |
ActiveRecordList | $arl |
Reimplemented from arConnector.
Definition at line 269 of file class.arConnectorDB.php.
References $ilDB, $records, and returnDB().
arConnectorDB::removeField | ( | ActiveRecord | $ar, |
$field_name | |||
) |
ActiveRecord | $ar | |
$field_name |
arException |
Reimplemented from arConnector.
Definition at line 170 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getConnectorContainerName(), and returnDB().
arConnectorDB::renameField | ( | ActiveRecord | $ar, |
$old_name, | |||
$new_name | |||
) |
ActiveRecord | $ar | |
$old_name | ||
$new_name |
arException |
Reimplemented from arConnector.
Definition at line 191 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getConnectorContainerName(), and returnDB().
arConnectorDB::resetDatabase | ( | ActiveRecord | $ar | ) |
ActiveRecord | $ar |
Reimplemented from arConnector.
Definition at line 109 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getConnectorContainerName(), ActiveRecord\installDB(), and returnDB().
|
protected |
Reimplemented in arConnectorPdoDB.
Definition at line 17 of file class.arConnectorDB.php.
References $ilDB.
Referenced by affectedRows(), checkConnection(), checkFieldExists(), checkTableExists(), create(), delete(), installDatabase(), nextID(), quote(), read(), readSet(), removeField(), renameField(), resetDatabase(), truncateDatabase(), update(), updateDatabase(), and updateIndices().
arConnectorDB::truncateDatabase | ( | ActiveRecord | $ar | ) |
ActiveRecord | $ar |
Reimplemented from arConnector.
Definition at line 123 of file class.arConnectorDB.php.
References $ilDB, $query, ActiveRecord\getConnectorContainerName(), and returnDB().
arConnectorDB::update | ( | ActiveRecord | $ar | ) |
ActiveRecord | $ar |
Reimplemented from arConnector.
Definition at line 239 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getArrayForConnector(), ActiveRecord\getConnectorContainerName(), arFieldCache\getPrimaryFieldName(), arFieldCache\getPrimaryFieldType(), ActiveRecord\getPrimaryFieldValue(), and returnDB().
arConnectorDB::updateDatabase | ( | ActiveRecord | $ar | ) |
ActiveRecord | $ar |
Reimplemented from arConnector.
Definition at line 92 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getArFieldList(), ActiveRecord\getConnectorContainerName(), and returnDB().
arConnectorDB::updateIndices | ( | ActiveRecord | $ar | ) |
ActiveRecord | $ar |
Reimplemented from arConnector.
Reimplemented in arConnectorPdoDB.
Definition at line 69 of file class.arConnectorDB.php.
References $ilDB, $res, ActiveRecord\getArFieldList(), ActiveRecord\getConnectorContainerName(), and returnDB().
Referenced by installDatabase().