2require_once(
'class.arConnector.php');
3require_once(dirname(__FILE__) .
'/../Exception/class.arException.php');
54 if ($arFieldList->getPrimaryField()->getName()) {
74 foreach ($arFieldList->getFields() as $i => $arField) {
75 if ($arField->getIndex() ===
true) {
76 if (!in_array($arField->getName(), $existing_indices)) {
228 while ($rec =
$ilDB->fetchObject($set)) {
271 $set =
$ilDB->query(self::buildQuery($arl));
273 while ($rec =
$ilDB->fetchAssoc($set)) {
288 $q = self::buildQuery($arl);
290 $set =
$ilDB->query($q);
292 return $ilDB->numRows($set);
307 $method =
'asORACLEStatement';
309 $method =
'asSQLStatement';
315 $q .=
' FROM ' . $arl->
getAR()->getConnectorContainerName();
348 public function quote($value, $type) {
349 $ilDB = $this->returnDB();
351 return $ilDB->quote($value, $type);
359 public function fixDate($value) {
360 $ilDB = $this->returnDB();
365 return parent::fixDate($value);
368 return parent::fixDate($value);
static setLastQuery($last_query)
getConnectorContainerName()
An exception for terminatinating execution or to throw for unit testing.
updateIndices(ActiveRecord $ar)
renameField(ActiveRecord $ar, $old_name, $new_name)
installDatabase(ActiveRecord $ar, $fields)
checkTableExists(ActiveRecord $ar)
checkConnection(ActiveRecord $ar)
resetDatabase(ActiveRecord $ar)
affectedRows(ActiveRecordList $arl)
removeField(ActiveRecord $ar, $field_name)
updateDatabase(ActiveRecord $ar)
checkFieldExists(ActiveRecord $ar, $field_name)
readSet(ActiveRecordList $arl)
truncateDatabase(ActiveRecord $ar)
static getPrimaryFieldName(ActiveRecord $ar)
static getPrimaryFieldType(ActiveRecord $ar)
special template class to simplify handling of ITX/PEAR
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.