ILIAS  release_8 Revision v8.25
class.arConnector.php
Go to the documentation of this file.
1<?php
2
3/******************************************************************************
4 *
5 * This file is part of ILIAS, a powerful learning management system.
6 *
7 * ILIAS is licensed with the GPL-3.0, you should have received a copy
8 * of said license along with the source code.
9 *
10 * If this is not the case or you just want to try ILIAS, you'll find
11 * us at:
12 * https://www.ilias.de
13 * https://github.com/ILIAS-eLearning
14 *
15 *****************************************************************************/
21abstract class arConnector
22{
26 abstract public function nextID(ActiveRecord $ar);
27
28 abstract public function checkConnection(ActiveRecord $ar): bool;
29
30 abstract public function installDatabase(ActiveRecord $ar, array $fields): bool;
31
32 abstract public function updateDatabase(ActiveRecord $ar): bool;
33
34 abstract public function resetDatabase(ActiveRecord $ar): bool;
35
36 abstract public function truncateDatabase(ActiveRecord $ar): bool;
37
38 abstract public function checkTableExists(ActiveRecord $ar): bool;
39
40 abstract public function checkFieldExists(ActiveRecord $ar, string $field_name): bool;
41
42 abstract public function removeField(ActiveRecord $ar, string $field_name): bool;
43
44 abstract public function renameField(ActiveRecord $ar, string $old_name, string $new_name): bool;
45
46 abstract public function create(ActiveRecord $ar): void;
47
48 abstract public function read(ActiveRecord $ar): array;
49
50 abstract public function update(ActiveRecord $ar): void;
51
52 abstract public function delete(ActiveRecord $ar): void;
53
54 abstract public function readSet(ActiveRecordList $arl): array;
55
56 abstract public function affectedRows(ActiveRecordList $arl): int;
57
61 abstract public function quote($value, string $type): string;
62
63 abstract public function updateIndices(ActiveRecord $ar): void;
64
65 public function fixDate(string $value): string
66 {
67 return $value;
68 }
69}
@noinspection NullPointerExceptionInspection
Class ActiveRecord.
Class arConnector.
checkTableExists(ActiveRecord $ar)
removeField(ActiveRecord $ar, string $field_name)
update(ActiveRecord $ar)
create(ActiveRecord $ar)
truncateDatabase(ActiveRecord $ar)
renameField(ActiveRecord $ar, string $old_name, string $new_name)
readSet(ActiveRecordList $arl)
affectedRows(ActiveRecordList $arl)
nextID(ActiveRecord $ar)
read(ActiveRecord $ar)
installDatabase(ActiveRecord $ar, array $fields)
updateIndices(ActiveRecord $ar)
fixDate(string $value)
updateDatabase(ActiveRecord $ar)
checkFieldExists(ActiveRecord $ar, string $field_name)
quote($value, string $type)
resetDatabase(ActiveRecord $ar)
checkConnection(ActiveRecord $ar)
$type