ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.arConnector.php
Go to the documentation of this file.
1<?php
2
24abstract 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}
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...
nextID(ActiveRecord $activeRecord)
checkTableExists(ActiveRecord $activeRecord)
affectedRows(ActiveRecordList $activeRecordList)
checkConnection(ActiveRecord $activeRecord)
updateIndices(ActiveRecord $activeRecord)
truncateDatabase(ActiveRecord $activeRecord)
renameField(ActiveRecord $activeRecord, string $old_name, string $new_name)
create(ActiveRecord $activeRecord)
resetDatabase(ActiveRecord $activeRecord)
fixDate(string $value)
checkFieldExists(ActiveRecord $activeRecord, string $field_name)
updateDatabase(ActiveRecord $activeRecord)
readSet(ActiveRecordList $activeRecordList)
installDatabase(ActiveRecord $activeRecord, array $fields)
read(ActiveRecord $activeRecord)
removeField(ActiveRecord $activeRecord, string $field_name)
update(ActiveRecord $activeRecord)
quote(mixed $value, string $type)