|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilDBPdoFieldDefinition:
Collaboration diagram for ilDBPdoFieldDefinition:Public Member Functions | |
| __construct (\ilDBInterface $ilDBInterface) | |
| ilDBPdoFieldDefinition constructor. More... | |
| array | checkTableName (string $table_name) |
| isReserved (string $table_name) | |
| getAllReserved () | |
| getReservedMysql () | |
| setReservedMysql (array $reserved_mysql) | |
| checkColumnName (string $column_name) | |
| checkIndexName (string $a_name) | |
| checkColumnDefinition (array $a_def) | |
| isAllowedAttribute (string $attribute, string $type) | |
| getAvailableTypes () | |
| setAvailableTypes (array $available_types) | |
| getAllowedAttributes () | |
| setAllowedAttributes (array $allowed_attributes) | |
| getMaxLength () | |
| setMaxLength (array $max_length) | |
| getValidTypes () | |
| getDeclaration (string $type, string $name, $field) | |
| getTypeDeclaration (array $field) | |
| compareDefinition (array $current, array $previous) | |
| quote ($value, ?string $type=null, bool $quote=true, bool $escape_wildcards=false) | |
| writeLOBToFile ($lob, string $file) | |
| destroyLOB ($lob) | |
| matchPattern (array $pattern, $operator=null, $field=null) | |
| patternEscapeString () | |
| mapNativeDatatype (array $field) | |
| mapPrepareDatatype (string $type) | |
Data Fields | |
| array | $lobs |
| const | DEFAULT_DECIMAL_PLACES = 2 |
| const | DEFAULT_TEXT_LENGTH = 4000 |
| const | DEFINITION_COLUMN_NAME = "/^[a-z]+[_a-z0-9]*$/" |
| const | DEFINITION_TABLE_NAME = "/^[a-z]+[_a-z0-9]*$/" |
| const | INDEX_FORMAT = '%s_idx' |
| const | SEQUENCE_COLUMNS_NAME = 'sequence' |
| const | SEQUENCE_FORMAT = '%s_seq' |
| const | T_BLOB = 'blob' |
| const | T_CLOB = 'clob' |
| const | T_DATE = 'date' |
| const | T_DATETIME = 'datetime' |
| const | T_FLOAT = 'float' |
| const | T_INTEGER = 'integer' |
| const | T_TEXT = 'text' |
| const | T_TIME = 'time' |
| const | T_TIMESTAMP = 'timestamp' |
| array | $allowed_attributes_old |
| array | $allowed_attributes |
| array | integer => ["length" |
| array | notnull |
| array | default |
| array | unsigned |
| array | float => ["notnull" |
| array | date => ["notnull" |
| array | time => ["notnull" |
| array | timestamp => ["notnull" |
| array | clob => ["length" |
| array | blob => ["length" |
Protected Member Functions | |
| getQueryUtils () | |
| getDBInstance () | |
| getInternalDeclaration (string $name, array $field) | |
| getDeclarationOptions (array $field) | |
| getCharsetFieldDeclaration (string $charset) | |
| getCollationFieldDeclaration (string $collation) | |
| getIntegerDeclaration (string $name, array $field) | |
| getTextDeclaration (string $name, array $field) | |
| getCLOBDeclaration (string $name, array $field) | |
| getBLOBDeclaration (string $name, array $field) | |
| getBooleanDeclaration (string $name, array $field) | |
| getDateDeclaration (string $name, array $field) | |
| getTimestampDeclaration (string $name, array $field) | |
| getTimeDeclaration (string $name, array $field) | |
| getFloatDeclaration (string $name, array $field) | |
| getDecimalDeclaration (string $name, array $field) | |
| compareIntegerDefinition (array $current, array $previous) | |
| compareTextDefinition (array $current, array $previous) | |
| compareCLOBDefinition (array $current, array $previous) | |
| compareBLOBDefinition (array $current, array $previous) | |
| compareDateDefinition (array $current, array $previous) | |
| compareTimeDefinition (array $current, array $previous) | |
| compareTimestampDefinition (array $current, array $previous) | |
| compareBooleanDefinition (array $current, array $previous) | |
| compareFloatDefinition (array $current, array $previous) | |
| compareDecimalDefinition (array $current, array $previous) | |
| quoteInteger ($value, bool $quote, bool $escape_wildcards) | |
| quoteText (string $value, bool $quote, bool $escape_wildcards) | |
| readFile ($value) | |
| quoteLOB ($value, bool $quote, bool $escape_wildcards) | |
| quoteCLOB ($value, bool $quote, bool $escape_wildcards) | |
| quoteBLOB ($value, bool $quote, bool $escape_wildcards) | |
| quoteBoolean (bool $value, bool $quote, bool $escape_wildcards) | |
| quoteDate (string $value, bool $quote, bool $escape_wildcards) | |
| quoteTimestamp (int $value, bool $quote, bool $escape_wildcards) | |
| quoteTime (int $value, bool $quote, bool $escape_wildcards) | |
| quoteFloat (string $value, bool $quote, bool $escape_wildcards) | |
| quoteDecimal (string $value, bool $quote, bool $escape_wildcards) | |
| retrieveLOB (array &$lob) | |
| readLOB (array $lob, int $length) | |
| endOfLOB (array $lob) | |
| mapNativeDatatypeInternal (array $field) | |
Protected Attributes | |
| array ilDBInterface | $db_instance |
| array | $max_length |
| array | $available_types |
| array | $reserved_mysql |
| array | $reserved_postgres |
| ilMySQLQueryUtils | $query_utils = null |
| array | $valid_default_values |
Static Protected Attributes | |
| static ilDBPdoFieldDefinition | $instance |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilDBPdoFieldDefinition
Definition at line 25 of file class.ilDBPdoFieldDefinition.php.
| ilDBPdoFieldDefinition::__construct | ( | \ilDBInterface | $ilDBInterface | ) |
ilDBPdoFieldDefinition constructor.
Definition at line 827 of file class.ilDBPdoFieldDefinition.php.
| ilDBPdoFieldDefinition::checkColumnDefinition | ( | array | $a_def | ) |
Definition at line 956 of file class.ilDBPdoFieldDefinition.php.
References getAllowedAttributes(), getAvailableTypes(), and getMaxLength().
Here is the call graph for this function:| ilDBPdoFieldDefinition::checkColumnName | ( | string | $column_name | ) |
Definition at line 911 of file class.ilDBPdoFieldDefinition.php.
References isReserved().
Here is the call graph for this function:| ilDBPdoFieldDefinition::checkIndexName | ( | string | $a_name | ) |
Definition at line 936 of file class.ilDBPdoFieldDefinition.php.
References isReserved().
Here is the call graph for this function:| array ilDBPdoFieldDefinition::checkTableName | ( | string | $table_name | ) |
Definition at line 857 of file class.ilDBPdoFieldDefinition.php.
References isReserved().
Here is the call graph for this function:
|
protected |
Definition at line 1382 of file class.ilDBPdoFieldDefinition.php.
References compareTextDefinition().
Here is the call graph for this function:
|
protected |
Definition at line 1402 of file class.ilDBPdoFieldDefinition.php.
|
protected |
Definition at line 1374 of file class.ilDBPdoFieldDefinition.php.
References compareTextDefinition().
Here is the call graph for this function:
|
protected |
Definition at line 1387 of file class.ilDBPdoFieldDefinition.php.
|
protected |
Definition at line 1412 of file class.ilDBPdoFieldDefinition.php.
| ilDBPdoFieldDefinition::compareDefinition | ( | array | $current, |
| array | $previous | ||
| ) |
Definition at line 1282 of file class.ilDBPdoFieldDefinition.php.
References getDBInstance().
Here is the call graph for this function:
|
protected |
Definition at line 1407 of file class.ilDBPdoFieldDefinition.php.
|
protected |
Definition at line 1334 of file class.ilDBPdoFieldDefinition.php.
|
protected |
Definition at line 1354 of file class.ilDBPdoFieldDefinition.php.
Referenced by compareBLOBDefinition(), and compareCLOBDefinition().
Here is the caller graph for this function:
|
protected |
Definition at line 1392 of file class.ilDBPdoFieldDefinition.php.
|
protected |
Definition at line 1397 of file class.ilDBPdoFieldDefinition.php.
| ilDBPdoFieldDefinition::destroyLOB | ( | $lob | ) |
| resource | $lob |
Definition at line 1621 of file class.ilDBPdoFieldDefinition.php.
|
protected |
Definition at line 1613 of file class.ilDBPdoFieldDefinition.php.
| ilDBPdoFieldDefinition::getAllowedAttributes | ( | ) |
Definition at line 1029 of file class.ilDBPdoFieldDefinition.php.
References $allowed_attributes.
Referenced by checkColumnDefinition().
Here is the caller graph for this function:| ilDBPdoFieldDefinition::getAllReserved | ( | ) |
Definition at line 886 of file class.ilDBPdoFieldDefinition.php.
References getReservedMysql().
Here is the call graph for this function:| ilDBPdoFieldDefinition::getAvailableTypes | ( | ) |
Definition at line 1013 of file class.ilDBPdoFieldDefinition.php.
References $available_types.
Referenced by checkColumnDefinition().
Here is the caller graph for this function:
|
protected |
Definition at line 1237 of file class.ilDBPdoFieldDefinition.php.
References getDBInstance(), and getTypeDeclaration().
Here is the call graph for this function:
|
protected |
Definition at line 1247 of file class.ilDBPdoFieldDefinition.php.
References getInternalDeclaration().
Here is the call graph for this function:
|
protected |
Definition at line 1201 of file class.ilDBPdoFieldDefinition.php.
Referenced by getDeclarationOptions().
Here is the caller graph for this function:
|
protected |
Definition at line 1227 of file class.ilDBPdoFieldDefinition.php.
References getDBInstance(), and getTypeDeclaration().
Here is the call graph for this function:
|
protected |
Definition at line 1206 of file class.ilDBPdoFieldDefinition.php.
Referenced by getDeclarationOptions().
Here is the caller graph for this function:
|
protected |
Definition at line 1252 of file class.ilDBPdoFieldDefinition.php.
References getInternalDeclaration().
Here is the call graph for this function:
|
protected |
Definition at line 1052 of file class.ilDBPdoFieldDefinition.php.
References $db_instance.
Referenced by compareDefinition(), getBLOBDeclaration(), getCLOBDeclaration(), getDeclaration(), getDeclarationOptions(), ilDBPdoMySQLFieldDefinition\getIntegerDeclaration(), getInternalDeclaration(), ilDBPdoMySQLFieldDefinition\getTypeDeclaration(), getTypeDeclaration(), getValidTypes(), mapNativeDatatype(), mapPrepareDatatype(), matchPattern(), quote(), quoteText(), readFile(), and writeLOBToFile().
Here is the caller graph for this function:
|
protected |
Definition at line 1272 of file class.ilDBPdoFieldDefinition.php.
References getInternalDeclaration().
Here is the call graph for this function:| ilDBPdoFieldDefinition::getDeclaration | ( | string | $type, |
| string | $name, | ||
| $field | |||
| ) |
Definition at line 1089 of file class.ilDBPdoFieldDefinition.php.
References getDBInstance().
Here is the call graph for this function:
|
protected |
Definition at line 1162 of file class.ilDBPdoFieldDefinition.php.
References getCharsetFieldDeclaration(), getCollationFieldDeclaration(), getDBInstance(), getValidTypes(), and quote().
Here is the call graph for this function:
|
protected |
Definition at line 1267 of file class.ilDBPdoFieldDefinition.php.
References getInternalDeclaration().
Here is the call graph for this function:
|
protected |
Definition at line 1214 of file class.ilDBPdoFieldDefinition.php.
References getInternalDeclaration().
Here is the call graph for this function:
|
protected |
Definition at line 1145 of file class.ilDBPdoFieldDefinition.php.
References getDBInstance(), and getTypeDeclaration().
Referenced by getBooleanDeclaration(), getDateDeclaration(), getDecimalDeclaration(), getFloatDeclaration(), getIntegerDeclaration(), getTextDeclaration(), getTimeDeclaration(), and getTimestampDeclaration().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdoFieldDefinition::getMaxLength | ( | ) |
Definition at line 1042 of file class.ilDBPdoFieldDefinition.php.
References $max_length.
Referenced by checkColumnDefinition().
Here is the caller graph for this function:
|
protected |
Definition at line 832 of file class.ilDBPdoFieldDefinition.php.
References $query_utils.
| ilDBPdoFieldDefinition::getReservedMysql | ( | ) |
Definition at line 894 of file class.ilDBPdoFieldDefinition.php.
References $reserved_mysql.
Referenced by getAllReserved().
Here is the caller graph for this function:
|
protected |
Definition at line 1222 of file class.ilDBPdoFieldDefinition.php.
References getInternalDeclaration().
Here is the call graph for this function:
|
protected |
Definition at line 1262 of file class.ilDBPdoFieldDefinition.php.
References getInternalDeclaration().
Here is the call graph for this function:
|
protected |
Definition at line 1257 of file class.ilDBPdoFieldDefinition.php.
References getInternalDeclaration().
Here is the call graph for this function:| ilDBPdoFieldDefinition::getTypeDeclaration | ( | array | $field | ) |
Definition at line 1113 of file class.ilDBPdoFieldDefinition.php.
References getDBInstance().
Referenced by getBLOBDeclaration(), getCLOBDeclaration(), and getInternalDeclaration().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdoFieldDefinition::getValidTypes | ( | ) |
Definition at line 1060 of file class.ilDBPdoFieldDefinition.php.
References $valid_default_values, and getDBInstance().
Referenced by getDeclarationOptions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdoFieldDefinition::isAllowedAttribute | ( | string | $attribute, |
| string | $type | ||
| ) |
Definition at line 1005 of file class.ilDBPdoFieldDefinition.php.
| ilDBPdoFieldDefinition::isReserved | ( | string | $table_name | ) |
Definition at line 878 of file class.ilDBPdoFieldDefinition.php.
Referenced by checkColumnName(), checkIndexName(), and checkTableName().
Here is the caller graph for this function:| ilDBPdoFieldDefinition::mapNativeDatatype | ( | array | $field | ) |
Definition at line 1687 of file class.ilDBPdoFieldDefinition.php.
References getDBInstance(), and mapNativeDatatypeInternal().
Here is the call graph for this function:
|
abstractprotected |
| ilDBPdoFieldDefinition::mapPrepareDatatype | ( | string | $type | ) |
Definition at line 1706 of file class.ilDBPdoFieldDefinition.php.
References getDBInstance().
Here is the call graph for this function:| ilDBPdoFieldDefinition::matchPattern | ( | array | $pattern, |
$operator = null, |
|||
$field = null |
|||
| ) |
Definition at line 1637 of file class.ilDBPdoFieldDefinition.php.
References getDBInstance(), and patternEscapeString().
Here is the call graph for this function:| ilDBPdoFieldDefinition::patternEscapeString | ( | ) |
Definition at line 1679 of file class.ilDBPdoFieldDefinition.php.
Referenced by matchPattern().
Here is the caller graph for this function:| ilDBPdoFieldDefinition::quote | ( | $value, | |
| ?string | $type = null, |
||
| bool | $quote = true, |
||
| bool | $escape_wildcards = false |
||
| ) |
| mixed | $value |
Definition at line 1420 of file class.ilDBPdoFieldDefinition.php.
References getDBInstance().
Referenced by getDeclarationOptions(), and ilDBPdoMySQLFieldDefinition\getIntegerDeclaration().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| string | resource | $value |
Definition at line 1496 of file class.ilDBPdoFieldDefinition.php.
References quoteLOB().
Here is the call graph for this function:
|
protected |
Definition at line 1501 of file class.ilDBPdoFieldDefinition.php.
|
protected |
| string | resource | $value |
Definition at line 1489 of file class.ilDBPdoFieldDefinition.php.
References quoteLOB().
Here is the call graph for this function:
|
protected |
Definition at line 1506 of file class.ilDBPdoFieldDefinition.php.
References quoteText().
Here is the call graph for this function:
|
protected |
Definition at line 1545 of file class.ilDBPdoFieldDefinition.php.
Referenced by quoteFloat().
Here is the caller graph for this function:
|
protected |
Definition at line 1531 of file class.ilDBPdoFieldDefinition.php.
References quoteDecimal().
Here is the call graph for this function:
|
protected |
| mixed | $value |
Definition at line 1428 of file class.ilDBPdoFieldDefinition.php.
|
protected |
| string | resource | $value |
Definition at line 1480 of file class.ilDBPdoFieldDefinition.php.
References quoteText(), and readFile().
Referenced by quoteBLOB(), and quoteCLOB().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1433 of file class.ilDBPdoFieldDefinition.php.
References getDBInstance().
Referenced by quoteDate(), and quoteLOB().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1526 of file class.ilDBPdoFieldDefinition.php.
|
protected |
Definition at line 1518 of file class.ilDBPdoFieldDefinition.php.
|
protected |
| string | resource | $value |
Definition at line 1449 of file class.ilDBPdoFieldDefinition.php.
References getDBInstance().
Referenced by quoteLOB().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1605 of file class.ilDBPdoFieldDefinition.php.
|
protected |
Definition at line 1595 of file class.ilDBPdoFieldDefinition.php.
| ilDBPdoFieldDefinition::setAllowedAttributes | ( | array | $allowed_attributes | ) |
| string[] | $allowed_attributes |
Definition at line 1037 of file class.ilDBPdoFieldDefinition.php.
References $allowed_attributes.
| ilDBPdoFieldDefinition::setAvailableTypes | ( | array | $available_types | ) |
| string[] | $available_types |
Definition at line 1021 of file class.ilDBPdoFieldDefinition.php.
References $available_types.
| ilDBPdoFieldDefinition::setMaxLength | ( | array | $max_length | ) |
| ilDBPdoFieldDefinition::setReservedMysql | ( | array | $reserved_mysql | ) |
| string[] | $reserved_mysql |
Definition at line 902 of file class.ilDBPdoFieldDefinition.php.
References $reserved_mysql.
| ilDBPdoFieldDefinition::writeLOBToFile | ( | $lob, | |
| string | $file | ||
| ) |
| resource | $lob |
Definition at line 1572 of file class.ilDBPdoFieldDefinition.php.
References getDBInstance().
Here is the call graph for this function:| array ilDBPdoFieldDefinition::$allowed_attributes |
Definition at line 61 of file class.ilDBPdoFieldDefinition.php.
Referenced by getAllowedAttributes(), and setAllowedAttributes().
| array ilDBPdoFieldDefinition::$allowed_attributes_old |
Definition at line 48 of file class.ilDBPdoFieldDefinition.php.
|
protected |
Definition at line 79 of file class.ilDBPdoFieldDefinition.php.
Referenced by getAvailableTypes(), and setAvailableTypes().
|
protected |
Definition at line 69 of file class.ilDBPdoFieldDefinition.php.
Referenced by getDBInstance().
|
staticprotected |
Definition at line 44 of file class.ilDBPdoFieldDefinition.php.
| array ilDBPdoFieldDefinition::$lobs |
Definition at line 27 of file class.ilDBPdoFieldDefinition.php.
|
protected |
Definition at line 72 of file class.ilDBPdoFieldDefinition.php.
Referenced by getMaxLength(), and setMaxLength().
|
protected |
Definition at line 822 of file class.ilDBPdoFieldDefinition.php.
Referenced by getQueryUtils().
|
protected |
Definition at line 92 of file class.ilDBPdoFieldDefinition.php.
Referenced by getReservedMysql(), and setReservedMysql().
|
protected |
Definition at line 722 of file class.ilDBPdoFieldDefinition.php.
|
protected |
Definition at line 841 of file class.ilDBPdoFieldDefinition.php.
Referenced by getValidTypes().
| array ilDBPdoFieldDefinition::blob => ["length" |
Definition at line 69 of file class.ilDBPdoFieldDefinition.php.
| array ilDBPdoFieldDefinition::clob => ["length" |
Definition at line 68 of file class.ilDBPdoFieldDefinition.php.
| array ilDBPdoFieldDefinition::date => ["notnull" |
Definition at line 65 of file class.ilDBPdoFieldDefinition.php.
| array ilDBPdoFieldDefinition::default |
Definition at line 63 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::DEFAULT_DECIMAL_PLACES = 2 |
Definition at line 28 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::DEFAULT_TEXT_LENGTH = 4000 |
Definition at line 29 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::DEFINITION_COLUMN_NAME = "/^[a-z]+[_a-z0-9]*$/" |
Definition at line 30 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::DEFINITION_TABLE_NAME = "/^[a-z]+[_a-z0-9]*$/" |
Definition at line 31 of file class.ilDBPdoFieldDefinition.php.
| array ilDBPdoFieldDefinition::float => ["notnull" |
Definition at line 64 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::INDEX_FORMAT = '%s_idx' |
Definition at line 32 of file class.ilDBPdoFieldDefinition.php.
Referenced by ilDBPdoManager\fixIndexName(), and ilDBPdo\getIndexName().
| array ilDBPdoFieldDefinition::integer => ["length" |
Definition at line 63 of file class.ilDBPdoFieldDefinition.php.
| array ilDBPdoFieldDefinition::notnull |
Definition at line 63 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::SEQUENCE_COLUMNS_NAME = 'sequence' |
Definition at line 33 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::SEQUENCE_FORMAT = '%s_seq' |
Definition at line 34 of file class.ilDBPdoFieldDefinition.php.
Referenced by ilDBPdo\getSequenceName().
| const ilDBPdoFieldDefinition::T_BLOB = 'blob' |
Definition at line 35 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::T_CLOB = 'clob' |
Definition at line 36 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::T_DATE = 'date' |
Definition at line 37 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::T_DATETIME = 'datetime' |
Definition at line 38 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::T_FLOAT = 'float' |
Definition at line 39 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::T_INTEGER = 'integer' |
Definition at line 40 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::T_TEXT = 'text' |
Definition at line 41 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::T_TIME = 'time' |
Definition at line 42 of file class.ilDBPdoFieldDefinition.php.
| const ilDBPdoFieldDefinition::T_TIMESTAMP = 'timestamp' |
Definition at line 43 of file class.ilDBPdoFieldDefinition.php.
| array ilDBPdoFieldDefinition::time => ["notnull" |
Definition at line 66 of file class.ilDBPdoFieldDefinition.php.
| array ilDBPdoFieldDefinition::timestamp => ["notnull" |
Definition at line 67 of file class.ilDBPdoFieldDefinition.php.
| array ilDBPdoFieldDefinition::unsigned |
Definition at line 63 of file class.ilDBPdoFieldDefinition.php.