38 if (!$_SESSION[self::AR_CONNECTOR_SESSION]) {
51 $ar_session = $session[$activeRecord::returnDbTableName()];
52 if (!is_array($ar_session)) {
61 return is_array(self::getSession());
69 return count(self::getSessionForActiveRecord($activeRecord)) + 1;
96 return is_array(self::getSessionForActiveRecord($activeRecord));
103 return array_key_exists($field_name, $session[0]);
140 $this->
create($activeRecord);
146 $_SESSION[self::AR_CONNECTOR_SESSION][$activeRecord::returnDbTableName(
147 )][$activeRecord->getPrimaryFieldValue()]
158 foreach ($session as $i => $s) {
159 $session[$i] = (array) $s;
162 $fieldname = $arWhere->getFieldname();
163 $v = $arWhere->getValue();
164 $operator = $arWhere->getOperator();
166 foreach ($session as $i => $s) {
167 $session[$i] = (array) $s;
168 if ($operator !==
'=') {
171 if ($s[$fieldname] === $v) {
183 return count($this->
readSet($activeRecordList));
189 public function quote($value,
string $type): string
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
create(ActiveRecord $activeRecord)
update(ActiveRecord $activeRecord)
quote($value, string $type)
nextID(ActiveRecord $activeRecord)
read(ActiveRecord $activeRecord)
updateDatabase(ActiveRecord $activeRecord)
truncateDatabase(ActiveRecord $activeRecord)
const AR_CONNECTOR_SESSION
checkTableExists(ActiveRecord $activeRecord)
affectedRows(ActiveRecordList $activeRecordList)
renameField(ActiveRecord $activeRecord, string $old_name, string $new_name)
readSet(ActiveRecordList $activeRecordList)
checkConnection(ActiveRecord $activeRecord)
updateIndices(ActiveRecord $activeRecord)
resetDatabase(ActiveRecord $activeRecord)
installDatabase(ActiveRecord $activeRecord, array $fields)
removeField(ActiveRecord $activeRecord, string $field_name)
static getSessionForActiveRecord(ActiveRecord $activeRecord)
checkFieldExists(ActiveRecord $activeRecord, string $field_name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...