|
ILIAS
trunk Revision v12.0_alpha-1221-g4e438232683
|
Inheritance diagram for ilDBPdo:
Collaboration diagram for ilDBPdo:Public Member Functions | |
| __construct (private readonly Details $details) | |
| connect (bool $return_false_for_error=false) | |
| initHelpers () | |
| getFieldDefinition () | |
| setFieldDefinition (FieldDefinition $field_definition) | |
| createDatabase (string $a_name, string $a_charset="utf8", string $a_collation="") | |
| getLastErrorCode () | |
| initFromIniFile (?ilIniFile $ini=null) | |
| generateDSN () | |
| quoteIdentifier (string $identifier, bool $check_option=false) | |
| nextId (string $table_name) | |
| createTable (string $table_name, array $fields, bool $drop_table=false, bool $ignore_erros=false) | |
| checkColumnName (string $a_name) | |
| addPrimaryKey (string $table_name, array $primary_keys) | |
| dropIndexByFields (string $table_name, array $fields) | |
| getPrimaryKeyIdentifier () | |
| createSequence (string $table_name, int $start=1) | |
| tableExists (string $table_name) | |
| tableColumnExists (string $table_name, string $column_name) | |
| addTableColumn (string $table_name, string $column_name, array $attributes) | |
| dropTable (string $table_name, bool $error_if_not_existing=true) | |
| query (string $query) | |
| fetchAll (ilDBStatement $statement, int $fetch_mode=ilDBConstants::FETCHMODE_ASSOC) | |
| dropSequence (string $table_name) | |
| dropTableColumn (string $table_name, string $column_name) | |
| renameTableColumn (string $table_name, string $column_old_name, string $column_new_name) | |
| insert (string $table_name, array $values) | |
| fetchObject (ilDBStatement $query_result) | |
| update (string $table_name, array $columns, array $where) | |
| @description $where MUST contain existing columns only. More... | |
| manipulate (string $query) | |
| fetchAssoc (ilDBStatement $statement) | |
| numRows (ilDBStatement $statement) | |
| quote ($value, ?string $type=null) | |
| indexExistsByFields (string $table_name, array $fields) | |
| addIndex (string $table_name, array $fields, string $index_name='', bool $fulltext=false) | |
| addFulltextIndex (string $table_name, array $fields, string $name='in') | |
| dropFulltextIndex (string $a_table, string $a_name) | |
| Drop fulltext index. More... | |
| isFulltextIndex (string $a_table, string $a_name) | |
| Is index a fulltext index? More... | |
| getIndexName (string $index_name_base) | |
| getSequenceName (string $table_name) | |
| constraintName (string $a_table, string $a_constraint) | |
| Determine contraint name by table name and constraint name. More... | |
| getDSN () | |
| Get DSN. More... | |
| getDBType () | |
| Get DSN. More... | |
| setDBType (string $type) | |
| lockTables (array $tables) | |
| unlockTables () | |
| in (string $field, array $values, bool $negate=false, string $type="") | |
| queryF (string $query, array $types, array $values) | |
| manipulateF (string $query, array $types, array $values) | |
| useSlave (bool $bool) | |
| setLimit (int $limit, int $offset=0) | |
| Set the Limit for the next Query. More... | |
| like (string $column, string $type, string $value="?", bool $case_insensitive=true) | |
| now () | |
| replace (string $table, array $primary_keys, array $other_columns) | |
| Replace into method. More... | |
| equals (string $columns, $value, string $type, bool $emptyOrNull=false) | |
| getHost () | |
| setHost (string $host) | |
| getDbname () | |
| setDbname (string $dbname) | |
| getCharset () | |
| setCharset (string $charset) | |
| getUsername () | |
| setUsername (string $username) | |
| getPassword () | |
| setPassword (string $password) | |
| getPort () | |
| setPort (int $port) | |
| setDBUser (string $user) | |
| setDBPort (int $port) | |
| setDBPassword (string $password) | |
| setDBHost (string $host) | |
| upper (string $expression) | |
| lower (string $expression) | |
| substr (string $a_exp, int $a_pos=1, int $a_len=-1) | |
| prepareManip (string $query, ?array $types=null) | |
| prepare (string $query, ?array $types=null, ?array $result_types=null) | |
| Prepare a query (SELECT) statement to be used with execute. More... | |
| enableResultBuffering (bool $a_status) | |
| execute (ilDBStatement $stmt, array $data=[]) | |
| supportsSlave () | |
| supportsFulltext () | |
| supportsTransactions () | |
| supports (string $feature) | |
| listTables () | |
| loadModule (string $module) | |
| getAllowedAttributes () | |
| sequenceExists (string $sequence) | |
| listSequences () | |
| concat (array $values, bool $allow_null=true) | |
| locate (string $needle, string $string, int $start_pos=1) | |
| modifyTableColumn (string $table, string $column, array $attributes) | |
| free (ilDBStatement $a_st) | |
| renameTable (string $name, string $new_name) | |
| checkTableName (string $a_name) | |
| beginTransaction () | |
| commit () | |
| rollback () | |
| dropIndex (string $a_table, string $a_name="i1") | |
| setStorageEngine (string $storage_engine) | |
| getStorageEngine () | |
| queryCol (string $query, int $type=PDO::FETCH_ASSOC, int $colnum=0) | |
| queryRow (string $query, ?array $types=null, int $fetchmode=ilDBConstants::FETCHMODE_DEFAULT) | |
| getServerVersion (bool $native=false) | |
| escape (string $value, bool $escape_wildcards=false) | |
| escapePattern (string $text) | |
| migrateAllTablesToEngine (string $engine=ilDBConstants::MYSQL_ENGINE_INNODB) | |
| migrateAllTablesToCollation (string $collation=ilDBConstants::MYSQL_COLLATION_UTF8MB4) | |
| supportsCollationMigration () | |
| supportsEngineMigration () | |
| checkIndexName (string $name) | |
| addUniqueConstraint (string $table, array $fields, string $name="con") | |
| dropUniqueConstraint (string $table, string $name="con") | |
| dropUniqueConstraintByFields (string $table, array $fields) | |
| getLastInsertId () | |
| buildAtomQuery () | |
| uniqueConstraintExists (string $table, array $fields) | |
| dropPrimaryKey (string $table_name) | |
| executeMultiple (ilDBStatement $stmt, array $data) | |
| fromUnixtime (string $expr, bool $to_text=true) | |
| unixTimestamp () | |
| getDBVersion () | |
| sanitizeMB4StringIfNotSupported (string $query) | |
| doesCollationSupportMB4Strings () | |
| groupConcat (string $a_field_name, string $a_seperator=",", ?string $a_order=null) | |
| cast (string $a_field_name, string $a_dest_type) | |
| addForeignKey (string $foreign_key_name, array $field_names, string $table_name, array $reference_field_names, string $reference_table, ?ForeignKeyConstraints $on_update=null, ?ForeignKeyConstraints $on_delete=null) | |
| dropForeignKey (string $foreign_key_name, string $table_name) | |
| foreignKeyExists (string $foreign_key_name, string $table_name) | |
| buildIntegrityAnalyser () | |
| primaryExistsByFields (string $table_name, array $fields) | |
| migrateTableCollation (string $table_name, string $collation=ilDBConstants::MYSQL_COLLATION_UTF8MB4) | |
| migrateTableToEngine (string $table_name, string $engine=ilDBConstants::MYSQL_ENGINE_INNODB) | |
| getFieldDefinition () | |
| getIndexName (string $index_name_base) | |
Public Member Functions inherited from ilDBInterface | |
| doesCollationSupportMB4Strings () | |
| sanitizeMB4StringIfNotSupported (string $query) | |
| initFromIniFile (?ilIniFile $ini=null) | |
| connect (bool $return_false_on_error=false) | |
| nextId (string $table_name) | |
| createTable (string $table_name, array $fields, bool $drop_table=false, bool $ignore_erros=false) | |
| addPrimaryKey (string $table_name, array $primary_keys) | |
| createSequence (string $table_name, int $start=1) | |
| getSequenceName (string $table_name) | |
| tableExists (string $table_name) | |
| tableColumnExists (string $table_name, string $column_name) | |
| addTableColumn (string $table_name, string $column_name, array $attributes) | |
| dropTable (string $table_name, bool $error_if_not_existing=true) | |
| renameTable (string $old_name, string $new_name) | |
| query (string $query) | |
| Run a (read-only) Query on the database. More... | |
| fetchAll (ilDBStatement $statement, int $fetch_mode=ilDBConstants::FETCHMODE_ASSOC) | |
| dropSequence (string $table_name) | |
| dropTableColumn (string $table_name, string $column_name) | |
| renameTableColumn (string $table_name, string $column_old_name, string $column_new_name) | |
| insert (string $table_name, array $values) | |
| fetchObject (ilDBStatement $query_result) | |
| update (string $table_name, array $values, array $where) | |
| @description $where MUST contain existing columns only. More... | |
| manipulate (string $query) | |
| Run a (write) Query on the database. More... | |
| fetchAssoc (ilDBStatement $statement) | |
| numRows (ilDBStatement $statement) | |
| quote ($value, string $type) | |
| addIndex (string $table_name, array $fields, string $index_name='', bool $fulltext=false) | |
| indexExistsByFields (string $table_name, array $fields) | |
| getDSN () | |
| Get DSN. More... | |
| getDBType () | |
| Get DSN. More... | |
| lockTables (array $tables) | |
| Abstraction of lock table. More... | |
| unlockTables () | |
| Unlock tables locked by previous lock table calls. More... | |
| in (string $field, array $values, bool $negate=false, string $type="") | |
| queryF (string $query, array $types, array $values) | |
| manipulateF (string $query, array $types, array $values) | |
| useSlave (bool $bool) | |
| setLimit (int $limit, int $offset=0) | |
| like (string $column, string $type, string $value="?", bool $case_insensitive=true) | |
| Generate a like subquery. More... | |
| now () | |
| replace (string $table, array $primary_keys, array $other_columns) | |
| Replace into method. More... | |
| equals (string $columns, $value, string $type, bool $emptyOrNull=false) | |
| setDBUser (string $user) | |
| setDBPort (int $port) | |
| setDBPassword (string $password) | |
| setDBHost (string $host) | |
| upper (string $expression) | |
| lower (string $expression) | |
| substr (string $expression) | |
| prepare (string $a_query, ?array $a_types=null, ?array $a_result_types=null) | |
| Prepare a query (SELECT) statement to be used with execute. More... | |
| prepareManip (string $a_query, ?array $a_types=null) | |
| enableResultBuffering (bool $a_status) | |
| execute (ilDBStatement $stmt, array $data=[]) | |
| sequenceExists (string $sequence) | |
| listSequences () | |
| supports (string $feature) | |
| supportsFulltext () | |
| supportsSlave () | |
| supportsTransactions () | |
| listTables () | |
| loadModule (string $module) | |
| getAllowedAttributes () | |
| concat (array $values, bool $allow_null=true) | |
| locate (string $needle, string $string, int $start_pos=1) | |
| quoteIdentifier (string $identifier, bool $check_option=false) | |
| modifyTableColumn (string $table, string $column, array $attributes) | |
| free (ilDBStatement $a_st) | |
| checkTableName (string $a_name) | |
| beginTransaction () | |
| commit () | |
| rollback () | |
| constraintName (string $a_table, string $a_constraint) | |
| dropIndex (string $a_table, string $a_name="i1") | |
| createDatabase (string $a_name, string $a_charset="utf8", string $a_collation="") | |
| dropIndexByFields (string $table_name, array $afields) | |
| getPrimaryKeyIdentifier () | |
| addFulltextIndex (string $table_name, array $afields, string $a_name='in') | |
| dropFulltextIndex (string $a_table, string $a_name) | |
| isFulltextIndex (string $a_table, string $a_name) | |
| setStorageEngine (string $storage_engine) | |
| getStorageEngine () | |
| buildAtomQuery () | |
| groupConcat (string $a_field_name, string $a_seperator=",", ?string $a_order=null) | |
| cast (string $a_field_name, string $a_dest_type) | |
| addForeignKey (string $foreign_key_name, array $field_names, string $table_name, array $reference_field_names, string $reference_table, ?ForeignKeyConstraints $on_update=null, ?ForeignKeyConstraints $on_delete=null) | |
| dropForeignKey (string $foreign_key_name, string $table_name) | |
| foreignKeyExists (string $foreign_key_name, string $table_name) | |
| buildIntegrityAnalyser () | |
| primaryExistsByFields (string $table_name, array $fields) | |
| getServerVersion (bool $native=false) | |
| queryCol (string $query, int $type=ilDBConstants::FETCHMODE_DEFAULT, int $colnum=0) | |
| queryRow (string $query, ?array $types=null, int $fetchmode=ilDBConstants::FETCHMODE_DEFAULT) | |
| escape (string $value, bool $escape_wildcards=false) | |
| escapePattern (string $text) | |
| migrateTableToEngine (string $table_name, string $engine=ilDBConstants::MYSQL_ENGINE_INNODB) | |
| migrateAllTablesToEngine (string $engine=ilDBConstants::MYSQL_ENGINE_INNODB) | |
| supportsEngineMigration () | |
| migrateTableCollation (string $table_name, string $collation=ilDBConstants::MYSQL_COLLATION_UTF8MB4) | |
| migrateAllTablesToCollation (string $collation=ilDBConstants::MYSQL_COLLATION_UTF8MB4) | |
| supportsCollationMigration () | |
| addUniqueConstraint (string $table, array $fields, string $name="con") | |
| dropUniqueConstraint (string $table, string $name="con") | |
| dropUniqueConstraintByFields (string $table, array $fields) | |
| checkIndexName (string $name) | |
| getLastInsertId () | |
| uniqueConstraintExists (string $table, array $fields) | |
| dropPrimaryKey (string $table_name) | |
| executeMultiple (ilDBStatement $stmt, array $data) | |
| fromUnixtime (string $expr, bool $to_text=true) | |
| unixTimestamp () | |
| getDBVersion () | |
| returns the Version of the Database (e.g. More... | |
Static Public Member Functions | |
| static | isReservedWord (string $a_word) |
Static Public Member Functions inherited from ilDBInterface | |
| static | getReservedWords () |
| Get reserved words. More... | |
| static | isReservedWord (string $a_word) |
Data Fields | |
| array | $options = [] |
| const | FEATURE_TRANSACTIONS = 'transactions' |
| const | FEATURE_FULLTEXT = 'fulltext' |
| const | FEATURE_SLAVE = 'slave' |
Protected Member Functions | |
| getAttributes () | |
Private Member Functions | |
| checkTableColumns (array $a_cols) | |
| checkColumn (string $a_col, array $a_def) | |
| checkColumnDefinition (array $a_def, bool $a_modify_mode=false) | |
| appendLimit (string $query) | |
Private Attributes | |
| string | $host = '' |
| string | $dbname = '' |
| string | $charset = 'utf8' |
| string | $username = '' |
| string | $password = '' |
| int | $port = 3306 |
| PDO | $pdo = null |
| ilDBManager | $manager |
| ilDBReverse | $reverse |
| int | $limit = null |
| int | $offset = null |
| string | $storage_engine = 'InnoDB' |
| string | $dsn = '' |
| string | $db_type = '' |
| int | $error_code = 0 |
| FieldDefinition | $field_definition = null |
| const | SESSION_MODES |
Definition at line 31 of file ilDBPdo.php.
| ilDBPdo::__construct | ( | private readonly Details | $details | ) |
Definition at line 66 of file ilDBPdo.php.
| ilDBPdo::addForeignKey | ( | string | $foreign_key_name, |
| array | $field_names, | ||
| string | $table_name, | ||
| array | $reference_field_names, | ||
| string | $reference_table, | ||
| ?ForeignKeyConstraints | $on_update = null, |
||
| ?ForeignKeyConstraints | $on_delete = null |
||
| ) |
| string[] | $field_names | |
| string[] | $reference_field_names |
Implements ilDBInterface.
Definition at line 1500 of file ilDBPdo.php.
| ilDBPdo::addFulltextIndex | ( | string | $table_name, |
| array | $fields, | ||
| string | $name = 'in' |
||
| ) |
Implements ilDBInterface.
Definition at line 680 of file ilDBPdo.php.
| ilDBPdo::addIndex | ( | string | $table_name, |
| array | $fields, | ||
| string | $index_name = '', |
||
| bool | $fulltext = false |
||
| ) |
Implements ilDBInterface.
Definition at line 658 of file ilDBPdo.php.
References Vendor\Package\$f.
| ilDBPdo::addPrimaryKey | ( | string | $table_name, |
| array | $primary_keys | ||
| ) |
Implements ilDBInterface.
Definition at line 262 of file ilDBPdo.php.
References Vendor\Package\$f.
| ilDBPdo::addTableColumn | ( | string | $table_name, |
| string | $column_name, | ||
| array | $attributes | ||
| ) |
Implements ilDBInterface.
Definition at line 327 of file ilDBPdo.php.
| ilDBPdo::addUniqueConstraint | ( | string | $table, |
| array | $fields, | ||
| string | $name = "con" |
||
| ) |
Implements ilDBPdoInterface.
Definition at line 1345 of file ilDBPdo.php.
References Vendor\Package\$f, and ilDBManager\createConstraint().
Here is the call graph for this function:
|
private |
Definition at line 1079 of file ilDBPdo.php.
| ilDBPdo::beginTransaction | ( | ) |
Implements ilDBInterface.
Definition at line 1192 of file ilDBPdo.php.
| ilDBPdo::buildAtomQuery | ( | ) |
Implements ilDBInterface.
Definition at line 1397 of file ilDBPdo.php.
| ilDBPdo::buildIntegrityAnalyser | ( | ) |
Implements ilDBInterface.
Definition at line 1522 of file ilDBPdo.php.
| ilDBPdo::cast | ( | string | $a_field_name, |
| string | $a_dest_type | ||
| ) |
Implements ilDBInterface.
Definition at line 1495 of file ilDBPdo.php.
|
private |
Definition at line 241 of file ilDBPdo.php.
|
private |
Definition at line 249 of file ilDBPdo.php.
| ilDBPdo::checkColumnName | ( | string | $a_name | ) |
Definition at line 254 of file ilDBPdo.php.
| ilDBPdo::checkIndexName | ( | string | $name | ) |
Implements ilDBPdoInterface.
Definition at line 1333 of file ilDBPdo.php.
|
private |
Definition at line 230 of file ilDBPdo.php.
| ilDBPdo::checkTableName | ( | string | $a_name | ) |
Implements ilDBInterface.
Definition at line 1178 of file ilDBPdo.php.
| ilDBPdo::commit | ( | ) |
Implements ilDBInterface.
Definition at line 1204 of file ilDBPdo.php.
| ilDBPdo::concat | ( | array | $values, |
| bool | $allow_null = true |
||
| ) |
Implements ilDBInterface.
Definition at line 1074 of file ilDBPdo.php.
| ilDBPdo::connect | ( | bool | $return_false_for_error = false | ) |
Exception
Implements ilDBInterface.
Definition at line 73 of file ilDBPdo.php.
References Vendor\Package\$e, generateDSN(), getAttributes(), getDSN(), getPassword(), and getUsername().
Referenced by createDatabase().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdo::constraintName | ( | string | $a_table, |
| string | $a_constraint | ||
| ) |
Determine contraint name by table name and constraint name.
In MySQL these are "unique" per table
Implements ilDBInterface.
Definition at line 724 of file ilDBPdo.php.
| ilDBPdo::createDatabase | ( | string | $a_name, |
| string | $a_charset = "utf8", |
||
| string | $a_collation = "" |
||
| ) |
Implements ilDBInterface.
Definition at line 120 of file ilDBPdo.php.
References connect(), generateDSN(), query(), and setDbname().
Here is the call graph for this function:| ilDBPdo::createSequence | ( | string | $table_name, |
| int | $start = 1 |
||
| ) |
Implements ilDBInterface.
Definition at line 303 of file ilDBPdo.php.
| ilDBPdo::createTable | ( | string | $table_name, |
| array | $fields, | ||
| bool | $drop_table = false, |
||
| bool | $ignore_erros = false |
||
| ) |
Implements ilDBInterface.
Definition at line 207 of file ilDBPdo.php.
| ilDBPdo::doesCollationSupportMB4Strings | ( | ) |
Implements ilDBInterface.
Definition at line 1476 of file ilDBPdo.php.
| ilDBPdo::dropForeignKey | ( | string | $foreign_key_name, |
| string | $table_name | ||
| ) |
Implements ilDBInterface.
Definition at line 1512 of file ilDBPdo.php.
| ilDBPdo::dropFulltextIndex | ( | string | $a_table, |
| string | $a_name | ||
| ) |
Drop fulltext index.
Implements ilDBInterface.
Definition at line 688 of file ilDBPdo.php.
| ilDBPdo::dropIndex | ( | string | $a_table, |
| string | $a_name = "i1" |
||
| ) |
Implements ilDBInterface.
Definition at line 1225 of file ilDBPdo.php.
| ilDBPdo::dropIndexByFields | ( | string | $table_name, |
| array | $fields | ||
| ) |
Implements ilDBInterface.
Definition at line 284 of file ilDBPdo.php.
| ilDBPdo::dropPrimaryKey | ( | string | $table_name | ) |
Implements ilDBPdoInterface.
Definition at line 1423 of file ilDBPdo.php.
| ilDBPdo::dropSequence | ( | string | $table_name | ) |
Implements ilDBInterface.
Definition at line 412 of file ilDBPdo.php.
| ilDBPdo::dropTable | ( | string | $table_name, |
| bool | $error_if_not_existing = true |
||
| ) |
Implements ilDBInterface.
Definition at line 348 of file ilDBPdo.php.
| ilDBPdo::dropTableColumn | ( | string | $table_name, |
| string | $column_name | ||
| ) |
Implements ilDBInterface.
Definition at line 421 of file ilDBPdo.php.
| ilDBPdo::dropUniqueConstraint | ( | string | $table, |
| string | $name = "con" |
||
| ) |
| ilDBPdo::dropUniqueConstraintByFields | ( | string | $table, |
| array | $fields | ||
| ) |
Implements ilDBPdoInterface.
Definition at line 1371 of file ilDBPdo.php.
References $c, and Vendor\Package\$f.
| ilDBPdo::enableResultBuffering | ( | bool | $a_status | ) |
Implements ilDBInterface.
Definition at line 1001 of file ilDBPdo.php.
| ilDBPdo::equals | ( | string | $columns, |
| $value, | |||
| string | $type, | ||
| bool | $emptyOrNull = false |
||
| ) |
| mixed | $value |
Implements ilDBInterface.
Definition at line 883 of file ilDBPdo.php.
| ilDBPdo::escape | ( | string | $value, |
| bool | $escape_wildcards = false |
||
| ) |
Implements ilDBPdoInterface.
Definition at line 1270 of file ilDBPdo.php.
| ilDBPdo::escapePattern | ( | string | $text | ) |
| ilDBPdo::execute | ( | ilDBStatement | $stmt, |
| array | $data = [] |
||
| ) |
| ilDatabaseException |
Implements ilDBInterface.
Definition at line 1009 of file ilDBPdo.php.
References $data, and ilDBStatement\execute().
Here is the call graph for this function:| ilDBPdo::executeMultiple | ( | ilDBStatement | $stmt, |
| array | $data | ||
| ) |
| ilDBStatement[] | $stmt |
Implements ilDBPdoInterface.
Definition at line 1428 of file ilDBPdo.php.
References $data.
| ilDBPdo::fetchAll | ( | ilDBStatement | $statement, |
| int | $fetch_mode = ilDBConstants::FETCHMODE_ASSOC |
||
| ) |
Implements ilDBInterface.
Definition at line 402 of file ilDBPdo.php.
References $data, and ilDBStatement\fetch().
Here is the call graph for this function:| ilDBPdo::fetchAssoc | ( | ilDBStatement | $statement | ) |
Implements ilDBInterface.
Definition at line 592 of file ilDBPdo.php.
References $res, and ilDBStatement\fetch().
Here is the call graph for this function:| ilDBPdo::fetchObject | ( | ilDBStatement | $query_result | ) |
Implements ilDBInterface.
Definition at line 479 of file ilDBPdo.php.
References $res, and ilDBStatement\fetchObject().
Here is the call graph for this function:| ilDBPdo::foreignKeyExists | ( | string | $foreign_key_name, |
| string | $table_name | ||
| ) |
Implements ilDBInterface.
Definition at line 1517 of file ilDBPdo.php.
| ilDBPdo::free | ( | ilDBStatement | $a_st | ) |
Implements ilDBInterface.
Definition at line 1142 of file ilDBPdo.php.
| ilDBPdo::fromUnixtime | ( | string | $expr, |
| bool | $to_text = true |
||
| ) |
Implements ilDBPdoInterface.
Definition at line 1436 of file ilDBPdo.php.
| ilDBPdo::generateDSN | ( | ) |
Definition at line 167 of file ilDBPdo.php.
References $charset, $dbname, $host, $port, getCharset(), getDbname(), getHost(), and getPort().
Referenced by connect(), createDatabase(), and initFromIniFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdo::getAllowedAttributes | ( | ) |
Implements ilDBInterface.
Definition at line 1059 of file ilDBPdo.php.
|
protected |
Definition at line 101 of file ilDBPdo.php.
Referenced by connect().
Here is the caller graph for this function:| ilDBPdo::getCharset | ( | ) |
Definition at line 912 of file ilDBPdo.php.
Referenced by generateDSN().
Here is the caller graph for this function:| ilDBPdo::getDbname | ( | ) |
Definition at line 902 of file ilDBPdo.php.
Referenced by generateDSN().
Here is the caller graph for this function:| ilDBPdo::getDBType | ( | ) |
Get DSN.
This must be overwritten in DBMS specific class.
Implements ilDBInterface.
Definition at line 734 of file ilDBPdo.php.
| ilDBPdo::getDBVersion | ( | ) |
| ilDatabaseException |
Implements ilDBPdoInterface.
Definition at line 1449 of file ilDBPdo.php.
References Vendor\Package\$d.
| ilDBPdo::getDSN | ( | ) |
Get DSN.
This must be overwritten in DBMS specific class.
Implements ilDBInterface.
Definition at line 729 of file ilDBPdo.php.
Referenced by connect().
Here is the caller graph for this function:| ilDBPdo::getFieldDefinition | ( | ) |
Implements ILIAS\Database\PDO\Internal.
Definition at line 110 of file ilDBPdo.php.
References $field_definition.
| ilDBPdo::getHost | ( | ) |
Definition at line 892 of file ilDBPdo.php.
Referenced by generateDSN().
Here is the caller graph for this function:| ilDBPdo::getIndexName | ( | string | $index_name_base | ) |
Implements ILIAS\Database\PDO\Internal.
Definition at line 710 of file ilDBPdo.php.
| ilDBPdo::getLastErrorCode | ( | ) |
Definition at line 136 of file ilDBPdo.php.
References $error_code.
| ilDBPdo::getLastInsertId | ( | ) |
Implements ilDBPdoInterface.
Definition at line 1392 of file ilDBPdo.php.
| ilDBPdo::getPassword | ( | ) |
Definition at line 932 of file ilDBPdo.php.
Referenced by connect().
Here is the caller graph for this function:| ilDBPdo::getPort | ( | ) |
Definition at line 942 of file ilDBPdo.php.
Referenced by generateDSN().
Here is the caller graph for this function:| ilDBPdo::getPrimaryKeyIdentifier | ( | ) |
Implements ilDBInterface.
Definition at line 298 of file ilDBPdo.php.
| ilDBPdo::getSequenceName | ( | string | $table_name | ) |
Implements ilDBInterface.
Definition at line 715 of file ilDBPdo.php.
Referenced by nextId().
Here is the caller graph for this function:| ilDBPdo::getServerVersion | ( | bool | $native = false | ) |
Implements ilDBPdoInterface.
Definition at line 1265 of file ilDBPdo.php.
| ilDBPdo::getStorageEngine | ( | ) |
| ilDBPdo::getUsername | ( | ) |
Definition at line 922 of file ilDBPdo.php.
Referenced by connect().
Here is the caller graph for this function:| ilDBPdo::groupConcat | ( | string | $a_field_name, |
| string | $a_seperator = ",", |
||
| ?string | $a_order = null |
||
| ) |
Implements ilDBInterface.
Definition at line 1490 of file ilDBPdo.php.
| ilDBPdo::in | ( | string | $field, |
| array | $values, | ||
| bool | $negate = false, |
||
| string | $type = "" |
||
| ) |
Implements ilDBInterface.
Definition at line 782 of file ilDBPdo.php.
| ilDBPdo::indexExistsByFields | ( | string | $table_name, |
| array | $fields | ||
| ) |
Implements ilDBInterface.
Definition at line 644 of file ilDBPdo.php.
| ilDBPdo::initFromIniFile | ( | ?ilIniFile | $ini = null | ) |
Implements ilDBInterface.
Definition at line 145 of file ilDBPdo.php.
References $DIC, $ini, generateDSN(), setDbname(), setDBType(), setHost(), setPassword(), setPort(), and setUsername().
Here is the call graph for this function:| ilDBPdo::initHelpers | ( | ) |
| ilDBPdo::insert | ( | string | $table_name, |
| array | $values | ||
| ) |
Implements ilDBInterface.
Definition at line 462 of file ilDBPdo.php.
| ilDBPdo::isFulltextIndex | ( | string | $a_table, |
| string | $a_name | ||
| ) |
Is index a fulltext index?
Implements ilDBInterface.
Definition at line 698 of file ilDBPdo.php.
|
static |
Implements ilDBInterface.
Definition at line 1183 of file ilDBPdo.php.
References $DIC.
| ilDBPdo::like | ( | string | $column, |
| string | $type, | ||
| string | $value = "?", |
||
| bool | $case_insensitive = true |
||
| ) |
Implements ilDBInterface.
Definition at line 840 of file ilDBPdo.php.
| ilDBPdo::listSequences | ( | ) |
Implements ilDBInterface.
Definition at line 1069 of file ilDBPdo.php.
| ilDBPdo::listTables | ( | ) |
Implements ilDBInterface.
Definition at line 1042 of file ilDBPdo.php.
| ilDBPdo::loadModule | ( | string | $module | ) |
Implements ilDBInterface.
Definition at line 1050 of file ilDBPdo.php.
References ilDBConstants\MODULE_MANAGER, and ilDBConstants\MODULE_REVERSE.
| ilDBPdo::locate | ( | string | $needle, |
| string | $string, | ||
| int | $start_pos = 1 |
||
| ) |
Implements ilDBInterface.
Definition at line 1092 of file ilDBPdo.php.
| ilDBPdo::lockTables | ( | array | $tables | ) |
Implements ilDBInterface.
Definition at line 767 of file ilDBPdo.php.
| ilDBPdo::lower | ( | string | $expression | ) |
Implements ilDBInterface.
Definition at line 977 of file ilDBPdo.php.
| ilDBPdo::manipulate | ( | string | $query | ) |
| ilDatabaseException |
Implements ilDBInterface.
Definition at line 572 of file ilDBPdo.php.
References $DIC, and Vendor\Package\$e.
| ilDBPdo::manipulateF | ( | string | $query, |
| array | $types, | ||
| array | $values | ||
| ) |
| string[] | $types |
| ilDatabaseException |
Implements ilDBInterface.
Definition at line 809 of file ilDBPdo.php.
| ilDBPdo::migrateAllTablesToCollation | ( | string | $collation = ilDBConstants::MYSQL_COLLATION_UTF8MB4 | ) |
Implements ilDBPdoInterface.
Definition at line 1307 of file ilDBPdo.php.
| ilDBPdo::migrateAllTablesToEngine | ( | string | $engine = ilDBConstants::MYSQL_ENGINE_INNODB | ) |
Implements ilDBPdoInterface.
Definition at line 1284 of file ilDBPdo.php.
References Vendor\Package\$e.
| ilDBPdo::migrateTableCollation | ( | string | $table_name, |
| string | $collation = ilDBConstants::MYSQL_COLLATION_UTF8MB4 |
||
| ) |
Implements ilDBPdoInterface.
Definition at line 1543 of file ilDBPdo.php.
References $q.
| ilDBPdo::migrateTableToEngine | ( | string | $table_name, |
| string | $engine = ilDBConstants::MYSQL_ENGINE_INNODB |
||
| ) |
Implements ilDBPdoInterface.
Definition at line 1557 of file ilDBPdo.php.
References Vendor\Package\$e.
| ilDBPdo::modifyTableColumn | ( | string | $table, |
| string | $column, | ||
| array | $attributes | ||
| ) |
Implements ilDBInterface.
Definition at line 1100 of file ilDBPdo.php.
References Vendor\Package\$a.
| ilDBPdo::nextId | ( | string | $table_name | ) |
Implements ilDBInterface.
Definition at line 182 of file ilDBPdo.php.
References getSequenceName(), query(), and quoteIdentifier().
Here is the call graph for this function:| ilDBPdo::now | ( | ) |
Implements ilDBInterface.
Definition at line 848 of file ilDBPdo.php.
| ilDBPdo::numRows | ( | ilDBStatement | $statement | ) |
Implements ilDBInterface.
Definition at line 604 of file ilDBPdo.php.
References ilDBStatement\rowCount().
Here is the call graph for this function:| ilDBPdo::prepare | ( | string | $a_query, |
| ?array | $a_types = null, |
||
| ?array | $a_result_types = null |
||
| ) |
Prepare a query (SELECT) statement to be used with execute.
Implements ilDBInterface.
Definition at line 996 of file ilDBPdo.php.
| ilDBPdo::prepareManip | ( | string | $query, |
| ?array | $types = null |
||
| ) |
Implements ilDBInterface.
Definition at line 991 of file ilDBPdo.php.
| ilDBPdo::primaryExistsByFields | ( | string | $table_name, |
| array | $fields | ||
| ) |
Implements ilDBInterface.
Definition at line 1527 of file ilDBPdo.php.
References ILIAS\UI\examples\Symbol\Glyph\Sort\sort().
Here is the call graph for this function:| ilDBPdo::query | ( | string | $query | ) |
| ilDatabaseException |
Implements ilDBInterface.
Definition at line 373 of file ilDBPdo.php.
References $DIC, Vendor\Package\$e, $info, and $res.
Referenced by createDatabase(), and nextId().
Here is the caller graph for this function:| ilDBPdo::queryCol | ( | string | $query, |
| int | $type = PDO::FETCH_ASSOC, |
||
| int | $colnum = 0 |
||
| ) |
Implements ilDBPdoInterface.
Definition at line 1240 of file ilDBPdo.php.
References ilDBConstants\FETCHMODE_ASSOC, and ilDBConstants\FETCHMODE_OBJECT.
| ilDBPdo::queryF | ( | string | $query, |
| array | $types, | ||
| array | $values | ||
| ) |
| string[] | $types |
Implements ilDBInterface.
Definition at line 791 of file ilDBPdo.php.
| ilDBPdo::queryRow | ( | string | $query, |
| ?array | $types = null, |
||
| int | $fetchmode = ilDBConstants::FETCHMODE_DEFAULT |
||
| ) |
Implements ilDBPdoInterface.
Definition at line 1251 of file ilDBPdo.php.
References ilDBConstants\FETCHMODE_ASSOC, and ilDBConstants\FETCHMODE_OBJECT.
| ilDBPdo::quote | ( | $value, | |
| ?string | $type = null |
||
| ) |
Definition at line 609 of file ilDBPdo.php.
References ILIAS\Repository\int(), ilDBConstants\T_DATE, ilDBConstants\T_DATETIME, ilDBConstants\T_FLOAT, ilDBConstants\T_INTEGER, ilDBConstants\T_TEXT, and ilDBConstants\T_TIMESTAMP.
Here is the call graph for this function:| ilDBPdo::quoteIdentifier | ( | string | $identifier, |
| bool | $check_option = false |
||
| ) |
Implements ilDBInterface.
Definition at line 176 of file ilDBPdo.php.
Referenced by nextId().
Here is the caller graph for this function:| ilDBPdo::renameTable | ( | string | $name, |
| string | $new_name | ||
| ) |
Implements ilDBInterface.
Definition at line 1150 of file ilDBPdo.php.
References Vendor\Package\$e.
| ilDBPdo::renameTableColumn | ( | string | $table_name, |
| string | $column_old_name, | ||
| string | $column_new_name | ||
| ) |
Implements ilDBInterface.
Definition at line 435 of file ilDBPdo.php.
References Vendor\Package\$f.
| ilDBPdo::replace | ( | string | $table, |
| array | $primary_keys, | ||
| array | $other_columns | ||
| ) |
Replace into method.
| string | table name |
| array | primary key values: array("field1" => array("text", $name), "field2" => ...) |
| array | other values: array("field1" => array("text", $name), "field2" => ...) |
Implements ilDBInterface.
Definition at line 853 of file ilDBPdo.php.
References $q, and ILIAS\Repository\int().
Here is the call graph for this function:| ilDBPdo::rollback | ( | ) |
Implements ilDBInterface.
Definition at line 1216 of file ilDBPdo.php.
| ilDBPdo::sanitizeMB4StringIfNotSupported | ( | string | $query | ) |
| $query | string to sanitize, all MB4-Characters like emojis will re replaced with ??? |
Implements ilDBInterface.
Definition at line 1459 of file ilDBPdo.php.
References ilDBConstants\MB4_REPLACEMENT.
| ilDBPdo::sequenceExists | ( | string | $sequence | ) |
| ilDBPdo::setCharset | ( | string | $charset | ) |
Definition at line 917 of file ilDBPdo.php.
| ilDBPdo::setDBHost | ( | string | $host | ) |
Implements ilDBInterface.
Definition at line 967 of file ilDBPdo.php.
| ilDBPdo::setDbname | ( | string | $dbname | ) |
Definition at line 907 of file ilDBPdo.php.
Referenced by createDatabase(), and initFromIniFile().
Here is the caller graph for this function:| ilDBPdo::setDBPassword | ( | string | $password | ) |
Implements ilDBInterface.
Definition at line 962 of file ilDBPdo.php.
| ilDBPdo::setDBPort | ( | int | $port | ) |
Implements ilDBInterface.
Definition at line 957 of file ilDBPdo.php.
| ilDBPdo::setDBType | ( | string | $type | ) |
Definition at line 739 of file ilDBPdo.php.
Referenced by initFromIniFile().
Here is the caller graph for this function:| ilDBPdo::setDBUser | ( | string | $user | ) |
Implements ilDBInterface.
Definition at line 952 of file ilDBPdo.php.
| ilDBPdo::setFieldDefinition | ( | FieldDefinition | $field_definition | ) |
Definition at line 115 of file ilDBPdo.php.
References $field_definition.
| ilDBPdo::setHost | ( | string | $host | ) |
Definition at line 897 of file ilDBPdo.php.
Referenced by initFromIniFile().
Here is the caller graph for this function:| ilDBPdo::setLimit | ( | int | $limit, |
| int | $offset = 0 |
||
| ) |
Set the Limit for the next Query.
Implements ilDBInterface.
Definition at line 831 of file ilDBPdo.php.
| ilDBPdo::setPassword | ( | string | $password | ) |
Definition at line 937 of file ilDBPdo.php.
Referenced by initFromIniFile().
Here is the caller graph for this function:| ilDBPdo::setPort | ( | int | $port | ) |
Definition at line 947 of file ilDBPdo.php.
Referenced by initFromIniFile().
Here is the caller graph for this function:| ilDBPdo::setStorageEngine | ( | string | $storage_engine | ) |
Implements ilDBInterface.
Definition at line 1230 of file ilDBPdo.php.
| ilDBPdo::setUsername | ( | string | $username | ) |
Definition at line 927 of file ilDBPdo.php.
Referenced by initFromIniFile().
Here is the caller graph for this function:| ilDBPdo::substr | ( | string | $a_exp, |
| int | $a_pos = 1, |
||
| int | $a_len = -1 |
||
| ) |
Definition at line 982 of file ilDBPdo.php.
| ilDBPdo::supports | ( | string | $feature | ) |
Implements ilDBInterface.
Definition at line 1029 of file ilDBPdo.php.
| ilDBPdo::supportsCollationMigration | ( | ) |
Implements ilDBPdoInterface.
Definition at line 1320 of file ilDBPdo.php.
| ilDBPdo::supportsEngineMigration | ( | ) |
Implements ilDBPdoInterface.
Definition at line 1325 of file ilDBPdo.php.
| ilDBPdo::supportsFulltext | ( | ) |
Implements ilDBInterface.
Definition at line 1019 of file ilDBPdo.php.
| ilDBPdo::supportsSlave | ( | ) |
Implements ilDBInterface.
Definition at line 1014 of file ilDBPdo.php.
| ilDBPdo::supportsTransactions | ( | ) |
Implements ilDBInterface.
Definition at line 1024 of file ilDBPdo.php.
| ilDBPdo::tableColumnExists | ( | string | $table_name, |
| string | $column_name | ||
| ) |
Implements ilDBInterface.
Definition at line 319 of file ilDBPdo.php.
| ilDBPdo::tableExists | ( | string | $table_name | ) |
Implements ilDBInterface.
Definition at line 309 of file ilDBPdo.php.
| ilDBPdo::uniqueConstraintExists | ( | string | $table, |
| array | $fields | ||
| ) |
Implements ilDBPdoInterface.
Definition at line 1402 of file ilDBPdo.php.
References $c, and Vendor\Package\$f.
| ilDBPdo::unixTimestamp | ( | ) |
Implements ilDBPdoInterface.
Definition at line 1441 of file ilDBPdo.php.
| ilDBPdo::unlockTables | ( | ) |
Implements ilDBInterface.
Definition at line 777 of file ilDBPdo.php.
| ilDBPdo::update | ( | string | $table_name, |
| array | $values, | ||
| array | $where | ||
| ) |
@description $where MUST contain existing columns only.
statements like [1 => ['integer', 1]] will not work, use a full query and
Implements ilDBInterface.
Definition at line 491 of file ilDBPdo.php.
References $q, and ILIAS\Repository\int().
Here is the call graph for this function:| ilDBPdo::upper | ( | string | $expression | ) |
Implements ilDBInterface.
Definition at line 972 of file ilDBPdo.php.
| ilDBPdo::useSlave | ( | bool | $bool | ) |
Implements ilDBInterface.
Definition at line 823 of file ilDBPdo.php.
|
private |
Definition at line 41 of file ilDBPdo.php.
Referenced by generateDSN().
|
private |
Definition at line 52 of file ilDBPdo.php.
|
private |
Definition at line 40 of file ilDBPdo.php.
Referenced by generateDSN().
|
private |
Definition at line 51 of file ilDBPdo.php.
|
private |
Definition at line 53 of file ilDBPdo.php.
Referenced by getLastErrorCode().
|
private |
Definition at line 54 of file ilDBPdo.php.
Referenced by getFieldDefinition(), and setFieldDefinition().
|
private |
Definition at line 39 of file ilDBPdo.php.
Referenced by generateDSN().
|
private |
Definition at line 48 of file ilDBPdo.php.
|
private |
Definition at line 46 of file ilDBPdo.php.
|
private |
Definition at line 49 of file ilDBPdo.php.
| array ilDBPdo::$options = [] |
Definition at line 33 of file ilDBPdo.php.
|
private |
Definition at line 43 of file ilDBPdo.php.
|
private |
Definition at line 45 of file ilDBPdo.php.
|
private |
Definition at line 44 of file ilDBPdo.php.
Referenced by generateDSN().
|
private |
Definition at line 47 of file ilDBPdo.php.
|
private |
Definition at line 50 of file ilDBPdo.php.
|
private |
Definition at line 42 of file ilDBPdo.php.
| const ilDBPdo::FEATURE_FULLTEXT = 'fulltext' |
Definition at line 36 of file ilDBPdo.php.
| const ilDBPdo::FEATURE_SLAVE = 'slave' |
Definition at line 37 of file ilDBPdo.php.
| const ilDBPdo::FEATURE_TRANSACTIONS = 'transactions' |
Definition at line 35 of file ilDBPdo.php.
|
private |
Definition at line 56 of file ilDBPdo.php.