| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
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) | |||
| $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) | |||
| 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) | |||
  Public Member Functions inherited from ilDBInterface | |||
| quote ($value, string $type) | |||
| 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... | |||
| execute (ilDBStatement $stmt, array $data=[]) | |||
  Public Member Functions inherited from ilDBPdoInterface | |||
| migrateTableToEngine (string $table_name, string $engine=ilDBConstants::MYSQL_ENGINE_INNODB) | |||
| migrateTableCollation (string $table_name, string $collation=ilDBConstants::MYSQL_COLLATION_UTF8MB4) | |||
Static Public Member Functions | |
| static | isReservedWord (string $a_word) | 
  Static Public Member Functions inherited from ilDBInterface | |
| static | getReservedWords () | 
| Get reserved words.  More... | |
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 29 of file class.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 1508 of file class.ilDBPdo.php.
| ilDBPdo::addFulltextIndex | ( | string | $table, | 
| array | $fields, | ||
| string | $a_name = "in"  | 
        ||
| ) | 
Implements ilDBInterface.
Definition at line 663 of file class.ilDBPdo.php.
References $q, constraintName(), and query().
Referenced by addIndex().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::addIndex | ( | string | $table_name, | 
| array | $fields, | ||
| string | $index_name = '',  | 
        ||
| bool | $fulltext = false  | 
        ||
| ) | 
Implements ilDBInterface.
Definition at line 637 of file class.ilDBPdo.php.
References Vendor\Package\$f, addFulltextIndex(), constraintName(), and supportsFulltext().
 Here is the call graph for this function:| ilDBPdo::addPrimaryKey | ( | string | $table_name, | 
| array | $primary_keys | ||
| ) | 
Implements ilDBInterface.
Definition at line 236 of file class.ilDBPdo.php.
References Vendor\Package\$f, constraintName(), and getPrimaryKeyIdentifier().
 Here is the call graph for this function:| ilDBPdo::addTableColumn | ( | string | $table_name, | 
| string | $column_name, | ||
| array | $attributes | ||
| ) | 
Implements ilDBInterface.
Definition at line 305 of file class.ilDBPdo.php.
References checkColumnDefinition(), and checkColumnName().
 Here is the call graph for this function:| ilDBPdo::addUniqueConstraint | ( | string | $table, | 
| array | $fields, | ||
| string | $name = "con"  | 
        ||
| ) | 
Implements ilDBPdoInterface.
Definition at line 1349 of file class.ilDBPdo.php.
References Vendor\Package\$f, $manager, checkIndexName(), constraintName(), and ilDBPdoManager\createConstraint().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 1092 of file class.ilDBPdo.php.
References $limit.
Referenced by query().
 Here is the caller graph for this function:| ilDBPdo::beginTransaction | ( | ) | 
Implements ilDBInterface.
Definition at line 1208 of file class.ilDBPdo.php.
References supports().
 Here is the call graph for this function:| ilDBPdo::buildAtomQuery | ( | ) | 
Implements ilDBInterface.
Definition at line 1402 of file class.ilDBPdo.php.
| ilDBPdo::buildIntegrityAnalyser | ( | ) | 
| ilDBPdo::cast | ( | string | $a_field_name, | 
| string | $a_dest_type | ||
| ) | 
Implements ilDBInterface.
Definition at line 1503 of file class.ilDBPdo.php.
      
  | 
  protected | 
Definition at line 215 of file class.ilDBPdo.php.
References checkColumnDefinition(), and checkColumnName().
Referenced by checkTableColumns().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 223 of file class.ilDBPdo.php.
Referenced by addTableColumn(), checkColumn(), and modifyTableColumn().
 Here is the caller graph for this function:| ilDBPdo::checkColumnName | ( | string | $a_name | ) | 
Definition at line 228 of file class.ilDBPdo.php.
Referenced by addTableColumn(), checkColumn(), and renameTableColumn().
 Here is the caller graph for this function:| ilDBPdo::checkIndexName | ( | string | $name | ) | 
Implements ilDBPdoInterface.
Definition at line 1337 of file class.ilDBPdo.php.
References getFieldDefinition().
Referenced by addUniqueConstraint().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 204 of file class.ilDBPdo.php.
References checkColumn().
Referenced by createTable().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::checkTableName | ( | string | $a_name | ) | 
Implements ilDBInterface.
Definition at line 1194 of file class.ilDBPdo.php.
Referenced by createTable(), and renameTable().
 Here is the caller graph for this function:| ilDBPdo::commit | ( | ) | 
Implements ilDBInterface.
Definition at line 1220 of file class.ilDBPdo.php.
References supports().
 Here is the call graph for this function:| ilDBPdo::concat | ( | array | $values, | 
| bool | $allow_null = true  | 
        ||
| ) | 
Implements ilDBInterface.
Definition at line 1087 of file class.ilDBPdo.php.
| ilDBPdo::connect | ( | bool | $return_false_for_error = false | ) | 
Implements ilDBInterface.
Definition at line 62 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 711 of file class.ilDBPdo.php.
Referenced by addFulltextIndex(), addIndex(), addPrimaryKey(), addUniqueConstraint(), dropFulltextIndex(), and dropUniqueConstraint().
 Here is the caller graph for this function:| ilDBPdo::createDatabase | ( | string | $a_name, | 
| string | $a_charset = "utf8",  | 
        ||
| string | $a_collation = ""  | 
        ||
| ) | 
Implements ilDBInterface.
Definition at line 112 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 279 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 181 of file class.ilDBPdo.php.
References checkTableColumns(), checkTableName(), and dropTable().
 Here is the call graph for this function:| ilDBPdo::doesCollationSupportMB4Strings | ( | ) | 
Implements ilDBInterface.
Definition at line 1487 of file class.ilDBPdo.php.
Referenced by sanitizeMB4StringIfNotSupported().
 Here is the caller graph for this function:| ilDBPdo::dropForeignKey | ( | string | $foreign_key_name, | 
| string | $table_name | ||
| ) | 
Implements ilDBInterface.
Definition at line 1520 of file class.ilDBPdo.php.
| ilDBPdo::dropFulltextIndex | ( | string | $a_table, | 
| string | $a_name | ||
| ) | 
Drop fulltext index.
Implements ilDBInterface.
Definition at line 675 of file class.ilDBPdo.php.
References constraintName(), and query().
 Here is the call graph for this function:| ilDBPdo::dropIndex | ( | string | $a_table, | 
| string | $a_name = "i1"  | 
        ||
| ) | 
Implements ilDBInterface.
Definition at line 1241 of file class.ilDBPdo.php.
Referenced by dropIndexByFields().
 Here is the caller graph for this function:| ilDBPdo::dropIndexByFields | ( | string | $table_name, | 
| array | $fields | ||
| ) | 
Implements ilDBInterface.
Definition at line 260 of file class.ilDBPdo.php.
References dropIndex().
 Here is the call graph for this function:| ilDBPdo::dropPrimaryKey | ( | string | $table_name | ) | 
Implements ilDBPdoInterface.
Definition at line 1428 of file class.ilDBPdo.php.
| ilDBPdo::dropSequence | ( | string | $table_name | ) | 
Implements ilDBInterface.
Definition at line 391 of file class.ilDBPdo.php.
| ilDBPdo::dropTable | ( | string | $table_name, | 
| bool | $error_if_not_existing = true  | 
        ||
| ) | 
Implements ilDBInterface.
Definition at line 326 of file class.ilDBPdo.php.
References loadModule(), and ilDBConstants\MODULE_MANAGER.
Referenced by createTable().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::dropTableColumn | ( | string | $table_name, | 
| string | $column_name | ||
| ) | 
| ilDBPdo::dropUniqueConstraint | ( | string | $table, | 
| string | $name = "con"  | 
        ||
| ) | 
Implements ilDBPdoInterface.
Definition at line 1371 of file class.ilDBPdo.php.
References constraintName().
Referenced by dropUniqueConstraintByFields().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::dropUniqueConstraintByFields | ( | string | $table, | 
| array | $fields | ||
| ) | 
Implements ilDBPdoInterface.
Definition at line 1376 of file class.ilDBPdo.php.
References Vendor\Package\$c, Vendor\Package\$f, and dropUniqueConstraint().
 Here is the call graph for this function:| ilDBPdo::enableResultBuffering | ( | bool | $a_status | ) | 
Implements ilDBInterface.
Definition at line 998 of file class.ilDBPdo.php.
References $data, ilDBStatement\execute(), and ilDBInterface\execute().
 Here is the call graph for this function:| ilDBPdo::equals | ( | string | $columns, | 
| $value, | |||
| string | $type, | ||
| bool | $emptyOrNull = false  | 
        ||
| ) | 
| mixed | $value | 
Implements ilDBInterface.
Definition at line 874 of file class.ilDBPdo.php.
References quote().
 Here is the call graph for this function:| ilDBPdo::escape | ( | string | $value, | 
| bool | $escape_wildcards = false  | 
        ||
| ) | 
Implements ilDBPdoInterface.
Definition at line 1298 of file class.ilDBPdo.php.
| ilDBPdo::escapePattern | ( | string | $text | ) | 
Implements ilDBPdoInterface.
Definition at line 1303 of file class.ilDBPdo.php.
| ilDBPdo::executeMultiple | ( | ilDBStatement | $stmt, | 
| array | $data | ||
| ) | 
| ilDBStatement[] | $stmt | 
Implements ilDBPdoInterface.
Definition at line 1433 of file class.ilDBPdo.php.
References ilDBInterface\execute().
 Here is the call graph for this function:| ilDBPdo::fetchAll | ( | ilDBStatement | $statement, | 
| int | $fetch_mode = ilDBConstants::FETCHMODE_ASSOC  | 
        ||
| ) | 
Implements ilDBInterface.
Definition at line 381 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 571 of file class.ilDBPdo.php.
References $res, and ilDBStatement\fetch().
Referenced by isFulltextIndex().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::fetchObject | ( | ilDBStatement | $query_result | ) | 
Implements ilDBInterface.
Definition at line 458 of file class.ilDBPdo.php.
References $res, and ilDBStatement\fetchObject().
Referenced by getDBVersion().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::foreignKeyExists | ( | string | $foreign_key_name, | 
| string | $table_name | ||
| ) | 
Implements ilDBInterface.
Definition at line 1525 of file class.ilDBPdo.php.
| ilDBPdo::free | ( | ilDBStatement | $a_st | ) | 
Implements ilDBInterface.
Definition at line 1155 of file class.ilDBPdo.php.
Referenced by update().
 Here is the caller graph for this function:| ilDBPdo::fromUnixtime | ( | string | $expr, | 
| bool | $to_text = true  | 
        ||
| ) | 
Implements ilDBPdoInterface.
Definition at line 1441 of file class.ilDBPdo.php.
| ilDBPdo::generateDSN | ( | ) | 
Definition at line 159 of file class.ilDBPdo.php.
References $charset, 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 | 
Definition at line 97 of file class.ilDBPdo.php.
Referenced by getAttributes().
 Here is the caller graph for this function:| ilDBPdo::getAllowedAttributes | ( | ) | 
      
  | 
  protected | 
Definition at line 87 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 903 of file class.ilDBPdo.php.
References $charset.
Referenced by generateDSN().
 Here is the caller graph for this function:| ilDBPdo::getDbname | ( | ) | 
Definition at line 893 of file class.ilDBPdo.php.
References $dbname.
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 721 of file class.ilDBPdo.php.
References $db_type.
| ilDBPdo::getDBVersion | ( | ) | 
| ilDatabaseException | 
Implements ilDBPdoInterface.
Definition at line 1455 of file class.ilDBPdo.php.
References Vendor\Package\$d, fetchObject(), and query().
 Here is the call graph for this function:| ilDBPdo::getDSN | ( | ) | 
Get DSN.
This must be overwritten in DBMS specific class.
Implements ilDBInterface.
Definition at line 716 of file class.ilDBPdo.php.
References $dsn.
Referenced by connect().
 Here is the caller graph for this function:| ilDBPdo::getFieldDefinition | ( | ) | 
Definition at line 102 of file class.ilDBPdo.php.
References $field_definition.
Referenced by checkIndexName().
 Here is the caller graph for this function:| ilDBPdo::getHost | ( | ) | 
Definition at line 883 of file class.ilDBPdo.php.
References $host.
Referenced by generateDSN().
 Here is the caller graph for this function:| ilDBPdo::getIndexName | ( | string | $index_name_base | ) | 
Definition at line 697 of file class.ilDBPdo.php.
References ilDBPdoFieldDefinition\INDEX_FORMAT.
| ilDBPdo::getLastErrorCode | ( | ) | 
| ilDBPdo::getLastInsertId | ( | ) | 
Implements ilDBPdoInterface.
Definition at line 1397 of file class.ilDBPdo.php.
| ilDBPdo::getPassword | ( | ) | 
Definition at line 923 of file class.ilDBPdo.php.
References $password.
Referenced by connect().
 Here is the caller graph for this function:| ilDBPdo::getPort | ( | ) | 
Definition at line 933 of file class.ilDBPdo.php.
References $port.
Referenced by generateDSN().
 Here is the caller graph for this function:| ilDBPdo::getPrimaryKeyIdentifier | ( | ) | 
Implements ilDBInterface.
Definition at line 274 of file class.ilDBPdo.php.
Referenced by addPrimaryKey().
 Here is the caller graph for this function:| ilDBPdo::getSequenceName | ( | string | $table_name | ) | 
Implements ilDBInterface.
Definition at line 702 of file class.ilDBPdo.php.
References ilDBPdoFieldDefinition\SEQUENCE_FORMAT.
Referenced by ilDBPdoMySQL\nextId(), and renameTable().
 Here is the caller graph for this function:| ilDBPdo::getServerVersion | ( | bool | $native = false | ) | 
Implements ilDBPdoInterface.
Definition at line 1293 of file class.ilDBPdo.php.
| ilDBPdo::getStorageEngine | ( | ) | 
Implements ilDBInterface.
Definition at line 1251 of file class.ilDBPdo.php.
References $storage_engine.
| ilDBPdo::getUsername | ( | ) | 
Definition at line 913 of file class.ilDBPdo.php.
References $username.
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 1495 of file class.ilDBPdo.php.
| ilDBPdo::in | ( | string | $field, | 
| array | $values, | ||
| bool | $negate = false,  | 
        ||
| string | $type = ""  | 
        ||
| ) | 
Implements ilDBInterface.
Definition at line 770 of file class.ilDBPdo.php.
| ilDBPdo::indexExistsByFields | ( | string | $table_name, | 
| array | $fields | ||
| ) | 
| ilDBPdo::initFromIniFile | ( | ?ilIniFile | $ini = null | ) | 
Implements ilDBInterface.
Definition at line 137 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 | 
Definition at line 83 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 441 of file class.ilDBPdo.php.
References ILIAS\LTI\ToolProvider\$key, quote(), quoteIdentifier(), and sanitizeMB4StringIfNotSupported().
 Here is the call graph for this function:| ilDBPdo::isFulltextIndex | ( | string | $a_table, | 
| string | $a_name | ||
| ) | 
Is index a fulltext index?
Implements ilDBInterface.
Definition at line 685 of file class.ilDBPdo.php.
References fetchAssoc(), and query().
 Here is the call graph for this function:
      
  | 
  static | 
Implements ilDBInterface.
Definition at line 1199 of file class.ilDBPdo.php.
References $DIC.
| ilDBPdo::like | ( | string | $column, | 
| string | $type, | ||
| string | $value = "?",  | 
        ||
| bool | $case_insensitive = true  | 
        ||
| ) | 
| ilDBPdo::listSequences | ( | ) | 
Implements ilDBInterface.
Definition at line 1082 of file class.ilDBPdo.php.
Referenced by sequenceExists().
 Here is the caller graph for this function:| ilDBPdo::listTables | ( | ) | 
Implements ilDBInterface.
Definition at line 1050 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 1058 of file class.ilDBPdo.php.
References $manager, $reverse, ilDBConstants\MODULE_MANAGER, and ilDBConstants\MODULE_REVERSE.
Referenced by dropTable(), ilDBPdoMySQL\migrateAllTablesToCollation(), and tableColumnExists().
 Here is the caller graph for this function:| ilDBPdo::locate | ( | string | $needle, | 
| string | $string, | ||
| int | $start_pos = 1  | 
        ||
| ) | 
Implements ilDBInterface.
Definition at line 1105 of file class.ilDBPdo.php.
| ilDBPdo::lockTables | ( | array | $tables | ) | 
Implements ilDBInterface.
Definition at line 754 of file class.ilDBPdo.php.
| ilDBPdo::lower | ( | string | $expression | ) | 
| ilDBPdo::manipulate | ( | string | $query | ) | 
| ilDatabaseException | 
Implements ilDBInterface.
Definition at line 551 of file class.ilDBPdo.php.
References $DIC, Vendor\Package\$e, ILIAS\Repository\int(), and sanitizeMB4StringIfNotSupported().
Referenced by manipulateF().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::manipulateF | ( | string | $query, | 
| array | $types, | ||
| array | $values | ||
| ) | 
| string[] | $types | 
| ilDatabaseException | 
Implements ilDBInterface.
Definition at line 797 of file class.ilDBPdo.php.
References manipulate(), and quote().
Referenced by replace(), and update().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::migrateAllTablesToCollation | ( | string | $collation = ilDBConstants::MYSQL_COLLATION_UTF8MB4 | ) | 
Implements ilDBPdoInterface.
Definition at line 1316 of file class.ilDBPdo.php.
| ilDBPdo::migrateAllTablesToEngine | ( | string | $engine = ilDBConstants::MYSQL_ENGINE_INNODB | ) | 
Implements ilDBPdoInterface.
Definition at line 1308 of file class.ilDBPdo.php.
| ilDBPdo::modifyTableColumn | ( | string | $table, | 
| string | $column, | ||
| array | $attributes | ||
| ) | 
Implements ilDBInterface.
Definition at line 1113 of file class.ilDBPdo.php.
References Vendor\Package\$a, $field_definition, and checkColumnDefinition().
 Here is the call graph for this function:
      
  | 
  abstract | 
| $table_name | string | 
Implements ilDBInterface.
Referenced by quoteIdentifier().
 Here is the caller graph for this function:| ilDBPdo::now | ( | ) | 
Implements ilDBInterface.
Definition at line 839 of file class.ilDBPdo.php.
Referenced by quote().
 Here is the caller graph for this function:| ilDBPdo::numRows | ( | ilDBStatement | $statement | ) | 
Implements ilDBInterface.
Definition at line 583 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 993 of file class.ilDBPdo.php.
| ilDBPdo::prepareManip | ( | string | $query, | 
| ?array | $types = null  | 
        ||
| ) | 
Implements ilDBInterface.
Definition at line 988 of file class.ilDBPdo.php.
Referenced by update().
 Here is the caller graph for this function:| ilDBPdo::primaryExistsByFields | ( | string | $table_name, | 
| array | $fields | ||
| ) | 
| ilDBPdo::query | ( | string | $query | ) | 
| ilDatabaseException | 
Implements ilDBInterface.
Definition at line 352 of file class.ilDBPdo.php.
References $DIC, Vendor\Package\$e, $res, appendLimit(), and ILIAS\Repository\int().
Referenced by addFulltextIndex(), createDatabase(), dropFulltextIndex(), getDBVersion(), isFulltextIndex(), ilDBPdoMySQL\nextId(), and queryF().
 Here is the call graph for this function:
 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 1256 of file class.ilDBPdo.php.
References 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 779 of file class.ilDBPdo.php.
References query(), and quote().
 Here is the call graph for this function:| ilDBPdo::queryRow | ( | string | $query, | 
| ?array | $types = null,  | 
        ||
| int | $fetchmode = ilDBConstants::FETCHMODE_DEFAULT  | 
        ||
| ) | 
Implements ilDBPdoInterface.
Definition at line 1273 of file class.ilDBPdo.php.
References ilDBConstants\FETCHMODE_ASSOC, and ilDBConstants\FETCHMODE_OBJECT.
| ilDBPdo::quote | ( | $value, | |
| ?string | $type = null  | 
        ||
| ) | 
Definition at line 588 of file class.ilDBPdo.php.
References ILIAS\Repository\int(), now(), ilDBConstants\T_DATE, ilDBConstants\T_DATETIME, ilDBConstants\T_FLOAT, ilDBConstants\T_INTEGER, ilDBConstants\T_TEXT, and ilDBConstants\T_TIMESTAMP.
Referenced by equals(), insert(), manipulateF(), queryF(), and update().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::quoteIdentifier | ( | string | $identifier, | 
| bool | $check_option = false  | 
        ||
| ) | 
Implements ilDBInterface.
Definition at line 168 of file class.ilDBPdo.php.
References ILIAS\Repository\int(), and nextId().
Referenced by ilDBPdoManager\createConstraint(), insert(), ilDBPdoMySQL\nextId(), replace(), and update().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::renameTable | ( | string | $name, | 
| string | $new_name | ||
| ) | 
Implements ilDBInterface.
Definition at line 1163 of file class.ilDBPdo.php.
References Vendor\Package\$e, checkTableName(), getSequenceName(), and sequenceExists().
 Here is the call graph for this function:| ilDBPdo::renameTableColumn | ( | string | $table_name, | 
| string | $column_old_name, | ||
| string | $column_new_name | ||
| ) | 
Implements ilDBInterface.
Definition at line 414 of file class.ilDBPdo.php.
References Vendor\Package\$f, and checkColumnName().
 Here is the call graph for this function:| 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 844 of file class.ilDBPdo.php.
References $q, ILIAS\Repository\int(), manipulateF(), and quoteIdentifier().
 Here is the call graph for this function:| ilDBPdo::rollback | ( | ) | 
Implements ilDBInterface.
Definition at line 1232 of file class.ilDBPdo.php.
References supports().
 Here is the call graph for this function:| ilDBPdo::sanitizeMB4StringIfNotSupported | ( | string | $query | ) | 
| $query | string to sanitize, all MB4-Characters like emojis will re replaced with ??? | 
Implements ilDBInterface.
Definition at line 1468 of file class.ilDBPdo.php.
References doesCollationSupportMB4Strings(), and ilDBConstants\MB4_REPLACEMENT.
Referenced by insert(), manipulate(), and update().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::sequenceExists | ( | string | $sequence | ) | 
Implements ilDBInterface.
Definition at line 1077 of file class.ilDBPdo.php.
References listSequences().
Referenced by ilDBPdoMySQL\migrateAllTablesToEngine(), ilDBPdoMySQL\migrateTableToEngine(), and renameTable().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::setCharset | ( | string | $charset | ) | 
| ilDBPdo::setDBHost | ( | string | $host | ) | 
Implements ilDBInterface.
Definition at line 958 of file class.ilDBPdo.php.
References setHost().
 Here is the call graph for this function:| ilDBPdo::setDbname | ( | string | $dbname | ) | 
Definition at line 898 of file class.ilDBPdo.php.
References $dbname.
Referenced by createDatabase(), and initFromIniFile().
 Here is the caller graph for this function:| ilDBPdo::setDBPassword | ( | string | $password | ) | 
Implements ilDBInterface.
Definition at line 953 of file class.ilDBPdo.php.
References setPassword().
 Here is the call graph for this function:| ilDBPdo::setDBPort | ( | int | $port | ) | 
Implements ilDBInterface.
Definition at line 948 of file class.ilDBPdo.php.
References setPort().
 Here is the call graph for this function:| ilDBPdo::setDBType | ( | string | $type | ) | 
Definition at line 726 of file class.ilDBPdo.php.
References $DIC, $ilDB, and ilDBInterface\getReservedWords().
Referenced by initFromIniFile().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::setDBUser | ( | string | $user | ) | 
Implements ilDBInterface.
Definition at line 943 of file class.ilDBPdo.php.
References setUsername().
 Here is the call graph for this function:| ilDBPdo::setFieldDefinition | ( | \ilDBPdoFieldDefinition | $field_definition | ) | 
| ilDBPdo::setHost | ( | string | $host | ) | 
Definition at line 888 of file class.ilDBPdo.php.
References $host.
Referenced by initFromIniFile(), and setDBHost().
 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 822 of file class.ilDBPdo.php.
References $limit, and $offset.
| ilDBPdo::setPassword | ( | string | $password | ) | 
Definition at line 928 of file class.ilDBPdo.php.
References $password.
Referenced by initFromIniFile(), and setDBPassword().
 Here is the caller graph for this function:| ilDBPdo::setPort | ( | int | $port | ) | 
Definition at line 938 of file class.ilDBPdo.php.
References $port.
Referenced by initFromIniFile(), and setDBPort().
 Here is the caller graph for this function:| ilDBPdo::setStorageEngine | ( | string | $storage_engine | ) | 
Implements ilDBInterface.
Definition at line 1246 of file class.ilDBPdo.php.
References $storage_engine.
| ilDBPdo::setUsername | ( | string | $username | ) | 
Definition at line 918 of file class.ilDBPdo.php.
References $username.
Referenced by initFromIniFile(), and setDBUser().
 Here is the caller graph for this function:| ilDBPdo::substr | ( | string | $a_exp, | 
| int | $a_pos = 1,  | 
        ||
| int | $a_len = -1  | 
        ||
| ) | 
Definition at line 979 of file class.ilDBPdo.php.
| ilDBPdo::supports | ( | string | $feature | ) | 
Implements ilDBInterface.
Definition at line 1033 of file class.ilDBPdo.php.
References supportsFulltext(), supportsSlave(), and supportsTransactions().
Referenced by beginTransaction(), commit(), and rollback().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBPdo::supportsCollationMigration | ( | ) | 
Implements ilDBPdoInterface.
Definition at line 1324 of file class.ilDBPdo.php.
| ilDBPdo::supportsEngineMigration | ( | ) | 
Implements ilDBPdoInterface.
Definition at line 1329 of file class.ilDBPdo.php.
| ilDBPdo::supportsFulltext | ( | ) | 
Implements ilDBInterface.
Definition at line 1023 of file class.ilDBPdo.php.
Referenced by addIndex(), and supports().
 Here is the caller graph for this function:| ilDBPdo::supportsSlave | ( | ) | 
Implements ilDBInterface.
Definition at line 1018 of file class.ilDBPdo.php.
Referenced by supports().
 Here is the caller graph for this function:| ilDBPdo::supportsTransactions | ( | ) | 
Implements ilDBInterface.
Definition at line 1028 of file class.ilDBPdo.php.
Referenced by supports().
 Here is the caller graph for this function:| ilDBPdo::tableColumnExists | ( | string | $table_name, | 
| string | $column_name | ||
| ) | 
Implements ilDBInterface.
Definition at line 295 of file class.ilDBPdo.php.
References loadModule(), and ilDBConstants\MODULE_MANAGER.
 Here is the call graph for this function:| ilDBPdo::tableExists | ( | string | $table_name | ) | 
Implements ilDBInterface.
Definition at line 285 of file class.ilDBPdo.php.
| ilDBPdo::uniqueConstraintExists | ( | string | $table, | 
| array | $fields | ||
| ) | 
Implements ilDBPdoInterface.
Definition at line 1407 of file class.ilDBPdo.php.
References Vendor\Package\$c, and Vendor\Package\$f.
| ilDBPdo::unixTimestamp | ( | ) | 
Implements ilDBPdoInterface.
Definition at line 1446 of file class.ilDBPdo.php.
| ilDBPdo::unlockTables | ( | ) | 
| ilDBPdo::update | ( | string | $table_name, | 
| array | $values, | ||
| array | $where | ||
| ) | 
$where MUST contain existing columns only.
statements like [1 => ['integer', 1]] will not work, use a full query and
Implements ilDBInterface.
Definition at line 470 of file class.ilDBPdo.php.
References $q, $r, ilDBInterface\execute(), free(), ILIAS\Repository\int(), manipulateF(), prepareManip(), quote(), quoteIdentifier(), and sanitizeMB4StringIfNotSupported().
 Here is the call graph for this function:| ilDBPdo::upper | ( | string | $expression | ) | 
| ilDBPdo::useSlave | ( | bool | $bool | ) | 
      
  | 
  protected | 
Definition at line 51 of file class.ilDBPdo.php.
Referenced by getAttributes().
      
  | 
  protected | 
Definition at line 37 of file class.ilDBPdo.php.
Referenced by generateDSN(), getCharset(), and setCharset().
      
  | 
  protected | 
Definition at line 55 of file class.ilDBPdo.php.
Referenced by getDBType().
      
  | 
  protected | 
Definition at line 36 of file class.ilDBPdo.php.
Referenced by getDbname(), and setDbname().
      
  | 
  protected | 
Definition at line 47 of file class.ilDBPdo.php.
Referenced by getDSN().
      
  | 
  protected | 
Definition at line 56 of file class.ilDBPdo.php.
Referenced by getLastErrorCode().
      
  | 
  protected | 
Definition at line 57 of file class.ilDBPdo.php.
Referenced by getFieldDefinition(), modifyTableColumn(), and setFieldDefinition().
      
  | 
  protected | 
Definition at line 35 of file class.ilDBPdo.php.
      
  | 
  protected | 
Definition at line 44 of file class.ilDBPdo.php.
Referenced by appendLimit(), and setLimit().
      
  | 
  protected | 
Definition at line 42 of file class.ilDBPdo.php.
Referenced by addUniqueConstraint(), loadModule(), and ilDBPdoMySQL\migrateAllTablesToCollation().
      
  | 
  protected | 
Definition at line 45 of file class.ilDBPdo.php.
Referenced by setLimit().
| array ilDBPdo::$options = [] | 
Definition at line 31 of file class.ilDBPdo.php.
Referenced by getAttributes().
      
  | 
  protected | 
Definition at line 39 of file class.ilDBPdo.php.
Referenced by getPassword(), and setPassword().
      
  | 
  protected | 
Definition at line 41 of file class.ilDBPdo.php.
      
  | 
  protected | 
Definition at line 40 of file class.ilDBPdo.php.
      
  | 
  protected | 
Definition at line 43 of file class.ilDBPdo.php.
Referenced by loadModule().
      
  | 
  protected | 
Definition at line 46 of file class.ilDBPdo.php.
Referenced by getStorageEngine(), and setStorageEngine().
      
  | 
  protected | 
Definition at line 38 of file class.ilDBPdo.php.
Referenced by getUsername(), and setUsername().
| const ilDBPdo::FEATURE_FULLTEXT = 'fulltext' | 
Definition at line 33 of file class.ilDBPdo.php.
| const ilDBPdo::FEATURE_SLAVE = 'slave' | 
Definition at line 34 of file class.ilDBPdo.php.
| const ilDBPdo::FEATURE_TRANSACTIONS = 'transactions' | 
Definition at line 32 of file class.ilDBPdo.php.