ILIAS
trunk Revision v11.0_alpha-2658-ge2404539063
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (?ilDBInterface $ilDB=null) | |
checkConnection (ActiveRecord $activeRecord) | |
nextID (ActiveRecord $activeRecord) | |
installDatabase (ActiveRecord $activeRecord, array $fields) | |
updateIndices (ActiveRecord $activeRecord) | |
updateDatabase (ActiveRecord $activeRecord) | |
resetDatabase (ActiveRecord $activeRecord) | |
truncateDatabase (ActiveRecord $activeRecord) | |
checkTableExists (ActiveRecord $activeRecord) | |
checkFieldExists (ActiveRecord $activeRecord, string $field_name) | |
removeField (ActiveRecord $activeRecord, string $field_name) | |
renameField (ActiveRecord $activeRecord, string $old_name, string $new_name) | |
create (ActiveRecord $activeRecord) | |
read (ActiveRecord $activeRecord) | |
update (ActiveRecord $activeRecord) | |
delete (ActiveRecord $activeRecord) | |
readSet (ActiveRecordList $activeRecordList) | |
affectedRows (ActiveRecordList $activeRecordList) | |
quote ($value, string $type) | |
![]() | |
nextID (ActiveRecord $activeRecord) | |
checkConnection (ActiveRecord $activeRecord) | |
installDatabase (ActiveRecord $activeRecord, array $fields) | |
updateDatabase (ActiveRecord $activeRecord) | |
resetDatabase (ActiveRecord $activeRecord) | |
truncateDatabase (ActiveRecord $activeRecord) | |
checkTableExists (ActiveRecord $activeRecord) | |
checkFieldExists (ActiveRecord $activeRecord, string $field_name) | |
removeField (ActiveRecord $activeRecord, string $field_name) | |
renameField (ActiveRecord $activeRecord, string $old_name, string $new_name) | |
create (ActiveRecord $activeRecord) | |
read (ActiveRecord $activeRecord) | |
update (ActiveRecord $activeRecord) | |
delete (ActiveRecord $activeRecord) | |
readSet (ActiveRecordList $activeRecordList) | |
affectedRows (ActiveRecordList $activeRecordList) | |
quote (mixed $value, string $type) | |
updateIndices (ActiveRecord $activeRecord) | |
fixDate (string $value) | |
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 | ) |
Definition at line 29 of file class.arConnectorDB.php.
References $DIC, $GLOBALS, $ilDB, and null.
arConnectorDB::affectedRows | ( | ActiveRecordList | $activeRecordList | ) |
PhpParamsInspection
Definition at line 255 of file class.arConnectorDB.php.
References $ilDB, $q, buildQuery(), and returnDB().
|
protected |
Definition at line 269 of file class.arConnectorDB.php.
References $q, 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().
arConnectorDB::checkFieldExists | ( | ActiveRecord | $activeRecord, |
string | $field_name | ||
) |
Definition at line 153 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getConnectorContainerName(), and returnDB().
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().
arConnectorDB::create | ( | ActiveRecord | $activeRecord | ) |
Definition at line 185 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getArrayForConnector(), ActiveRecord\getConnectorContainerName(), and returnDB().
arConnectorDB::delete | ( | ActiveRecord | $activeRecord | ) |
Definition at line 227 of file class.arConnectorDB.php.
References $ilDB, arFieldCache\getPrimaryFieldName(), arFieldCache\getPrimaryFieldType(), and returnDB().
arConnectorDB::installDatabase | ( | ActiveRecord | $activeRecord, |
array | $fields | ||
) |
Definition at line 61 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getArFieldList(), ActiveRecord\getConnectorContainerName(), returnDB(), and updateIndices().
arConnectorDB::nextID | ( | ActiveRecord | $activeRecord | ) |
Definition at line 56 of file class.arConnectorDB.php.
References ActiveRecord\getConnectorContainerName(), and returnDB().
arConnectorDB::quote | ( | $value, | |
string | $type | ||
) |
$value |
Definition at line 295 of file class.arConnectorDB.php.
References $ilDB, and returnDB().
arConnectorDB::read | ( | ActiveRecord | $activeRecord | ) |
Definition at line 194 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getConnectorContainerName(), arFieldCache\getPrimaryFieldName(), arFieldCache\getPrimaryFieldType(), ActiveRecord\getPrimaryFieldValue(), and returnDB().
arConnectorDB::readSet | ( | ActiveRecordList | $activeRecordList | ) |
Definition at line 243 of file class.arConnectorDB.php.
References $ilDB, buildQuery(), and returnDB().
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().
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().
arConnectorDB::resetDatabase | ( | ActiveRecord | $activeRecord | ) |
Definition at line 118 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getConnectorContainerName(), ActiveRecord\installDB(), and returnDB().
|
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, ActiveRecord\getConnectorContainerName(), and returnDB().
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().
arConnectorDB::updateDatabase | ( | ActiveRecord | $activeRecord | ) |
Definition at line 101 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getArFieldList(), ActiveRecord\getConnectorContainerName(), returnDB(), and updateIndices().
arConnectorDB::updateIndices | ( | ActiveRecord | $activeRecord | ) |
Definition at line 81 of file class.arConnectorDB.php.
References $ilDB, ActiveRecord\getArFieldList(), ActiveRecord\getConnectorContainerName(), and returnDB().
Referenced by installDatabase(), and updateDatabase().
|
private |
Definition at line 27 of file class.arConnectorDB.php.
Referenced by returnDB().