|
ILIAS
release_8 Revision v8.24
|
Class pdoDB. More...
Inheritance diagram for ilDBPdo:
Collaboration diagram for ilDBPdo:Public Member Functions | |||
| connect (bool $return_false_for_error=false) | |||
| initHelpers () | |||
| getFieldDefinition () | |||
| setFieldDefinition (\ilDBPdoFieldDefinition $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, array $fields, string $a_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) | |||
| TODO. More... | |||
| 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) | |||
| enableResultBuffering (bool $a_status) | |||
| 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) | |||
| @inheritDoc More... | |||
| supportsCollationMigration () | |||
| @inheritDoc More... | |||
| 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 () | |||
| @inheritDoc More... | |||
| groupConcat (string $a_field_name, string $a_seperator=",", ?string $a_order=null) | |||
| cast (string $a_field_name, string $a_dest_type) | |||
| primaryExistsByFields (string $table_name, array $fields) | |||
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) | |||
| primaryExistsByFields (string $table_name, array $fields) | |||
Public Member Functions inherited from ilDBPdoInterface | |||
| 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 | |
| initSQLMode () | |
| getAttributes () | |
| getAdditionalAttributes () | |
| checkTableColumns (array $a_cols) | |
| checkColumn (string $a_col, array $a_def) | |
| checkColumnDefinition (array $a_def, bool $a_modify_mode=false) | |
| appendLimit (string $query) | |
Protected Attributes | |
| string | $host = '' |
| string | $dbname = '' |
| string | $charset = 'utf8' |
| string | $username = '' |
| string | $password = '' |
| int | $port = 3306 |
| PDO | $pdo = null |
| ilDBPdoManager | $manager |
| ilDBPdoReverse | $reverse |
| int | $limit = null |
| int | $offset = null |
| string | $storage_engine = 'InnoDB' |
| string | $dsn = '' |
| array | $attributes |
| string | $db_type = '' |
| int | $error_code = 0 |
| ilDBPdoFieldDefinition | $field_definition = null |
Class pdoDB.
Definition at line 25 of file class.ilDBPdo.php.
| ilDBPdo::addFulltextIndex | ( | string | $table, |
| array | $fields, | ||
| string | $a_name = "in" |
||
| ) |
Implements ilDBInterface.
Reimplemented in ilDBPdoMySQLInnoDB.
Definition at line 659 of file class.ilDBPdo.php.
| ilDBPdo::addIndex | ( | string | $table_name, |
| array | $fields, | ||
| string | $index_name = '', |
||
| bool | $fulltext = false |
||
| ) |
Implements ilDBInterface.
Definition at line 633 of file class.ilDBPdo.php.
References Vendor\Package\$f.
| ilDBPdo::addPrimaryKey | ( | string | $table_name, |
| array | $primary_keys | ||
| ) |
Implements ilDBInterface.
Definition at line 232 of file class.ilDBPdo.php.
References Vendor\Package\$f.
| ilDBPdo::addTableColumn | ( | string | $table_name, |
| string | $column_name, | ||
| array | $attributes | ||
| ) |
Implements ilDBInterface.
Definition at line 301 of file class.ilDBPdo.php.
References $attributes.
| ilDBPdo::addUniqueConstraint | ( | string | $table, |
| array | $fields, | ||
| string | $name = "con" |
||
| ) |
Implements ilDBPdoInterface.
Definition at line 1345 of file class.ilDBPdo.php.
References Vendor\Package\$f, $name, and ilDBPdoManager\createConstraint().
Here is the call graph for this function:
|
protected |
Definition at line 1088 of file class.ilDBPdo.php.
References $query.
| ilDBPdo::beginTransaction | ( | ) |
Implements ilDBInterface.
Definition at line 1204 of file class.ilDBPdo.php.
| ilDBPdo::buildAtomQuery | ( | ) |
Implements ilDBInterface.
Reimplemented in ilDBPdoMySQLGalera.
Definition at line 1398 of file class.ilDBPdo.php.
| ilDBPdo::cast | ( | string | $a_field_name, |
| string | $a_dest_type | ||
| ) |
Implements ilDBInterface.
Definition at line 1499 of file class.ilDBPdo.php.
|
protected |
Definition at line 211 of file class.ilDBPdo.php.
|
protected |
Definition at line 219 of file class.ilDBPdo.php.
| ilDBPdo::checkColumnName | ( | string | $a_name | ) |
Definition at line 224 of file class.ilDBPdo.php.
| ilDBPdo::checkIndexName | ( | string | $name | ) |
Implements ilDBPdoInterface.
Definition at line 1333 of file class.ilDBPdo.php.
References $name.
|
protected |
Definition at line 200 of file class.ilDBPdo.php.
| ilDBPdo::checkTableName | ( | string | $a_name | ) |
Implements ilDBInterface.
Definition at line 1190 of file class.ilDBPdo.php.
| ilDBPdo::commit | ( | ) |
Implements ilDBInterface.
Definition at line 1216 of file class.ilDBPdo.php.
| ilDBPdo::concat | ( | array | $values, |
| bool | $allow_null = true |
||
| ) |
Implements ilDBInterface.
Definition at line 1083 of file class.ilDBPdo.php.
| ilDBPdo::connect | ( | bool | $return_false_for_error = false | ) |
Exception
Implements ilDBInterface.
Definition at line 58 of file class.ilDBPdo.php.
References Vendor\Package\$e, generateDSN(), getAttributes(), getDSN(), getPassword(), getUsername(), initHelpers(), and initSQLMode().
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 707 of file class.ilDBPdo.php.
| ilDBPdo::createDatabase | ( | string | $a_name, |
| string | $a_charset = "utf8", |
||
| string | $a_collation = "" |
||
| ) |
Implements ilDBInterface.
Definition at line 108 of file class.ilDBPdo.php.
References Vendor\Package\$e, 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 275 of file class.ilDBPdo.php.
| ilDBPdo::createTable | ( | string | $table_name, |
| array | $fields, | ||
| bool | $drop_table = false, |
||
| bool | $ignore_erros = false |
||
| ) |
Implements ilDBInterface.
Definition at line 177 of file class.ilDBPdo.php.
| ilDBPdo::doesCollationSupportMB4Strings | ( | ) |
@inheritDoc
Implements ilDBInterface.
Reimplemented in ilDBPdoMySQL.
Definition at line 1483 of file class.ilDBPdo.php.
| ilDBPdo::dropFulltextIndex | ( | string | $a_table, |
| string | $a_name | ||
| ) |
Drop fulltext index.
Implements ilDBInterface.
Definition at line 671 of file class.ilDBPdo.php.
| ilDBPdo::dropIndex | ( | string | $a_table, |
| string | $a_name = "i1" |
||
| ) |
Implements ilDBInterface.
Definition at line 1237 of file class.ilDBPdo.php.
| ilDBPdo::dropIndexByFields | ( | string | $table_name, |
| array | $fields | ||
| ) |
Implements ilDBInterface.
Definition at line 256 of file class.ilDBPdo.php.
| ilDBPdo::dropPrimaryKey | ( | string | $table_name | ) |
Implements ilDBPdoInterface.
Definition at line 1424 of file class.ilDBPdo.php.
| ilDBPdo::dropSequence | ( | string | $table_name | ) |
Implements ilDBInterface.
Definition at line 387 of file class.ilDBPdo.php.
| ilDBPdo::dropTable | ( | string | $table_name, |
| bool | $error_if_not_existing = true |
||
| ) |
Implements ilDBInterface.
Definition at line 322 of file class.ilDBPdo.php.
References ilDBConstants\MODULE_MANAGER.
| ilDBPdo::dropTableColumn | ( | string | $table_name, |
| string | $column_name | ||
| ) |
Implements ilDBInterface.
Definition at line 396 of file class.ilDBPdo.php.
| ilDBPdo::dropUniqueConstraint | ( | string | $table, |
| string | $name = "con" |
||
| ) |
Implements ilDBPdoInterface.
Definition at line 1367 of file class.ilDBPdo.php.
References $name.
| ilDBPdo::dropUniqueConstraintByFields | ( | string | $table, |
| array | $fields | ||
| ) |
Implements ilDBPdoInterface.
Definition at line 1372 of file class.ilDBPdo.php.
References $c, and Vendor\Package\$f.
| ilDBPdo::enableResultBuffering | ( | bool | $a_status | ) |
Implements ilDBInterface.
Definition at line 994 of file class.ilDBPdo.php.
| ilDBPdo::equals | ( | string | $columns, |
| $value, | |||
| string | $type, | ||
| bool | $emptyOrNull = false |
||
| ) |
| mixed | $value |
Implements ilDBInterface.
Definition at line 870 of file class.ilDBPdo.php.
References $type.
| ilDBPdo::escape | ( | string | $value, |
| bool | $escape_wildcards = false |
||
| ) |
Implements ilDBPdoInterface.
Definition at line 1294 of file class.ilDBPdo.php.
| ilDBPdo::escapePattern | ( | string | $text | ) |
Implements ilDBPdoInterface.
Definition at line 1299 of file class.ilDBPdo.php.
| ilDBPdo::executeMultiple | ( | ilDBStatement | $stmt, |
| array | $data | ||
| ) |
| ilDBStatement[] | $stmt |
Implements ilDBPdoInterface.
Definition at line 1429 of file class.ilDBPdo.php.
References $data.
| ilDBPdo::fetchAll | ( | ilDBStatement | $statement, |
| int | $fetch_mode = ilDBConstants::FETCHMODE_ASSOC |
||
| ) |
Implements ilDBInterface.
Definition at line 377 of file class.ilDBPdo.php.
References $data, and ilDBStatement\fetch().
Here is the call graph for this function:| ilDBPdo::fetchAssoc | ( | ilDBStatement | $statement | ) |
Implements ilDBInterface.
Definition at line 567 of file class.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 454 of file class.ilDBPdo.php.
References $res, and ilDBStatement\fetchObject().
Here is the call graph for this function:| ilDBPdo::free | ( | ilDBStatement | $a_st | ) |
Implements ilDBInterface.
Definition at line 1151 of file class.ilDBPdo.php.
| ilDBPdo::fromUnixtime | ( | string | $expr, |
| bool | $to_text = true |
||
| ) |
Implements ilDBPdoInterface.
Definition at line 1437 of file class.ilDBPdo.php.
| ilDBPdo::generateDSN | ( | ) |
Definition at line 155 of file class.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:
|
protected |
Reimplemented in ilDBPdoMySQL.
Definition at line 93 of file class.ilDBPdo.php.
Referenced by getAttributes().
Here is the caller graph for this function:| ilDBPdo::getAllowedAttributes | ( | ) |
Implements ilDBInterface.
Definition at line 1068 of file class.ilDBPdo.php.
|
protected |
Definition at line 83 of file class.ilDBPdo.php.
References $attributes, $options, and getAdditionalAttributes().
Referenced by connect().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdo::getCharset | ( | ) |
Definition at line 899 of file class.ilDBPdo.php.
Referenced by generateDSN().
Here is the caller graph for this function:| ilDBPdo::getDbname | ( | ) |
Definition at line 889 of file class.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 717 of file class.ilDBPdo.php.
| ilDBPdo::getDBVersion | ( | ) |
| ilDatabaseException |
Implements ilDBPdoInterface.
Definition at line 1451 of file class.ilDBPdo.php.
References $d.
| ilDBPdo::getDSN | ( | ) |
Get DSN.
This must be overwritten in DBMS specific class.
Implements ilDBInterface.
Definition at line 712 of file class.ilDBPdo.php.
Referenced by connect().
Here is the caller graph for this function:| ilDBPdo::getFieldDefinition | ( | ) |
Definition at line 98 of file class.ilDBPdo.php.
References $field_definition.
| ilDBPdo::getHost | ( | ) |
Definition at line 879 of file class.ilDBPdo.php.
Referenced by generateDSN().
Here is the caller graph for this function:| ilDBPdo::getIndexName | ( | string | $index_name_base | ) |
Definition at line 693 of file class.ilDBPdo.php.
References ilDBPdoFieldDefinition\INDEX_FORMAT.
| ilDBPdo::getLastErrorCode | ( | ) |
Definition at line 124 of file class.ilDBPdo.php.
References $error_code.
| ilDBPdo::getLastInsertId | ( | ) |
Implements ilDBPdoInterface.
Definition at line 1393 of file class.ilDBPdo.php.
| ilDBPdo::getPassword | ( | ) |
Definition at line 919 of file class.ilDBPdo.php.
Referenced by connect().
Here is the caller graph for this function:| ilDBPdo::getPort | ( | ) |
Definition at line 929 of file class.ilDBPdo.php.
Referenced by generateDSN().
Here is the caller graph for this function:| ilDBPdo::getPrimaryKeyIdentifier | ( | ) |
Implements ilDBInterface.
Definition at line 270 of file class.ilDBPdo.php.
| ilDBPdo::getSequenceName | ( | string | $table_name | ) |
Implements ilDBInterface.
Definition at line 698 of file class.ilDBPdo.php.
References ilDBPdoFieldDefinition\SEQUENCE_FORMAT.
| ilDBPdo::getServerVersion | ( | bool | $native = false | ) |
Implements ilDBPdoInterface.
Definition at line 1289 of file class.ilDBPdo.php.
| ilDBPdo::getStorageEngine | ( | ) |
Implements ilDBInterface.
Definition at line 1247 of file class.ilDBPdo.php.
| ilDBPdo::getUsername | ( | ) |
Definition at line 909 of file class.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 1491 of file class.ilDBPdo.php.
| ilDBPdo::in | ( | string | $field, |
| array | $values, | ||
| bool | $negate = false, |
||
| string | $type = "" |
||
| ) |
Implements ilDBInterface.
Definition at line 766 of file class.ilDBPdo.php.
References $type.
| ilDBPdo::indexExistsByFields | ( | string | $table_name, |
| array | $fields | ||
| ) |
Implements ilDBInterface.
Definition at line 619 of file class.ilDBPdo.php.
| ilDBPdo::initFromIniFile | ( | ?ilIniFile | $ini = null | ) |
Implements ilDBInterface.
Definition at line 133 of file class.ilDBPdo.php.
References $DIC, $ini, generateDSN(), setDbname(), setDBType(), setHost(), setPassword(), setPort(), and setUsername().
Here is the call graph for this function:
|
abstract |
|
protected |
Reimplemented in ilDBPdoMySQL.
Definition at line 79 of file class.ilDBPdo.php.
Referenced by connect().
Here is the caller graph for this function:| ilDBPdo::insert | ( | string | $table_name, |
| array | $values | ||
| ) |
Implements ilDBInterface.
Definition at line 437 of file class.ilDBPdo.php.
References ILIAS\LTI\ToolProvider\$key, and $query.
| ilDBPdo::isFulltextIndex | ( | string | $a_table, |
| string | $a_name | ||
| ) |
Is index a fulltext index?
Implements ilDBInterface.
Definition at line 681 of file class.ilDBPdo.php.
|
static |
Implements ilDBInterface.
Definition at line 1195 of file class.ilDBPdo.php.
References $DIC.
| ilDBPdo::like | ( | string | $column, |
| string | $type, | ||
| string | $value = "?", |
||
| bool | $case_insensitive = true |
||
| ) |
Implements ilDBInterface.
Definition at line 827 of file class.ilDBPdo.php.
References $type.
| ilDBPdo::listSequences | ( | ) |
Implements ilDBInterface.
Definition at line 1078 of file class.ilDBPdo.php.
| ilDBPdo::listTables | ( | ) |
Implements ilDBInterface.
Definition at line 1046 of file class.ilDBPdo.php.
Referenced by ilDBPdoMySQL\migrateAllTablesToEngine().
Here is the caller graph for this function:| ilDBPdo::loadModule | ( | string | $module | ) |
Implements ilDBInterface.
Definition at line 1054 of file class.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 1101 of file class.ilDBPdo.php.
| ilDBPdo::lockTables | ( | array | $tables | ) |
Implements ilDBInterface.
Definition at line 750 of file class.ilDBPdo.php.
| ilDBPdo::lower | ( | string | $expression | ) |
| string | $a_exp |
Implements ilDBInterface.
Definition at line 970 of file class.ilDBPdo.php.
| ilDBPdo::manipulate | ( | string | $query | ) |
| ilDatabaseException |
Implements ilDBInterface.
Definition at line 547 of file class.ilDBPdo.php.
References $DIC, Vendor\Package\$e, and $query.
| ilDBPdo::manipulateF | ( | string | $query, |
| array | $types, | ||
| array | $values | ||
| ) |
| string[] | $types |
| ilDatabaseException |
Implements ilDBInterface.
Definition at line 793 of file class.ilDBPdo.php.
References $query.
| ilDBPdo::migrateAllTablesToCollation | ( | string | $collation = ilDBConstants::MYSQL_COLLATION_UTF8MB4 | ) |
@inheritDoc
Implements ilDBPdoInterface.
Reimplemented in ilDBPdoMySQL.
Definition at line 1312 of file class.ilDBPdo.php.
| ilDBPdo::migrateAllTablesToEngine | ( | string | $engine = ilDBConstants::MYSQL_ENGINE_INNODB | ) |
Implements ilDBPdoInterface.
Reimplemented in ilDBPdoMySQL.
Definition at line 1304 of file class.ilDBPdo.php.
| ilDBPdo::modifyTableColumn | ( | string | $table, |
| string | $column, | ||
| array | $attributes | ||
| ) |
Implements ilDBInterface.
Definition at line 1109 of file class.ilDBPdo.php.
References Vendor\Package\$a, $attributes, and $type.
|
abstract |
| ilDBPdo::now | ( | ) |
Implements ilDBInterface.
Definition at line 835 of file class.ilDBPdo.php.
| ilDBPdo::numRows | ( | ilDBStatement | $statement | ) |
Implements ilDBInterface.
Definition at line 579 of file class.ilDBPdo.php.
References ilDBStatement\rowCount().
Here is the call graph for this function:| ilDBPdo::prepare | ( | string | $query, |
| ?array | $types = null, |
||
| ?array | $result_types = null |
||
| ) |
Definition at line 989 of file class.ilDBPdo.php.
References $query.
| ilDBPdo::prepareManip | ( | string | $query, |
| ?array | $types = null |
||
| ) |
| ilDBPdo::primaryExistsByFields | ( | string | $table_name, |
| array | $fields | ||
| ) |
Implements ilDBInterface.
Definition at line 1504 of file class.ilDBPdo.php.
| ilDBPdo::query | ( | string | $query | ) |
| ilDatabaseException |
Implements ilDBInterface.
Definition at line 348 of file class.ilDBPdo.php.
References $DIC, Vendor\Package\$e, $query, and $res.
Referenced by createDatabase().
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 1252 of file class.ilDBPdo.php.
References $query, $type, ilDBConstants\FETCHMODE_ASSOC, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilDBPdoMySQL\migrateAllTablesToEngine().
Here is the caller graph for this function:| ilDBPdo::queryF | ( | string | $query, |
| array | $types, | ||
| array | $values | ||
| ) |
| string[] | $types |
Implements ilDBInterface.
Definition at line 775 of file class.ilDBPdo.php.
References $query.
| ilDBPdo::queryRow | ( | string | $query, |
| ?array | $types = null, |
||
| int | $fetchmode = ilDBConstants::FETCHMODE_DEFAULT |
||
| ) |
Implements ilDBPdoInterface.
Definition at line 1269 of file class.ilDBPdo.php.
References $type, ilDBConstants\FETCHMODE_ASSOC, and ilDBConstants\FETCHMODE_OBJECT.
| ilDBPdo::quote | ( | $value, | |
| ?string | $type = null |
||
| ) |
Definition at line 584 of file class.ilDBPdo.php.
References $type, 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 164 of file class.ilDBPdo.php.
Referenced by ilDBPdoManager\createConstraint().
Here is the caller graph for this function:| ilDBPdo::renameTable | ( | string | $name, |
| string | $new_name | ||
| ) |
Implements ilDBInterface.
Definition at line 1159 of file class.ilDBPdo.php.
References Vendor\Package\$e, and $name.
| ilDBPdo::renameTableColumn | ( | string | $table_name, |
| string | $column_old_name, | ||
| string | $column_new_name | ||
| ) |
Implements ilDBInterface.
Definition at line 410 of file class.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 840 of file class.ilDBPdo.php.
References ILIAS\Repository\int().
Here is the call graph for this function:| ilDBPdo::rollback | ( | ) |
Implements ilDBInterface.
Definition at line 1228 of file class.ilDBPdo.php.
| ilDBPdo::sanitizeMB4StringIfNotSupported | ( | string | $query | ) |
| $query | string to sanitize, all MB4-Characters like emojis will re replaced with ??? |
Implements ilDBInterface.
Definition at line 1464 of file class.ilDBPdo.php.
References $query, and ilDBConstants\MB4_REPLACEMENT.
| ilDBPdo::sequenceExists | ( | string | $sequence | ) |
Implements ilDBInterface.
Definition at line 1073 of file class.ilDBPdo.php.
Referenced by ilDBPdoMySQL\migrateAllTablesToEngine(), and ilDBPdoMySQL\migrateTableToEngine().
Here is the caller graph for this function:| ilDBPdo::setCharset | ( | string | $charset | ) |
Definition at line 904 of file class.ilDBPdo.php.
| ilDBPdo::setDBHost | ( | string | $host | ) |
Implements ilDBInterface.
Definition at line 954 of file class.ilDBPdo.php.
| ilDBPdo::setDbname | ( | string | $dbname | ) |
Definition at line 894 of file class.ilDBPdo.php.
Referenced by createDatabase(), and initFromIniFile().
Here is the caller graph for this function:| ilDBPdo::setDBPassword | ( | string | $password | ) |
Implements ilDBInterface.
Definition at line 949 of file class.ilDBPdo.php.
| ilDBPdo::setDBPort | ( | int | $port | ) |
Implements ilDBInterface.
Definition at line 944 of file class.ilDBPdo.php.
| ilDBPdo::setDBType | ( | string | $type | ) |
Definition at line 722 of file class.ilDBPdo.php.
References $type.
Referenced by initFromIniFile().
Here is the caller graph for this function:| ilDBPdo::setDBUser | ( | string | $user | ) |
Implements ilDBInterface.
Definition at line 939 of file class.ilDBPdo.php.
| ilDBPdo::setFieldDefinition | ( | \ilDBPdoFieldDefinition | $field_definition | ) |
Definition at line 103 of file class.ilDBPdo.php.
References $field_definition.
| ilDBPdo::setHost | ( | string | $host | ) |
Definition at line 884 of file class.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 818 of file class.ilDBPdo.php.
| ilDBPdo::setPassword | ( | string | $password | ) |
Definition at line 924 of file class.ilDBPdo.php.
Referenced by initFromIniFile().
Here is the caller graph for this function:| ilDBPdo::setPort | ( | int | $port | ) |
Definition at line 934 of file class.ilDBPdo.php.
Referenced by initFromIniFile().
Here is the caller graph for this function:| ilDBPdo::setStorageEngine | ( | string | $storage_engine | ) |
Implements ilDBInterface.
Definition at line 1242 of file class.ilDBPdo.php.
| ilDBPdo::setUsername | ( | string | $username | ) |
Definition at line 914 of file class.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 975 of file class.ilDBPdo.php.
| ilDBPdo::supports | ( | string | $feature | ) |
Implements ilDBInterface.
Definition at line 1029 of file class.ilDBPdo.php.
| ilDBPdo::supportsCollationMigration | ( | ) |
@inheritDoc
Implements ilDBPdoInterface.
Reimplemented in ilDBPdoMySQL.
Definition at line 1320 of file class.ilDBPdo.php.
| ilDBPdo::supportsEngineMigration | ( | ) |
Implements ilDBPdoInterface.
Reimplemented in ilDBPdoMySQL.
Definition at line 1325 of file class.ilDBPdo.php.
| ilDBPdo::supportsFulltext | ( | ) |
Implements ilDBInterface.
Reimplemented in ilDBPdoMySQLInnoDB.
Definition at line 1019 of file class.ilDBPdo.php.
| ilDBPdo::supportsSlave | ( | ) |
Implements ilDBInterface.
Definition at line 1014 of file class.ilDBPdo.php.
| ilDBPdo::supportsTransactions | ( | ) |
Implements ilDBInterface.
Reimplemented in ilDBPdoMySQL, ilDBPdoMySQLGalera, and ilDBPdoMySQLInnoDB.
Definition at line 1024 of file class.ilDBPdo.php.
| ilDBPdo::tableColumnExists | ( | string | $table_name, |
| string | $column_name | ||
| ) |
Implements ilDBInterface.
Definition at line 291 of file class.ilDBPdo.php.
References ilDBConstants\MODULE_MANAGER.
| ilDBPdo::tableExists | ( | string | $table_name | ) |
Implements ilDBInterface.
Definition at line 281 of file class.ilDBPdo.php.
| ilDBPdo::uniqueConstraintExists | ( | string | $table, |
| array | $fields | ||
| ) |
Implements ilDBPdoInterface.
Definition at line 1403 of file class.ilDBPdo.php.
References $c, and Vendor\Package\$f.
| ilDBPdo::unixTimestamp | ( | ) |
Implements ilDBPdoInterface.
Definition at line 1442 of file class.ilDBPdo.php.
| ilDBPdo::unlockTables | ( | ) |
Implements ilDBInterface.
Definition at line 761 of file class.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 466 of file class.ilDBPdo.php.
References ILIAS\Repository\int().
Here is the call graph for this function:| ilDBPdo::upper | ( | string | $expression | ) |
| string | $a_exp |
Implements ilDBInterface.
Definition at line 962 of file class.ilDBPdo.php.
| ilDBPdo::useSlave | ( | bool | $bool | ) |
TODO.
Implements ilDBInterface.
Definition at line 810 of file class.ilDBPdo.php.
|
protected |
Definition at line 47 of file class.ilDBPdo.php.
Referenced by getAttributes().
|
protected |
Definition at line 33 of file class.ilDBPdo.php.
Referenced by generateDSN().
|
protected |
Definition at line 51 of file class.ilDBPdo.php.
|
protected |
Definition at line 32 of file class.ilDBPdo.php.
Referenced by generateDSN().
|
protected |
Definition at line 43 of file class.ilDBPdo.php.
|
protected |
Definition at line 52 of file class.ilDBPdo.php.
Referenced by getLastErrorCode().
|
protected |
Definition at line 53 of file class.ilDBPdo.php.
Referenced by getFieldDefinition(), and setFieldDefinition().
|
protected |
Definition at line 31 of file class.ilDBPdo.php.
Referenced by generateDSN().
|
protected |
Definition at line 40 of file class.ilDBPdo.php.
|
protected |
Definition at line 38 of file class.ilDBPdo.php.
|
protected |
Definition at line 41 of file class.ilDBPdo.php.
| array ilDBPdo::$options = [] |
Definition at line 27 of file class.ilDBPdo.php.
Referenced by getAttributes().
|
protected |
Definition at line 35 of file class.ilDBPdo.php.
|
protected |
Definition at line 37 of file class.ilDBPdo.php.
|
protected |
Definition at line 36 of file class.ilDBPdo.php.
Referenced by generateDSN().
|
protected |
Definition at line 39 of file class.ilDBPdo.php.
|
protected |
Definition at line 42 of file class.ilDBPdo.php.
|
protected |
Definition at line 34 of file class.ilDBPdo.php.
| const ilDBPdo::FEATURE_FULLTEXT = 'fulltext' |
Definition at line 29 of file class.ilDBPdo.php.
| const ilDBPdo::FEATURE_SLAVE = 'slave' |
Definition at line 30 of file class.ilDBPdo.php.
| const ilDBPdo::FEATURE_TRANSACTIONS = 'transactions' |
Definition at line 28 of file class.ilDBPdo.php.