ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
FieldDefinition.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Database;
22
24{
25 public const INDEX_FORMAT = '%s_idx';
26 public const SEQUENCE_COLUMNS_NAME = 'sequence';
27 public const SEQUENCE_FORMAT = '%s_seq';
28 public const T_BLOB = 'blob';
29 public const T_CLOB = 'clob';
30 public const T_DATE = 'date';
31 public const T_DATETIME = 'datetime';
32 public const T_FLOAT = 'float';
33 public const T_INTEGER = 'integer';
34 public const T_TEXT = 'text';
35 public const T_TIME = 'time';
36 public const T_TIMESTAMP = 'timestamp';
37
38 public function checkTableName(string $table_name): bool;
39 public function isReserved(string $table_name): bool;
40 public function getAllReserved(): array;
41 public function getReservedMysql(): array;
42 public function setReservedMysql(array $reserved_mysql): void;
43 public function checkColumnName(string $column_name): bool;
44 public function checkIndexName(string $a_name): bool;
45 public function checkColumnDefinition(array $a_def): bool;
46 public function isAllowedAttribute(string $attribute, string $type): bool;
47 public function getAvailableTypes(): array;
48 public function setAvailableTypes(array $available_types): void;
49 public function getAllowedAttributes(): array;
50 public function setAllowedAttributes(array $allowed_attributes): void;
51 public function getMaxLength(): array;
52 public function setMaxLength(array $max_length): void;
53 public function getValidTypes(): array;
54 public function getDeclaration(string $type, string $name, array $field);
55 public function getTypeDeclaration(array $field): string;
56 public function compareDefinition(array $current, array $previous): array;
57 public function quote($value, ?string $type = null, bool $quote = true, bool $escape_wildcards = false): string;
58 public function writeLOBToFile($lob, string $file): bool;
59 public function destroyLOB($lob): bool;
60 public function matchPattern(array $pattern, $operator = null, $field = null): string;
61 public function patternEscapeString(): string;
62 public function mapNativeDatatype(array $field);
63 public function mapPrepareDatatype(string $type);
64}
checkIndexName(string $a_name)
setMaxLength(array $max_length)
matchPattern(array $pattern, $operator=null, $field=null)
compareDefinition(array $current, array $previous)
isReserved(string $table_name)
getDeclaration(string $type, string $name, array $field)
isAllowedAttribute(string $attribute, string $type)
checkTableName(string $table_name)
quote($value, ?string $type=null, bool $quote=true, bool $escape_wildcards=false)
writeLOBToFile($lob, string $file)
setAvailableTypes(array $available_types)
setReservedMysql(array $reserved_mysql)
checkColumnName(string $column_name)
checkColumnDefinition(array $a_def)
setAllowedAttributes(array $allowed_attributes)