2 require_once(
'class.arConnector.php');
3 require_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();
317 $q .= $arl->getArJoinCollection()->{$method}();
319 $q .= $arl->getArWhereCollection()->{$method}();
321 $q .= $arl->getArHavingCollection()->{$method}();
323 $q .= $arl->getArOrderCollection()->{$method}();
325 $q .= $arl->getArLimitCollection()->{$method}();
328 if ($arl->getDebug()) {
336 $arl->setLastQuery($q);
348 public function quote($value, $type) {
351 return $ilDB->quote($value, $type);
359 public function fixDate($value) {
365 return parent::fixDate($value);
368 return parent::fixDate($value);
static getPrimaryFieldName(ActiveRecord $ar)
static getPrimaryFieldType(ActiveRecord $ar)
readSet(ActiveRecordList $arl)
updateIndices(ActiveRecord $ar)
updateDatabase(ActiveRecord $ar)
resetDatabase(ActiveRecord $ar)
checkConnection(ActiveRecord $ar)
removeField(ActiveRecord $ar, $field_name)
truncateDatabase(ActiveRecord $ar)
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
checkFieldExists(ActiveRecord $ar, $field_name)
special template class to simplify handling of ITX/PEAR
getConnectorContainerName()
renameField(ActiveRecord $ar, $old_name, $new_name)
Create styles array
The data for the language used.
affectedRows(ActiveRecordList $arl)
checkTableExists(ActiveRecord $ar)
installDatabase(ActiveRecord $ar, $fields)