|
ILIAS
trunk Revision v12.0_alpha-1227-g7ff6d300864
|
Class ilDBPdoMySQLFieldDefinition. More...
Inheritance diagram for ilDBPdoMySQLFieldDefinition:
Collaboration diagram for ilDBPdoMySQLFieldDefinition:Public Member Functions | |
| __construct (protected \ilDBInterface $db_instance) | |
| 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, 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) | |
| getTypeDeclaration (array $field) | |
| 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, array $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]*$/" |
| array | $allowed_attributes_old |
| array | $allowed_attributes |
Data Fields inherited from ILIAS\Database\FieldDefinition | |
| 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' |
Protected Attributes | |
| array | $max_length |
| array | $available_types |
| array | $reserved_mysql |
| array | $reserved_postgres |
| ilMySQLQueryUtils | $query_utils = null |
| array | $valid_default_values |
Static Protected Attributes | |
| static self | $instance |
Private Member Functions | |
| getDBInstance () | |
| mapNativeDatatypeInternal (array $field) | |
Private Attributes | |
| const | MAX_TABLE_IDENTIFIER_LENGTH = 63 |
Class ilDBPdoMySQLFieldDefinition.
Definition at line 28 of file ilDBPdoMySQLFieldDefinition.php.
| ilDBPdoMySQLFieldDefinition::__construct | ( | protected \ilDBInterface | $db_instance | ) |
Definition at line 815 of file ilDBPdoMySQLFieldDefinition.php.
| ilDBPdoMySQLFieldDefinition::checkColumnDefinition | ( | array | $a_def | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 935 of file ilDBPdoMySQLFieldDefinition.php.
References $allowed_attributes, $max_length, getAllowedAttributes(), getAvailableTypes(), getMaxLength(), ILIAS\Database\FieldDefinition\T_INTEGER, and ILIAS\Database\FieldDefinition\T_TEXT.
Here is the call graph for this function:| ilDBPdoMySQLFieldDefinition::checkColumnName | ( | string | $column_name | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 890 of file ilDBPdoMySQLFieldDefinition.php.
References isReserved().
Here is the call graph for this function:| ilDBPdoMySQLFieldDefinition::checkIndexName | ( | string | $a_name | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 915 of file ilDBPdoMySQLFieldDefinition.php.
References isReserved().
Here is the call graph for this function:| ilDBPdoMySQLFieldDefinition::checkTableName | ( | string | $table_name | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 835 of file ilDBPdoMySQLFieldDefinition.php.
References isReserved().
Here is the call graph for this function:| ilDBPdoMySQLFieldDefinition::compareDefinition | ( | array | $current, |
| array | $previous | ||
| ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1097 of file ilDBPdoMySQLFieldDefinition.php.
References getDBInstance().
Here is the call graph for this function:| ilDBPdoMySQLFieldDefinition::destroyLOB | ( | $lob | ) |
| resource | $lob |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1185 of file ilDBPdoMySQLFieldDefinition.php.
| ilDBPdoMySQLFieldDefinition::getAllowedAttributes | ( | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1008 of file ilDBPdoMySQLFieldDefinition.php.
References $allowed_attributes.
Referenced by checkColumnDefinition().
Here is the caller graph for this function:| ilDBPdoMySQLFieldDefinition::getAllReserved | ( | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 865 of file ilDBPdoMySQLFieldDefinition.php.
References getReservedMysql().
Here is the call graph for this function:| ilDBPdoMySQLFieldDefinition::getAvailableTypes | ( | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 992 of file ilDBPdoMySQLFieldDefinition.php.
References $available_types.
Referenced by checkColumnDefinition().
Here is the caller graph for this function:
|
private |
Definition at line 1031 of file ilDBPdoMySQLFieldDefinition.php.
Referenced by compareDefinition(), getDeclaration(), getTypeDeclaration(), getValidTypes(), mapNativeDatatype(), mapPrepareDatatype(), matchPattern(), quote(), and writeLOBToFile().
Here is the caller graph for this function:| ilDBPdoMySQLFieldDefinition::getDeclaration | ( | string | $type, |
| string | $name, | ||
| array | $field | ||
| ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1068 of file ilDBPdoMySQLFieldDefinition.php.
References getDBInstance().
Here is the call graph for this function:| ilDBPdoMySQLFieldDefinition::getMaxLength | ( | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1021 of file ilDBPdoMySQLFieldDefinition.php.
References $max_length.
Referenced by checkColumnDefinition().
Here is the caller graph for this function:| ilDBPdoMySQLFieldDefinition::getReservedMysql | ( | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 873 of file ilDBPdoMySQLFieldDefinition.php.
References $reserved_mysql.
Referenced by getAllReserved().
Here is the caller graph for this function:| ilDBPdoMySQLFieldDefinition::getTypeDeclaration | ( | array | $field | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1286 of file ilDBPdoMySQLFieldDefinition.php.
References getDBInstance().
Here is the call graph for this function:| ilDBPdoMySQLFieldDefinition::getValidTypes | ( | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1039 of file ilDBPdoMySQLFieldDefinition.php.
References $valid_default_values, and getDBInstance().
Here is the call graph for this function:| ilDBPdoMySQLFieldDefinition::isAllowedAttribute | ( | string | $attribute, |
| string | $type | ||
| ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 984 of file ilDBPdoMySQLFieldDefinition.php.
| ilDBPdoMySQLFieldDefinition::isReserved | ( | string | $table_name | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 857 of file ilDBPdoMySQLFieldDefinition.php.
Referenced by checkColumnName(), checkIndexName(), and checkTableName().
Here is the caller graph for this function:| ilDBPdoMySQLFieldDefinition::mapNativeDatatype | ( | array | $field | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1252 of file ilDBPdoMySQLFieldDefinition.php.
References getDBInstance(), and mapNativeDatatypeInternal().
Here is the call graph for this function:
|
private |
Definition at line 1385 of file ilDBPdoMySQLFieldDefinition.php.
Referenced by mapNativeDatatype().
Here is the caller graph for this function:| ilDBPdoMySQLFieldDefinition::mapPrepareDatatype | ( | string | $type | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1266 of file ilDBPdoMySQLFieldDefinition.php.
References getDBInstance().
Here is the call graph for this function:| ilDBPdoMySQLFieldDefinition::matchPattern | ( | array | $pattern, |
$operator = null, |
|||
$field = null |
|||
| ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1201 of file ilDBPdoMySQLFieldDefinition.php.
References getDBInstance(), and patternEscapeString().
Here is the call graph for this function:| ilDBPdoMySQLFieldDefinition::patternEscapeString | ( | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1244 of file ilDBPdoMySQLFieldDefinition.php.
Referenced by matchPattern().
Here is the caller graph for this function:| ilDBPdoMySQLFieldDefinition::quote | ( | $value, | |
| ?string | $type = null, |
||
| bool | $quote = true, |
||
| bool | $escape_wildcards = false |
||
| ) |
| mixed | $value |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1149 of file ilDBPdoMySQLFieldDefinition.php.
References getDBInstance().
Here is the call graph for this function:| ilDBPdoMySQLFieldDefinition::setAllowedAttributes | ( | array | $allowed_attributes | ) |
| array<string,string[]> | $allowed_attributes |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1016 of file ilDBPdoMySQLFieldDefinition.php.
References $allowed_attributes.
| ilDBPdoMySQLFieldDefinition::setAvailableTypes | ( | array | $available_types | ) |
| string[] | $available_types |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1000 of file ilDBPdoMySQLFieldDefinition.php.
References $available_types.
| ilDBPdoMySQLFieldDefinition::setMaxLength | ( | array | $max_length | ) |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1026 of file ilDBPdoMySQLFieldDefinition.php.
References $max_length.
| ilDBPdoMySQLFieldDefinition::setReservedMysql | ( | array | $reserved_mysql | ) |
| string[] | $reserved_mysql |
Implements ILIAS\Database\FieldDefinition.
Definition at line 881 of file ilDBPdoMySQLFieldDefinition.php.
References $reserved_mysql.
| ilDBPdoMySQLFieldDefinition::writeLOBToFile | ( | $lob, | |
| string | $file | ||
| ) |
| resource | $lob |
Implements ILIAS\Database\FieldDefinition.
Definition at line 1159 of file ilDBPdoMySQLFieldDefinition.php.
References getDBInstance().
Here is the call graph for this function:| array ilDBPdoMySQLFieldDefinition::$allowed_attributes |
Definition at line 55 of file ilDBPdoMySQLFieldDefinition.php.
Referenced by checkColumnDefinition(), getAllowedAttributes(), and setAllowedAttributes().
| array ilDBPdoMySQLFieldDefinition::$allowed_attributes_old |
Definition at line 42 of file ilDBPdoMySQLFieldDefinition.php.
|
protected |
Definition at line 72 of file ilDBPdoMySQLFieldDefinition.php.
Referenced by getAvailableTypes(), and setAvailableTypes().
|
staticprotected |
Definition at line 38 of file ilDBPdoMySQLFieldDefinition.php.
| array ilDBPdoMySQLFieldDefinition::$lobs |
Definition at line 30 of file ilDBPdoMySQLFieldDefinition.php.
|
protected |
Definition at line 65 of file ilDBPdoMySQLFieldDefinition.php.
Referenced by checkColumnDefinition(), getMaxLength(), and setMaxLength().
|
protected |
Definition at line 813 of file ilDBPdoMySQLFieldDefinition.php.
|
protected |
Definition at line 85 of file ilDBPdoMySQLFieldDefinition.php.
Referenced by getReservedMysql(), and setReservedMysql().
|
protected |
Definition at line 715 of file ilDBPdoMySQLFieldDefinition.php.
|
protected |
Definition at line 819 of file ilDBPdoMySQLFieldDefinition.php.
Referenced by getValidTypes().
| const ilDBPdoMySQLFieldDefinition::DEFAULT_DECIMAL_PLACES = 2 |
Definition at line 31 of file ilDBPdoMySQLFieldDefinition.php.
| const ilDBPdoMySQLFieldDefinition::DEFAULT_TEXT_LENGTH = 4000 |
Definition at line 32 of file ilDBPdoMySQLFieldDefinition.php.
| const ilDBPdoMySQLFieldDefinition::DEFINITION_COLUMN_NAME = "/^[a-z]+[_a-z0-9]*$/" |
Definition at line 33 of file ilDBPdoMySQLFieldDefinition.php.
| const ilDBPdoMySQLFieldDefinition::DEFINITION_TABLE_NAME = "/^[a-z]+[_a-z0-9]*$/" |
Definition at line 34 of file ilDBPdoMySQLFieldDefinition.php.
|
private |
Definition at line 36 of file ilDBPdoMySQLFieldDefinition.php.