ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.arConnector.php
Go to the documentation of this file.
1 <?php
2 
24 abstract class arConnector
25 {
29  abstract public function nextID(ActiveRecord $activeRecord);
30 
31  abstract public function checkConnection(ActiveRecord $activeRecord): bool;
32 
33  abstract public function installDatabase(ActiveRecord $activeRecord, array $fields): bool;
34 
35  abstract public function updateDatabase(ActiveRecord $activeRecord): bool;
36 
37  abstract public function resetDatabase(ActiveRecord $activeRecord): bool;
38 
39  abstract public function truncateDatabase(ActiveRecord $activeRecord): bool;
40 
41  abstract public function checkTableExists(ActiveRecord $activeRecord): bool;
42 
43  abstract public function checkFieldExists(ActiveRecord $activeRecord, string $field_name): bool;
44 
45  abstract public function removeField(ActiveRecord $activeRecord, string $field_name): bool;
46 
47  abstract public function renameField(ActiveRecord $activeRecord, string $old_name, string $new_name): bool;
48 
49  abstract public function create(ActiveRecord $activeRecord): void;
50 
54  abstract public function read(ActiveRecord $activeRecord): array;
55 
56  abstract public function update(ActiveRecord $activeRecord): void;
57 
58  abstract public function delete(ActiveRecord $activeRecord): void;
59 
63  abstract public function readSet(ActiveRecordList $activeRecordList): array;
64 
65  abstract public function affectedRows(ActiveRecordList $activeRecordList): int;
66 
67  abstract public function quote(mixed $value, string $type): string;
68 
69  abstract public function updateIndices(ActiveRecord $activeRecord): void;
70 
71  public function fixDate(string $value): string
72  {
73  return $value;
74  }
75 }
quote(mixed $value, string $type)
installDatabase(ActiveRecord $activeRecord, array $fields)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
read(ActiveRecord $activeRecord)
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...
resetDatabase(ActiveRecord $activeRecord)
update(ActiveRecord $activeRecord)
updateDatabase(ActiveRecord $activeRecord)
checkConnection(ActiveRecord $activeRecord)
nextID(ActiveRecord $activeRecord)
truncateDatabase(ActiveRecord $activeRecord)
removeField(ActiveRecord $activeRecord, string $field_name)
affectedRows(ActiveRecordList $activeRecordList)
create(ActiveRecord $activeRecord)
fixDate(string $value)
updateIndices(ActiveRecord $activeRecord)
readSet(ActiveRecordList $activeRecordList)
checkTableExists(ActiveRecord $activeRecord)
checkFieldExists(ActiveRecord $activeRecord, string $field_name)
renameField(ActiveRecord $activeRecord, string $old_name, string $new_name)