ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Protected Member Functions | |
returnDB () | |
buildQuery (ActiveRecordList $activeRecordList) | |
Private Attributes | |
ilDBInterface | $db = null |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class arConnectorDB
Definition at line 25 of file class.arConnectorDB.php.
arConnectorDB::__construct | ( | ?ilDBInterface | $ilDB = null | ) |
arConnectorDB::affectedRows | ( | ActiveRecordList | $activeRecordList | ) |
PhpParamsInspection
Definition at line 255 of file class.arConnectorDB.php.
References $ilDB, buildQuery(), and returnDB().
Referenced by arConnectorCache\affectedRows().
|
protected |
Definition at line 269 of file class.arConnectorDB.php.
References ActiveRecordList\getAR(), ActiveRecordList\getArConcatCollection(), ActiveRecordList\getArHavingCollection(), ActiveRecordList\getArJoinCollection(), ActiveRecordList\getArLimitCollection(), ActiveRecordList\getArOrderCollection(), ActiveRecordList\getArSelectCollection(), ActiveRecordList\getArWhereCollection(), and ActiveRecordList\setLastQuery().
Referenced by affectedRows(), and readSet().
arConnectorDB::checkConnection | ( | ActiveRecord | $activeRecord | ) |
Definition at line 48 of file class.arConnectorDB.php.
References returnDB().
Referenced by arConnectorCache\checkConnection().
arConnectorDB::checkFieldExists | ( | ActiveRecord | $activeRecord, |
string | $field_name | ||
) |
Definition at line 153 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getConnectorContainerName(), and returnDB().
Referenced by arConnectorCache\checkFieldExists().
arConnectorDB::checkTableExists | ( | ActiveRecord | $activeRecord | ) |
: 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.
Definition at line 142 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getConnectorContainerName(), and returnDB().
Referenced by arConnectorCache\checkTableExists().
arConnectorDB::create | ( | ActiveRecord | $activeRecord | ) |
Definition at line 185 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getArrayForConnector(), ActiveRecord\getConnectorContainerName(), and returnDB().
Referenced by arConnectorCache\create().
arConnectorDB::delete | ( | ActiveRecord | $activeRecord | ) |
Definition at line 227 of file class.arConnectorDB.php.
References $ilDB, arFieldCache\getPrimaryFieldName(), arFieldCache\getPrimaryFieldType(), and returnDB().
Referenced by arConnectorCache\delete().
arConnectorDB::installDatabase | ( | ActiveRecord | $activeRecord, |
array | $fields | ||
) |
Definition at line 61 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getArFieldList(), ActiveRecord\getConnectorContainerName(), returnDB(), and updateIndices().
Referenced by arConnectorCache\installDatabase().
arConnectorDB::nextID | ( | ActiveRecord | $activeRecord | ) |
Definition at line 56 of file class.arConnectorDB.php.
References ActiveRecord\getConnectorContainerName(), and returnDB().
Referenced by arConnectorCache\nextID().
arConnectorDB::quote | ( | $value, | |
string | $type | ||
) |
$value |
Definition at line 295 of file class.arConnectorDB.php.
References $ilDB, and returnDB().
Referenced by arConnectorCache\quote().
arConnectorDB::read | ( | ActiveRecord | $activeRecord | ) |
Definition at line 194 of file class.arConnectorDB.php.
References $ilDB, $query, ActiveRecord\getConnectorContainerName(), arFieldCache\getPrimaryFieldName(), arFieldCache\getPrimaryFieldType(), ActiveRecord\getPrimaryFieldValue(), and returnDB().
Referenced by arConnectorCache\read().
arConnectorDB::readSet | ( | ActiveRecordList | $activeRecordList | ) |
Definition at line 243 of file class.arConnectorDB.php.
References $ilDB, buildQuery(), and returnDB().
Referenced by arConnectorCache\readSet().
arConnectorDB::removeField | ( | ActiveRecord | $activeRecord, |
string | $field_name | ||
) |
Definition at line 160 of file class.arConnectorDB.php.
References $ilDB, arException\COLUMN_DOES_NOT_EXIST, ActiveRecord\getConnectorContainerName(), and returnDB().
Referenced by arConnectorCache\removeField().
arConnectorDB::renameField | ( | ActiveRecord | $activeRecord, |
string | $old_name, | ||
string | $new_name | ||
) |
Definition at line 170 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getConnectorContainerName(), and returnDB().
Referenced by arConnectorCache\renameField().
arConnectorDB::resetDatabase | ( | ActiveRecord | $activeRecord | ) |
Definition at line 118 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getConnectorContainerName(), ActiveRecord\installDB(), and returnDB().
Referenced by arConnectorCache\resetDatabase().
|
protected |
Definition at line 40 of file class.arConnectorDB.php.
References $db.
Referenced by affectedRows(), checkConnection(), checkFieldExists(), checkTableExists(), create(), delete(), installDatabase(), nextID(), quote(), read(), readSet(), removeField(), renameField(), resetDatabase(), truncateDatabase(), update(), updateDatabase(), and updateIndices().
arConnectorDB::truncateDatabase | ( | ActiveRecord | $activeRecord | ) |
Definition at line 129 of file class.arConnectorDB.php.
References $ilDB, $query, ActiveRecord\getConnectorContainerName(), and returnDB().
Referenced by arConnectorCache\truncateDatabase().
arConnectorDB::update | ( | ActiveRecord | $activeRecord | ) |
Definition at line 211 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getArrayForConnector(), ActiveRecord\getConnectorContainerName(), arFieldCache\getPrimaryFieldName(), arFieldCache\getPrimaryFieldType(), ActiveRecord\getPrimaryFieldValue(), and returnDB().
Referenced by arConnectorCache\update().
arConnectorDB::updateDatabase | ( | ActiveRecord | $activeRecord | ) |
Definition at line 101 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getArFieldList(), ActiveRecord\getConnectorContainerName(), returnDB(), and updateIndices().
Referenced by arConnectorCache\updateDatabase().
arConnectorDB::updateIndices | ( | ActiveRecord | $activeRecord | ) |
Definition at line 81 of file class.arConnectorDB.php.
References $i, $ilDB, ActiveRecord\getArFieldList(), ActiveRecord\getConnectorContainerName(), and returnDB().
Referenced by installDatabase(), updateDatabase(), and arConnectorCache\updateIndices().
|
private |
Definition at line 27 of file class.arConnectorDB.php.
Referenced by returnDB().