|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for ilDBPdo:
Collaboration diagram for ilDBPdo:Public Member Functions | ||||||||||
| connect ($return_false_for_error=false) | ||||||||||
| initHelpers () | ||||||||||
| getFieldDefinition () | ||||||||||
| setFieldDefinition ($field_definition) | ||||||||||
| createDatabase ($a_name, $a_charset="utf8", $a_collation="") | ||||||||||
| getLastErrorCode () | ||||||||||
| initFromIniFile ($tmpClientIniFile=null) | ||||||||||
| generateDSN () | ||||||||||
| quoteIdentifier ($identifier, $check_option=false) | ||||||||||
| nextId ($table_name) | ||||||||||
| createTable ($table_name, $fields, $drop_table=false, $ignore_erros=false) | ||||||||||
| checkColumnName ($a_name) | ||||||||||
| addPrimaryKey ($table_name, $primary_keys) | ||||||||||
| dropIndexByFields ($table_name, $fields) | ||||||||||
| getPrimaryKeyIdentifier () | ||||||||||
| createSequence ($table_name, $start=1) | ||||||||||
| tableExists ($table_name) | ||||||||||
| tableColumnExists ($table_name, $column_name) | ||||||||||
| addTableColumn ($table_name, $column_name, $attributes) | ||||||||||
| dropTable ($table_name, $error_if_not_existing=true) | ||||||||||
| query ($query) | ||||||||||
| dropSequence ($table_name) | ||||||||||
| dropTableColumn ($table_name, $column_name) | ||||||||||
| renameTableColumn ($table_name, $column_old_name, $column_new_name) | ||||||||||
| insert ($table_name, $values) | ||||||||||
| fetchObject ($query_result) | ||||||||||
| update ($table_name, $columns, $where) | ||||||||||
| manipulate ($query) | ||||||||||
| fetchAssoc ($query_result) | ||||||||||
| numRows ($query_result) | ||||||||||
| quote ($value, $type=null) | ||||||||||
| indexExistsByFields ($table_name, $fields) | ||||||||||
| addIndex ($table_name, $fields, $index_name='', $fulltext=false) | ||||||||||
| addFulltextIndex ($a_table, $a_fields, $a_name="in") | ||||||||||
| dropFulltextIndex ($a_table, $a_name) | ||||||||||
| Drop fulltext index. More... | ||||||||||
| isFulltextIndex ($a_table, $a_name) | ||||||||||
| Is index a fulltext index? More... | ||||||||||
| getIndexName ($index_name_base) | ||||||||||
| getSequenceName ($table_name) | ||||||||||
| constraintName ($a_table, $a_constraint) | ||||||||||
| Determine contraint name by table name and constraint name. More... | ||||||||||
| getDSN () | ||||||||||
| getDBType () | ||||||||||
| setDBType ($type) | ||||||||||
| lockTables ($tables) | ||||||||||
| unlockTables () | ||||||||||
| in ($field, $values, $negate=false, $type="") | ||||||||||
| queryF ($query, $types, $values) | ||||||||||
| manipulateF ($query, $types, $values) | ||||||||||
| useSlave ($bool) | ||||||||||
| setLimit ($limit, $offset=0) | ||||||||||
| Set the Limit for the next Query. More... | ||||||||||
| like ($column, $type, $value="?", $case_insensitive=true) | ||||||||||
| now () | ||||||||||
| replace ($table, $primaryKeys, $otherColumns) | ||||||||||
| Replace into method. More... | ||||||||||
| equals ($columns, $value, $type, $emptyOrNull=false) | ||||||||||
| getHost () | ||||||||||
| setHost ($host) | ||||||||||
| getDbname () | ||||||||||
| setDbname ($dbname) | ||||||||||
| getCharset () | ||||||||||
| setCharset ($charset) | ||||||||||
| getUsername () | ||||||||||
| setUsername ($username) | ||||||||||
| getPassword () | ||||||||||
| setPassword ($password) | ||||||||||
| getPort () | ||||||||||
| setPort ($port) | ||||||||||
| setDBUser ($user) | ||||||||||
| setDBPort ($port) | ||||||||||
| setDBPassword ($password) | ||||||||||
| setDBHost ($host) | ||||||||||
| upper ($a_exp) | ||||||||||
| lower ($a_exp) | ||||||||||
| substr ($a_exp, $a_pos=1, $a_len=-1) | ||||||||||
| prepareManip ($query, $types=null) | ||||||||||
| prepare ($query, $types=null, $result_types=null) | ||||||||||
| enableResultBuffering ($a_status) | ||||||||||
| supportsSlave () | ||||||||||
| supportsFulltext () | ||||||||||
| supportsTransactions () | ||||||||||
| supports ($feature) | ||||||||||
| listTables () | ||||||||||
| loadModule ($module) | ||||||||||
| getAllowedAttributes () | ||||||||||
| ||||||||||
| sequenceExists ($sequence) | ||||||||||
| listSequences () | ||||||||||
| concat (array $values, $allow_null=true) | ||||||||||
| locate ($a_needle, $a_string, $a_start_pos=1) | ||||||||||
| modifyTableColumn ($table, $a_column, $a_attributes) | ||||||||||
| renameTable ($a_name, $a_new_name) | ||||||||||
| checkTableName ($a_name) | ||||||||||
| beginTransaction () | ||||||||||
| commit () | ||||||||||
| rollback () | ||||||||||
| dropIndex ($a_table, $a_name="i1") | ||||||||||
| setStorageEngine ($storage_engine) | ||||||||||
| getStorageEngine () | ||||||||||
| queryCol ($query, $type=PDO::FETCH_ASSOC, $colnum=0) | ||||||||||
| queryRow ($query, $types=null, $fetchmode=ilDBConstants::FETCHMODE_DEFAULT) | ||||||||||
| getServerVersion ($native=false) | ||||||||||
| escape ($value, $escape_wildcards=false) | ||||||||||
| escapePattern ($text) | ||||||||||
| migrateAllTablesToEngine ($engine=ilDBConstants::MYSQL_ENGINE_INNODB) | ||||||||||
| migrateAllTablesToCollation ($collation=ilDBConstants::MYSQL_COLLATION_UTF8MB4) | ||||||||||
| @inheritDoc More... | ||||||||||
| supportsCollationMigration () | ||||||||||
| @inheritDoc More... | ||||||||||
| supportsEngineMigration () | ||||||||||
| checkIndexName ($name) | ||||||||||
| addUniqueConstraint ($table, $fields, $name="con") | ||||||||||
| dropUniqueConstraint ($a_table, $a_name="con") | ||||||||||
| dropUniqueConstraintByFields ($a_table, $a_fields) | ||||||||||
| getLastInsertId () | ||||||||||
| buildAtomQuery () | ||||||||||
| uniqueConstraintExists ($table, array $fields) | ||||||||||
| dropPrimaryKey ($table_name) | ||||||||||
| executeMultiple ($stmt, $a_data) | ||||||||||
| fromUnixtime ($a_expr, $a_to_text=true) | ||||||||||
| unixTimestamp () | ||||||||||
| autoExecute ($tablename, $fields, $mode=ilDBConstants::AUTOQUERY_INSERT, $where=false) | ||||||||||
| Generate an insert, update or delete query and call prepare() and execute() on it. More... | ||||||||||
| getDBVersion () | ||||||||||
| sanitizeMB4StringIfNotSupported ($query) | ||||||||||
| ||||||||||
| doesCollationSupportMB4Strings () | ||||||||||
| @inheritDoc More... | ||||||||||
| groupConcat ($a_field_name, $a_seperator=",", $a_order=null) | ||||||||||
| ||||||||||
| cast ($a_field_name, $a_dest_type) | ||||||||||
| ||||||||||
Public Member Functions inherited from ilDBInterface | ||||||||||
| doesCollationSupportMB4Strings () | ||||||||||
| sanitizeMB4StringIfNotSupported ($query) | ||||||||||
| initFromIniFile ($tmpClientIniFile=null) | ||||||||||
| connect ($return_false_on_error=false) | ||||||||||
| nextId ($table_name) | ||||||||||
| createTable ($table_name, $fields, $drop_table=false, $ignore_erros=false) | ||||||||||
| addPrimaryKey ($table_name, $primary_keys) | ||||||||||
| createSequence ($table_name, $start=1) | ||||||||||
| getSequenceName ($table_name) | ||||||||||
| tableExists ($table_name) | ||||||||||
| tableColumnExists ($table_name, $column_name) | ||||||||||
| addTableColumn ($table_name, $column_name, $attributes) | ||||||||||
| dropTable ($table_name, $error_if_not_existing=true) | ||||||||||
| renameTable ($old_name, $new_name) | ||||||||||
| query ($query) | ||||||||||
| Run a (read-only) Query on the database. More... | ||||||||||
| fetchAll ($query_result, $fetch_mode=ilDBConstants::FETCHMODE_ASSOC) | ||||||||||
| dropSequence ($table_name) | ||||||||||
| dropTableColumn ($table_name, $column_name) | ||||||||||
| renameTableColumn ($table_name, $column_old_name, $column_new_name) | ||||||||||
| insert ($table_name, $values) | ||||||||||
| fetchObject ($query_result) | ||||||||||
| update ($table_name, $values, $where) | ||||||||||
| manipulate ($query) | ||||||||||
| Run a (write) Query on the database. More... | ||||||||||
| fetchAssoc ($query_result) | ||||||||||
| numRows ($query_result) | ||||||||||
| quote ($value, $type) | ||||||||||
| addIndex ($table_name, $fields, $index_name='', $fulltext=false) | ||||||||||
| indexExistsByFields ($table_name, $fields) | ||||||||||
| getDSN () | ||||||||||
| Get DSN. More... | ||||||||||
| getDBType () | ||||||||||
| Get DSN. More... | ||||||||||
| lockTables ($tables) | ||||||||||
| Abstraction of lock table. More... | ||||||||||
| unlockTables () | ||||||||||
| Unlock tables locked by previous lock table calls. More... | ||||||||||
| in ($field, $values, $negate=false, $type="") | ||||||||||
| queryF ($query, $types, $values) | ||||||||||
| manipulateF ($query, $types, $values) | ||||||||||
| useSlave ($bool) | ||||||||||
| Return false iff slave is not supported. More... | ||||||||||
| setLimit ($limit, $offset) | ||||||||||
| like ($column, $type, $value="?", $case_insensitive=true) | ||||||||||
| Generate a like subquery. More... | ||||||||||
| now () | ||||||||||
| replace ($table, $primaryKeys, $otherColumns) | ||||||||||
| Replace into method. More... | ||||||||||
| equals ($columns, $value, $type, $emptyOrNull=false) | ||||||||||
| setDBUser ($user) | ||||||||||
| setDBPort ($port) | ||||||||||
| setDBPassword ($password) | ||||||||||
| setDBHost ($host) | ||||||||||
| upper ($a_exp) | ||||||||||
| lower ($a_exp) | ||||||||||
| substr ($a_exp) | ||||||||||
| prepare ($a_query, $a_types=null, $a_result_types=null) | ||||||||||
| Prepare a query (SELECT) statement to be used with execute. More... | ||||||||||
| prepareManip ($a_query, $a_types=null) | ||||||||||
| enableResultBuffering ($a_status) | ||||||||||
| execute ($stmt, $data=array()) | ||||||||||
| sequenceExists ($sequence) | ||||||||||
| listSequences () | ||||||||||
| supports ($feature) | ||||||||||
| supportsFulltext () | ||||||||||
| supportsSlave () | ||||||||||
| supportsTransactions () | ||||||||||
| listTables () | ||||||||||
| loadModule ($module) | ||||||||||
| getAllowedAttributes () | ||||||||||
| concat (array $values, $allow_null=true) | ||||||||||
| locate ($a_needle, $a_string, $a_start_pos=1) | ||||||||||
| quoteIdentifier ($identifier, $check_option=false) | ||||||||||
| modifyTableColumn ($table, $column, $attributes) | ||||||||||
| free ($a_st) | ||||||||||
| checkTableName ($a_name) | ||||||||||
| beginTransaction () | ||||||||||
| commit () | ||||||||||
| rollback () | ||||||||||
| constraintName ($a_table, $a_constraint) | ||||||||||
| dropIndex ($a_table, $a_name="i1") | ||||||||||
| createDatabase ($a_name, $a_charset="utf8", $a_collation="") | ||||||||||
| dropIndexByFields ($table_name, $afields) | ||||||||||
| getPrimaryKeyIdentifier () | ||||||||||
| addFulltextIndex ($table_name, $afields, $a_name='in') | ||||||||||
| dropFulltextIndex ($a_table, $a_name) | ||||||||||
| isFulltextIndex ($a_table, $a_name) | ||||||||||
| setStorageEngine ($storage_engine) | ||||||||||
| getStorageEngine () | ||||||||||
| buildAtomQuery () | ||||||||||
| groupConcat ($a_field_name, $a_seperator=",", $a_order=null) | ||||||||||
| cast ($a_field_name, $a_dest_type) | ||||||||||
| getServerVersion ($native=false) | ||||||||||
| queryCol ($query, $type=ilDBConstants::FETCHMODE_DEFAULT, $colnum=0) | ||||||||||
| queryRow ($query, $types=null, $fetchmode=ilDBConstants::FETCHMODE_DEFAULT) | ||||||||||
| escape ($value, $escape_wildcards=false) | ||||||||||
| escapePattern ($text) | ||||||||||
| migrateAllTablesToEngine ($engine=ilDBConstants::MYSQL_ENGINE_INNODB) | ||||||||||
| supportsEngineMigration () | ||||||||||
| migrateAllTablesToCollation ($collation=ilDBConstants::MYSQL_COLLATION_UTF8MB4) | ||||||||||
| supportsCollationMigration () | ||||||||||
| addUniqueConstraint ($table, $fields, $name="con") | ||||||||||
| dropUniqueConstraint ($table, $name="con") | ||||||||||
| dropUniqueConstraintByFields ($table, $fields) | ||||||||||
| checkIndexName ($name) | ||||||||||
| getLastInsertId () | ||||||||||
| prepare ($query, $types=null, $result_types=null) | ||||||||||
| uniqueConstraintExists ($table, array $fields) | ||||||||||
| dropPrimaryKey ($table_name) | ||||||||||
| executeMultiple ($stmt, $data) | ||||||||||
| fromUnixtime ($expr, $to_text=true) | ||||||||||
| unixTimestamp () | ||||||||||
| autoExecute ($tablename, $fields, $mode=ilDBConstants::AUTOQUERY_INSERT, $where=false) | ||||||||||
| Generate an insert, update or delete query and call prepare() and execute() on it. More... | ||||||||||
| getDBVersion () | ||||||||||
| returns the Version of the Database (e.g. More... | ||||||||||
Static Public Member Functions | |
| static | isReservedWord ($a_word) |
Static Public Member Functions inherited from ilDBInterface | |
| static | getReservedWords () |
| Get reserved words. More... | |
| static | isReservedWord ($a_word) |
Data Fields | |
| const | FEATURE_TRANSACTIONS = 'transactions' |
| const | FEATURE_FULLTEXT = 'fulltext' |
| const | FEATURE_SLAVE = 'slave' |
Protected Member Functions | |
| initSQLMode () | |
| getAttributes () | |
| getAdditionalAttributes () | |
| checkTableColumns ($a_cols) | |
| checkColumn ($a_col, $a_def) | |
| checkColumnDefinition ($a_def, $a_modify_mode=false) | |
| appendLimit ($query) | |
| autoPrepare ($table, $table_fields, $mode=ilDBConstants::AUTOQUERY_INSERT, $where=false, $types=null, $result_types=ilDBConstants::PREPARE_MANIP) | |
| buildManipSQL ($table, $table_fields, $mode, $where=false) | |
Protected Attributes | |
| $host = '' | |
| $dbname = '' | |
| $charset = 'utf8' | |
| $username = '' | |
| $password = '' | |
| $port = 3306 | |
| $pdo | |
| $manager | |
| $reverse | |
| $limit = null | |
| $offset = null | |
| $storage_engine = 'MyISAM' | |
| $dsn = '' | |
| $attributes | |
| $db_type = '' | |
| $error_code = 0 | |
| $field_definition | |
Class pdoDB.
Definition at line 10 of file class.ilDBPdo.php.
| ilDBPdo::addFulltextIndex | ( | $a_table, | |
| $a_fields, | |||
$a_name = "in" |
|||
| ) |
| $a_table | ||
| $a_fields | ||
| string | $a_name |
Implements ilDBInterface.
Reimplemented in ilDBPdoMySQLInnoDB.
Definition at line 907 of file class.ilDBPdo.php.
References constraintName(), and query().
Referenced by addIndex().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdo::addIndex | ( | $table_name, | |
| $fields, | |||
$index_name = '', |
|||
$fulltext = false |
|||
| ) |
| $table_name | ||
| array | $fields | |
| $index_name |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 875 of file class.ilDBPdo.php.
References $f, addFulltextIndex(), constraintName(), and supportsFulltext().
Here is the call graph for this function:| ilDBPdo::addPrimaryKey | ( | $table_name, | |
| $primary_keys | |||
| ) |
| string | $table_name | |
| array | $primary_keys |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 366 of file class.ilDBPdo.php.
References $f, constraintName(), and getPrimaryKeyIdentifier().
Here is the call graph for this function:| ilDBPdo::addTableColumn | ( | $table_name, | |
| $column_name, | |||
| $attributes | |||
| ) |
| string | $table_name | |
| string | $column_name | |
| array | $attributes |
Implements ilDBInterface.
Definition at line 463 of file class.ilDBPdo.php.
References $attributes, checkColumnDefinition(), and checkColumnName().
Here is the call graph for this function:| ilDBPdo::addUniqueConstraint | ( | $table, | |
| $fields, | |||
$name = "con" |
|||
| ) |
| $table | ||
| $fields | ||
| string | $name |
Implements ilDBPdoInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 1897 of file class.ilDBPdo.php.
References $f, $manager, $name, $table, checkIndexName(), and constraintName().
Here is the call graph for this function:
|
protected |
| $query |
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 1552 of file class.ilDBPdo.php.
References $limit, and $query.
Referenced by query().
Here is the caller graph for this function:| ilDBPdo::autoExecute | ( | $tablename, | |
| $fields, | |||
$mode = ilDBConstants::AUTOQUERY_INSERT, |
|||
$where = false |
|||
| ) |
Generate an insert, update or delete query and call prepare() and execute() on it.
| string | $tablename | of the table |
| array | $fields | ($key=>$value) where $key is a field name and $value its value |
| int | $mode | of query to build ilDBConstants::AUTOQUERY_INSERT ilDBConstants::AUTOQUERY_UPDATE ilDBConstants::AUTOQUERY_DELETE ilDBConstants::AUTOQUERY_SELECT |
| bool | $where | (in case of update and delete queries, this string will be put after the sql WHERE statement) |
Implements ilDBPdoInterface.
Definition at line 2063 of file class.ilDBPdo.php.
References $keys, PHPMailer\PHPMailer\$params, $query, $result, $stmt, autoPrepare(), ilDBConstants\AUTOQUERY_INSERT, buildManipSQL(), ilDBInterface\execute(), and ilDBInterface\free().
Here is the call graph for this function:
|
protected |
| $table | ||
| $table_fields | ||
| int | $mode | |
| bool | $where | |
| null | $types | |
| bool | $result_types |
Definition at line 2099 of file class.ilDBPdo.php.
References $query, $table, buildManipSQL(), and prepare().
Referenced by autoExecute().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdo::beginTransaction | ( | ) |
Implements ilDBInterface.
Definition at line 1696 of file class.ilDBPdo.php.
References supports().
Referenced by ilDBPdoPostgreSQL\lockTables().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdo::buildAtomQuery | ( | ) |
Implements ilDBInterface.
Reimplemented in ilDBPdoMySQLGalera.
Definition at line 1970 of file class.ilDBPdo.php.
|
protected |
| $table | ||
| $table_fields | ||
| $mode | ||
| bool | $where |
Definition at line 2115 of file class.ilDBPdo.php.
References $cols, $key, $table, $values, ilDBConstants\AUTOQUERY_DELETE, ilDBConstants\AUTOQUERY_INSERT, ilDBConstants\AUTOQUERY_SELECT, ilDBConstants\AUTOQUERY_UPDATE, and quoteIdentifier().
Referenced by autoExecute(), and autoPrepare().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdo::cast | ( | $a_field_name, | |
| $a_dest_type | |||
| ) |
| string | $a_field_name | |
| string | $a_dest_type |
Implements ilDBInterface.
Definition at line 2221 of file class.ilDBPdo.php.
|
protected |
| $a_col | |
| $a_def |
Definition at line 325 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 |
| $a_def | ||
| bool | $a_modify_mode |
Definition at line 344 of file class.ilDBPdo.php.
Referenced by addTableColumn(), checkColumn(), and modifyTableColumn().
Here is the caller graph for this function:| ilDBPdo::checkColumnName | ( | $a_name | ) |
| $a_name |
Definition at line 354 of file class.ilDBPdo.php.
Referenced by addTableColumn(), checkColumn(), and renameTableColumn().
Here is the caller graph for this function:| ilDBPdo::checkIndexName | ( | $name | ) |
| $name |
Implements ilDBPdoInterface.
Definition at line 1884 of file class.ilDBPdo.php.
References $name, and getFieldDefinition().
Referenced by addUniqueConstraint().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $a_cols |
Definition at line 308 of file class.ilDBPdo.php.
References $def, and checkColumn().
Referenced by createTable().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdo::checkTableName | ( | $a_name | ) |
| $a_name |
Implements ilDBInterface.
Definition at line 1672 of file class.ilDBPdo.php.
Referenced by createTable(), renameTable(), and ilDBPdoPostgreSQL\renameTable().
Here is the caller graph for this function:| ilDBPdo::commit | ( | ) |
Implements ilDBInterface.
Definition at line 1710 of file class.ilDBPdo.php.
References supports().
Referenced by ilDBPdoPostgreSQL\unlockTables().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdo::concat | ( | array | $values, |
$allow_null = true |
|||
| ) |
| array | $values | |
| bool | $allow_null |
Implements ilDBInterface.
Definition at line 1542 of file class.ilDBPdo.php.
References $values.
| ilDBPdo::connect | ( | $return_false_for_error = false | ) |
| bool | $return_false_for_error |
Exception
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 93 of file class.ilDBPdo.php.
References PHPMailer\PHPMailer\$options, 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 | ( | $a_table, | |
| $a_constraint | |||
| ) |
Determine contraint name by table name and constraint name.
In MySQL these are "unique" per table
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 966 of file class.ilDBPdo.php.
Referenced by addFulltextIndex(), addIndex(), addPrimaryKey(), addUniqueConstraint(), dropFulltextIndex(), and dropUniqueConstraint().
Here is the caller graph for this function:| ilDBPdo::createDatabase | ( | $a_name, | |
$a_charset = "utf8", |
|||
$a_collation = "" |
|||
| ) |
| $a_name | ||
| string | $a_charset | |
| string | $a_collation |
Implements ilDBInterface.
Definition at line 169 of file class.ilDBPdo.php.
References connect(), generateDSN(), query(), and setDbname().
Here is the call graph for this function:| ilDBPdo::createSequence | ( | $table_name, | |
$start = 1 |
|||
| ) |
| $table_name | ||
| int | $start |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 418 of file class.ilDBPdo.php.
References $start.
| ilDBPdo::createTable | ( | $table_name, | |
| $fields, | |||
$drop_table = false, |
|||
$ignore_erros = false |
|||
| ) |
| $table_name | ||
| $fields | ||
| bool | $drop_table | |
| bool | $ignore_erros |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 284 of file class.ilDBPdo.php.
References checkTableColumns(), checkTableName(), and dropTable().
Here is the call graph for this function:| ilDBPdo::doesCollationSupportMB4Strings | ( | ) |
@inheritDoc
Implements ilDBInterface.
Reimplemented in ilDBPdoMySQL.
Definition at line 2204 of file class.ilDBPdo.php.
Referenced by sanitizeMB4StringIfNotSupported().
Here is the caller graph for this function:| ilDBPdo::dropFulltextIndex | ( | $a_table, | |
| $a_name | |||
| ) |
Drop fulltext index.
Implements ilDBInterface.
Definition at line 919 of file class.ilDBPdo.php.
References constraintName(), and query().
Here is the call graph for this function:| ilDBPdo::dropIndex | ( | $a_table, | |
$a_name = "i1" |
|||
| ) |
| $a_table | ||
| string | $a_name |
Implements ilDBInterface.
Definition at line 1739 of file class.ilDBPdo.php.
Referenced by dropIndexByFields().
Here is the caller graph for this function:| ilDBPdo::dropIndexByFields | ( | $table_name, | |
| $fields | |||
| ) |
| $table_name | |
| $fields |
Implements ilDBInterface.
Definition at line 390 of file class.ilDBPdo.php.
References $def, and dropIndex().
Here is the call graph for this function:| ilDBPdo::dropPrimaryKey | ( | $table_name | ) |
| $table_name |
Implements ilDBPdoInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 2010 of file class.ilDBPdo.php.
| ilDBPdo::dropSequence | ( | $table_name | ) |
| $table_name | string |
Implements ilDBInterface.
Definition at line 570 of file class.ilDBPdo.php.
| ilDBPdo::dropTable | ( | $table_name, | |
$error_if_not_existing = true |
|||
| ) |
| $table_name | ||
| bool | $error_if_not_existing |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 488 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 | ( | $table_name, | |
| $column_name | |||
| ) |
| string | $table_name | |
| string | $column_name |
Implements ilDBInterface.
Definition at line 582 of file class.ilDBPdo.php.
| ilDBPdo::dropUniqueConstraint | ( | $a_table, | |
$a_name = "con" |
|||
| ) |
| $a_table | ||
| string | $a_name |
Implements ilDBPdoInterface.
Definition at line 1925 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 | ( | $a_table, | |
| $a_fields | |||
| ) |
| $a_table | |
| $a_fields |
Implements ilDBPdoInterface.
Definition at line 1936 of file class.ilDBPdo.php.
References $c, $f, and dropUniqueConstraint().
Here is the call graph for this function:| ilDBPdo::enableResultBuffering | ( | $a_status | ) |
| $a_status |
Implements ilDBInterface.
Definition at line 1414 of file class.ilDBPdo.php.
| ilDBPdo::equals | ( | $columns, | |
| $value, | |||
| $type, | |||
$emptyOrNull = false |
|||
| ) |
| $columns | ||
| $value | ||
| $type | ||
| bool | $emptyOrNull |
Implements ilDBInterface.
Definition at line 1197 of file class.ilDBPdo.php.
References $columns, $type, and quote().
Here is the call graph for this function:| ilDBPdo::escape | ( | $value, | |
$escape_wildcards = false |
|||
| ) |
| $value | ||
| bool | $escape_wildcards |
Implements ilDBPdoInterface.
Definition at line 1826 of file class.ilDBPdo.php.
| ilDBPdo::escapePattern | ( | $text | ) |
| $text |
Implements ilDBPdoInterface.
Definition at line 1836 of file class.ilDBPdo.php.
References $text.
| ilDBPdo::executeMultiple | ( | $stmt, | |
| $a_data | |||
| ) |
| $stmt | |
| $a_data |
Implements ilDBPdoInterface.
Definition at line 2020 of file class.ilDBPdo.php.
| ilDBPdo::fetchAssoc | ( | $query_result | ) |
| $query_result | ilPDOStatement |
Implements ilDBInterface.
Definition at line 785 of file class.ilDBPdo.php.
References $res.
Referenced by isFulltextIndex().
Here is the caller graph for this function:| ilDBPdo::fetchObject | ( | $query_result | ) |
| $query_result | ilPDOStatement |
Implements ilDBInterface.
Definition at line 657 of file class.ilDBPdo.php.
References $res.
Referenced by getDBVersion().
Here is the caller graph for this function:| ilDBPdo::fromUnixtime | ( | $a_expr, | |
$a_to_text = true |
|||
| ) |
| $a_expr | ||
| bool | $a_to_text |
Implements ilDBPdoInterface.
Definition at line 2033 of file class.ilDBPdo.php.
| ilDBPdo::generateDSN | ( | ) |
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 224 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, and ilDBPdoPostgreSQL.
Definition at line 138 of file class.ilDBPdo.php.
Referenced by getAttributes().
Here is the caller graph for this function:| ilDBPdo::getAllowedAttributes | ( | ) |
Implements ilDBInterface.
Definition at line 1512 of file class.ilDBPdo.php.
|
protected |
Definition at line 124 of file class.ilDBPdo.php.
References $attributes, PHPMailer\PHPMailer\$options, and getAdditionalAttributes().
Referenced by connect(), and ilDBPdoPostgreSQL\connect().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdo::getCharset | ( | ) |
Definition at line 1246 of file class.ilDBPdo.php.
References $charset.
Referenced by generateDSN().
Here is the caller graph for this function:| ilDBPdo::getDbname | ( | ) |
Definition at line 1228 of file class.ilDBPdo.php.
References $dbname.
Referenced by generateDSN(), and ilDBPdoPostgreSQL\generateDSN().
Here is the caller graph for this function:| ilDBPdo::getDBType | ( | ) |
Implements ilDBInterface.
Definition at line 984 of file class.ilDBPdo.php.
References $db_type.
| ilDBPdo::getDBVersion | ( | ) |
| ilDatabaseException |
Implements ilDBPdoInterface.
Definition at line 2174 of file class.ilDBPdo.php.
References $d, fetchObject(), and query().
Here is the call graph for this function:| ilDBPdo::getDSN | ( | ) |
Implements ilDBInterface.
Definition at line 975 of file class.ilDBPdo.php.
References $dsn.
Referenced by connect(), and ilDBPdoPostgreSQL\connect().
Here is the caller graph for this function:| ilDBPdo::getFieldDefinition | ( | ) |
Definition at line 147 of file class.ilDBPdo.php.
References $field_definition.
Referenced by checkIndexName().
Here is the caller graph for this function:| ilDBPdo::getHost | ( | ) |
Definition at line 1210 of file class.ilDBPdo.php.
References $host.
Referenced by generateDSN(), and ilDBPdoPostgreSQL\generateDSN().
Here is the caller graph for this function:| ilDBPdo::getIndexName | ( | $index_name_base | ) |
| $index_name_base |
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 946 of file class.ilDBPdo.php.
References ilDBPdoFieldDefinition\INDEX_FORMAT.
| ilDBPdo::getLastErrorCode | ( | ) |
Definition at line 185 of file class.ilDBPdo.php.
References $error_code.
| ilDBPdo::getLastInsertId | ( | ) |
Implements ilDBPdoInterface.
Definition at line 1961 of file class.ilDBPdo.php.
| ilDBPdo::getPassword | ( | ) |
Definition at line 1282 of file class.ilDBPdo.php.
References $password.
Referenced by connect(), ilDBPdoPostgreSQL\connect(), and ilDBPdoPostgreSQL\generateDSN().
Here is the caller graph for this function:| ilDBPdo::getPort | ( | ) |
Definition at line 1300 of file class.ilDBPdo.php.
References $port.
Referenced by generateDSN(), and ilDBPdoPostgreSQL\generateDSN().
Here is the caller graph for this function:| ilDBPdo::getPrimaryKeyIdentifier | ( | ) |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 408 of file class.ilDBPdo.php.
Referenced by addPrimaryKey().
Here is the caller graph for this function:| ilDBPdo::getSequenceName | ( | $table_name | ) |
| $table_name |
Implements ilDBInterface.
Definition at line 956 of file class.ilDBPdo.php.
References ilDBPdoFieldDefinition\SEQUENCE_FORMAT.
Referenced by ilDBPdoMySQL\nextId().
Here is the caller graph for this function:| ilDBPdo::getServerVersion | ( | $native = false | ) |
| bool | $native |
Implements ilDBPdoInterface.
Definition at line 1815 of file class.ilDBPdo.php.
| ilDBPdo::getStorageEngine | ( | ) |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 1757 of file class.ilDBPdo.php.
References $storage_engine.
| ilDBPdo::getUsername | ( | ) |
Definition at line 1264 of file class.ilDBPdo.php.
References $username.
Referenced by connect(), ilDBPdoPostgreSQL\connect(), and ilDBPdoPostgreSQL\generateDSN().
Here is the caller graph for this function:| ilDBPdo::groupConcat | ( | $a_field_name, | |
$a_seperator = ",", |
|||
$a_order = null |
|||
| ) |
| string | $a_field_name | |
| string | $a_seperator | |
| string | $a_order |
Implements ilDBInterface.
Definition at line 2213 of file class.ilDBPdo.php.
| ilDBPdo::in | ( | $field, | |
| $values, | |||
$negate = false, |
|||
$type = "" |
|||
| ) |
| $field | string | |
| $values | array | |
| bool | $negate | |
| string | $type |
Implements ilDBInterface.
Definition at line 1052 of file class.ilDBPdo.php.
| ilDBPdo::indexExistsByFields | ( | $table_name, | |
| $fields | |||
| ) |
| string | $table_name | |
| array | $fields |
Implements ilDBInterface.
Definition at line 854 of file class.ilDBPdo.php.
References $def.
| ilDBPdo::initFromIniFile | ( | $tmpClientIniFile = null | ) |
| null | $tmpClientIniFile |
Implements ilDBInterface.
Definition at line 198 of file class.ilDBPdo.php.
References $DIC, generateDSN(), setDbname(), setDBType(), setHost(), setPassword(), setPort(), and setUsername().
Here is the call graph for this function:
|
abstract |
Reimplemented in ilDBPdoMySQL, and ilDBPdoPostgreSQL.
Referenced by connect().
Here is the caller graph for this function:
|
protected |
Reimplemented in ilDBPdoMySQL.
Definition at line 116 of file class.ilDBPdo.php.
Referenced by connect().
Here is the caller graph for this function:| ilDBPdo::insert | ( | $table_name, | |
| $values | |||
| ) |
| $table_name | string |
| $values |
Implements ilDBInterface.
Definition at line 634 of file class.ilDBPdo.php.
References $key, $query, $values, quote(), quoteIdentifier(), and sanitizeMB4StringIfNotSupported().
Referenced by ilDBPdoPostgreSQL\replace().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdo::isFulltextIndex | ( | $a_table, | |
| $a_name | |||
| ) |
Is index a fulltext index?
Implements ilDBInterface.
Definition at line 929 of file class.ilDBPdo.php.
References fetchAssoc(), and query().
Here is the call graph for this function:
|
static |
| $a_word |
Implements ilDBInterface.
Definition at line 1682 of file class.ilDBPdo.php.
References $DIC.
| ilDBPdo::like | ( | $column, | |
| $type, | |||
$value = "?", |
|||
$case_insensitive = true |
|||
| ) |
| string | $column | |
| string | $type | |
| string | $value | |
| bool | $case_insensitive |
Implements ilDBInterface.
Definition at line 1135 of file class.ilDBPdo.php.
References $type.
| ilDBPdo::listSequences | ( | ) |
Implements ilDBInterface.
Definition at line 1531 of file class.ilDBPdo.php.
Referenced by sequenceExists().
Here is the caller graph for this function:| ilDBPdo::listTables | ( | ) |
Implements ilDBInterface.
Definition at line 1488 of file class.ilDBPdo.php.
Referenced by ilDBPdoMySQL\migrateAllTablesToEngine(), and ilDBPdoPostgreSQL\tableExists().
Here is the caller graph for this function:| ilDBPdo::loadModule | ( | $module | ) |
| $module |
Implements ilDBInterface.
Definition at line 1498 of file class.ilDBPdo.php.
References $manager, $module, $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 | ( | $a_needle, | |
| $a_string, | |||
$a_start_pos = 1 |
|||
| ) |
| $a_needle | ||
| $a_string | ||
| int | $a_start_pos |
Implements ilDBInterface.
Definition at line 1572 of file class.ilDBPdo.php.
| ilDBPdo::lockTables | ( | $tables | ) |
| array | $tables |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 1020 of file class.ilDBPdo.php.
References $DIC.
| ilDBPdo::lower | ( | $a_exp | ) |
| $a_exp |
Implements ilDBInterface.
Definition at line 1365 of file class.ilDBPdo.php.
| ilDBPdo::manipulate | ( | $query | ) |
| string | $query |
Implements ilDBInterface.
Definition at line 759 of file class.ilDBPdo.php.
References $DIC, $ilBench, $query, $r, and sanitizeMB4StringIfNotSupported().
Referenced by manipulateF(), and ilDBPdoPostgreSQL\replace().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdo::manipulateF | ( | $query, | |
| $types, | |||
| $values | |||
| ) |
| $query | string |
| $types | string[] |
| $values | mixed[] |
| ilDatabaseException |
Implements ilDBInterface.
Definition at line 1087 of file class.ilDBPdo.php.
References $query, $t, $values, 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 | ( | $collation = ilDBConstants::MYSQL_COLLATION_UTF8MB4 | ) |
@inheritDoc
Implements ilDBPdoInterface.
Reimplemented in ilDBPdoMySQL.
Definition at line 1855 of file class.ilDBPdo.php.
| ilDBPdo::migrateAllTablesToEngine | ( | $engine = ilDBConstants::MYSQL_ENGINE_INNODB | ) |
| string | $engine |
Implements ilDBPdoInterface.
Reimplemented in ilDBPdoMySQL.
Definition at line 1846 of file class.ilDBPdo.php.
| ilDBPdo::modifyTableColumn | ( | $table, | |
| $a_column, | |||
| $a_attributes | |||
| ) |
| $table | |
| $a_column | |
| $a_attributes |
Implements ilDBInterface.
Definition at line 1585 of file class.ilDBPdo.php.
References $def, $field_definition, $table, $type, and checkColumnDefinition().
Here is the call graph for this function:| ilDBPdo::nextId | ( | $table_name | ) |
| $table_name | string |
Implements ilDBInterface.
Reimplemented in ilDBPdoMySQL, and ilDBPdoPostgreSQL.
Definition at line 249 of file class.ilDBPdo.php.
References $rows, $stmt, and tableExists().
Here is the call graph for this function:| ilDBPdo::now | ( | ) |
Implements ilDBInterface.
Definition at line 1144 of file class.ilDBPdo.php.
| ilDBPdo::numRows | ( | $query_result | ) |
| $query_result | PDOStatement |
Implements ilDBInterface.
Definition at line 803 of file class.ilDBPdo.php.
| ilDBPdo::prepare | ( | $query, | |
$types = null, |
|||
$result_types = null |
|||
| ) |
| $query | ||
| null | $types | |
| null | $result_types |
Implements ilDBInterface.
Definition at line 1405 of file class.ilDBPdo.php.
References $query.
Referenced by autoPrepare().
Here is the caller graph for this function:| ilDBPdo::prepareManip | ( | $query, | |
$types = null |
|||
| ) |
| $query | ||
| null | $types |
Implements ilDBInterface.
Definition at line 1393 of file class.ilDBPdo.php.
References $query.
Referenced by update().
Here is the caller graph for this function:| ilDBPdo::query | ( | $query | ) |
| $query | string |
| ilDatabaseException |
Implements ilDBInterface.
Definition at line 518 of file class.ilDBPdo.php.
References $DIC, $ilBench, $info, $query, $res, and appendLimit().
Referenced by addFulltextIndex(), createDatabase(), dropFulltextIndex(), getDBVersion(), isFulltextIndex(), ilDBPdoPostgreSQL\lockTables(), ilDBPdoMySQL\nextId(), ilDBPdoPostgreSQL\nextId(), and queryF().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBPdo::queryCol | ( | $query, | |
$type = PDO::FETCH_ASSOC, |
|||
$colnum = 0 |
|||
| ) |
| $query | ||
| int | $type | |
| int | $colnum |
Implements ilDBPdoInterface.
Definition at line 1769 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 | ( | $query, | |
| $types, | |||
| $values | |||
| ) |
| string | $query | |
| \string[] | $types | |
| \mixed[] | $values |
Implements ilDBInterface.
Definition at line 1065 of file class.ilDBPdo.php.
References $query, $t, $values, query(), and quote().
Here is the call graph for this function:| ilDBPdo::queryRow | ( | $query, | |
$types = null, |
|||
$fetchmode = ilDBConstants::FETCHMODE_DEFAULT |
|||
| ) |
| $query | ||
| null | $types | |
| int | $fetchmode |
Implements ilDBPdoInterface.
Definition at line 1793 of file class.ilDBPdo.php.
References $query, $type, ilDBConstants\FETCHMODE_ASSOC, and ilDBConstants\FETCHMODE_OBJECT.
| ilDBPdo::quote | ( | $value, | |
$type = null |
|||
| ) |
| $value | |
| $type |
Implements ilDBInterface.
Definition at line 815 of file class.ilDBPdo.php.
References $type, 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(), ilDBPdoPostgreSQL\replace(), and update().
Here is the caller graph for this function:| ilDBPdo::quoteIdentifier | ( | $identifier, | |
$check_option = false |
|||
| ) |
| $identifier |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 238 of file class.ilDBPdo.php.
Referenced by buildManipSQL(), insert(), ilDBPdoMySQL\nextId(), and update().
Here is the caller graph for this function:| ilDBPdo::renameTable | ( | $a_name, | |
| $a_new_name | |||
| ) |
| $a_name | |
| $a_new_name |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 1647 of file class.ilDBPdo.php.
References checkTableName().
Here is the call graph for this function:| ilDBPdo::renameTableColumn | ( | $table_name, | |
| $column_old_name, | |||
| $column_new_name | |||
| ) |
| string | $table_name | |
| string | $column_old_name | |
| string | $column_new_name |
Implements ilDBInterface.
Definition at line 601 of file class.ilDBPdo.php.
References $def, $f, and checkColumnName().
Here is the call graph for this function:| ilDBPdo::replace | ( | $table, | |
| $primaryKeys, | |||
| $otherColumns | |||
| ) |
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.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 1158 of file class.ilDBPdo.php.
References $r, $table, $values, and manipulateF().
Here is the call graph for this function:| ilDBPdo::rollback | ( | ) |
Implements ilDBInterface.
Definition at line 1724 of file class.ilDBPdo.php.
References supports().
Here is the call graph for this function:| ilDBPdo::sanitizeMB4StringIfNotSupported | ( | $query | ) |
| $query | string to sanitize, all MB4-Characters like emojis will re replaced with ??? |
Implements ilDBInterface.
Definition at line 2185 of file class.ilDBPdo.php.
References $query, 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 | ( | $sequence | ) |
| $sequence |
Implements ilDBInterface.
Definition at line 1522 of file class.ilDBPdo.php.
References listSequences().
Here is the call graph for this function:| ilDBPdo::setCharset | ( | $charset | ) |
| ilDBPdo::setDBHost | ( | $host | ) |
| $host |
Implements ilDBInterface.
Definition at line 1345 of file class.ilDBPdo.php.
References $host, and setHost().
Here is the call graph for this function:| ilDBPdo::setDbname | ( | $dbname | ) |
| string | $dbname |
Definition at line 1237 of file class.ilDBPdo.php.
References $dbname.
Referenced by createDatabase(), and initFromIniFile().
Here is the caller graph for this function:| ilDBPdo::setDBPassword | ( | $password | ) |
| $password |
Implements ilDBInterface.
Definition at line 1336 of file class.ilDBPdo.php.
References $password, and setPassword().
Here is the call graph for this function:| ilDBPdo::setDBPort | ( | $port | ) |
| $port |
Implements ilDBInterface.
Definition at line 1327 of file class.ilDBPdo.php.
References $port, and setPort().
Here is the call graph for this function:| ilDBPdo::setDBType | ( | $type | ) |
| string | $type |
Definition at line 994 of file class.ilDBPdo.php.
References $type.
Referenced by initFromIniFile().
Here is the caller graph for this function:| ilDBPdo::setDBUser | ( | $user | ) |
| $user |
Implements ilDBInterface.
Definition at line 1318 of file class.ilDBPdo.php.
References $user, and setUsername().
Here is the call graph for this function:| ilDBPdo::setFieldDefinition | ( | $field_definition | ) |
| ilDBPdoFieldDefinition | $field_definition |
Definition at line 156 of file class.ilDBPdo.php.
References $field_definition.
| ilDBPdo::setHost | ( | $host | ) |
| string | $host |
Definition at line 1219 of file class.ilDBPdo.php.
References $host.
Referenced by initFromIniFile(), and setDBHost().
Here is the caller graph for this function:| ilDBPdo::setLimit | ( | $limit, | |
$offset = 0 |
|||
| ) |
Set the Limit for the next Query.
| $limit | |
| $offset |
Implements ilDBInterface.
Definition at line 1120 of file class.ilDBPdo.php.
| ilDBPdo::setPassword | ( | $password | ) |
| string | $password |
Definition at line 1291 of file class.ilDBPdo.php.
References $password.
Referenced by initFromIniFile(), and setDBPassword().
Here is the caller graph for this function:| ilDBPdo::setPort | ( | $port | ) |
| int | $port |
Definition at line 1309 of file class.ilDBPdo.php.
References $port.
Referenced by ilDBPdoPostgreSQL\generateDSN(), initFromIniFile(), and setDBPort().
Here is the caller graph for this function:| ilDBPdo::setStorageEngine | ( | $storage_engine | ) |
| $storage_engine |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 1748 of file class.ilDBPdo.php.
References $storage_engine.
| ilDBPdo::setUsername | ( | $username | ) |
| string | $username |
Definition at line 1273 of file class.ilDBPdo.php.
References $username.
Referenced by initFromIniFile(), and setDBUser().
Here is the caller graph for this function:| ilDBPdo::substr | ( | $a_exp, | |
$a_pos = 1, |
|||
$a_len = -1 |
|||
| ) |
| $a_exp | ||
| int | $a_pos | |
| int | $a_len |
Definition at line 1377 of file class.ilDBPdo.php.
| ilDBPdo::supports | ( | $feature | ) |
| $feature |
Implements ilDBInterface.
Definition at line 1470 of file class.ilDBPdo.php.
References FEATURE_FULLTEXT, FEATURE_SLAVE, FEATURE_TRANSACTIONS, 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 | ( | ) |
@inheritDoc
Implements ilDBPdoInterface.
Reimplemented in ilDBPdoMySQL.
Definition at line 1864 of file class.ilDBPdo.php.
| ilDBPdo::supportsEngineMigration | ( | ) |
Implements ilDBPdoInterface.
Reimplemented in ilDBPdoMySQL.
Definition at line 1873 of file class.ilDBPdo.php.
| ilDBPdo::supportsFulltext | ( | ) |
Implements ilDBInterface.
Reimplemented in ilDBPdoMySQLInnoDB, ilDBPdoMySQLMyISAM, and ilDBPdoPostgreSQL.
Definition at line 1451 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 1442 of file class.ilDBPdo.php.
Referenced by supports().
Here is the caller graph for this function:| ilDBPdo::supportsTransactions | ( | ) |
Implements ilDBInterface.
Reimplemented in ilDBPdoMySQL, ilDBPdoMySQLGalera, ilDBPdoMySQLInnoDB, and ilDBPdoPostgreSQL.
Definition at line 1460 of file class.ilDBPdo.php.
Referenced by supports().
Here is the caller graph for this function:| ilDBPdo::tableColumnExists | ( | $table_name, | |
| $column_name | |||
| ) |
| $table_name | string |
| $column_name | string |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 446 of file class.ilDBPdo.php.
References loadModule(), and ilDBConstants\MODULE_MANAGER.
Here is the call graph for this function:| ilDBPdo::tableExists | ( | $table_name | ) |
| $table_name | string |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 429 of file class.ilDBPdo.php.
References $result.
Referenced by nextId().
Here is the caller graph for this function:| ilDBPdo::uniqueConstraintExists | ( | $table, | |
| array | $fields | ||
| ) |
| $table | ||
| array | $fields |
Implements ilDBPdoInterface.
Definition at line 1983 of file class.ilDBPdo.php.
| ilDBPdo::unixTimestamp | ( | ) |
Implements ilDBPdoInterface.
Definition at line 2042 of file class.ilDBPdo.php.
| ilDBPdo::unlockTables | ( | ) |
Implements ilDBInterface.
Reimplemented in ilDBPdoPostgreSQL.
Definition at line 1039 of file class.ilDBPdo.php.
| ilDBPdo::update | ( | $table_name, | |
| $columns, | |||
| $where | |||
| ) |
| $table_name | string |
| $values | array |
| $where | array |
Implements ilDBInterface.
Definition at line 676 of file class.ilDBPdo.php.
References $columns, $r, $values, ilDBInterface\execute(), ilDBInterface\free(), manipulateF(), prepareManip(), quote(), quoteIdentifier(), and sanitizeMB4StringIfNotSupported().
Here is the call graph for this function:| ilDBPdo::upper | ( | $a_exp | ) |
| $a_exp |
Implements ilDBInterface.
Definition at line 1355 of file class.ilDBPdo.php.
| ilDBPdo::useSlave | ( | $bool | ) |
| $bool |
TODO
Implements ilDBInterface.
Definition at line 1108 of file class.ilDBPdo.php.
|
protected |
Definition at line 70 of file class.ilDBPdo.php.
Referenced by addTableColumn(), and getAttributes().
|
protected |
Definition at line 26 of file class.ilDBPdo.php.
Referenced by generateDSN(), getCharset(), and setCharset().
|
protected |
Definition at line 77 of file class.ilDBPdo.php.
Referenced by getDBType().
|
protected |
Definition at line 22 of file class.ilDBPdo.php.
Referenced by generateDSN(), getDbname(), and setDbname().
|
protected |
Definition at line 66 of file class.ilDBPdo.php.
Referenced by getDSN().
|
protected |
Definition at line 81 of file class.ilDBPdo.php.
Referenced by getLastErrorCode().
|
protected |
Definition at line 85 of file class.ilDBPdo.php.
Referenced by getFieldDefinition(), modifyTableColumn(), and setFieldDefinition().
|
protected |
Definition at line 18 of file class.ilDBPdo.php.
Referenced by generateDSN(), getHost(), setDBHost(), and setHost().
|
protected |
Definition at line 54 of file class.ilDBPdo.php.
Referenced by appendLimit(), and setLimit().
|
protected |
Definition at line 46 of file class.ilDBPdo.php.
Referenced by addUniqueConstraint(), and loadModule().
|
protected |
Definition at line 58 of file class.ilDBPdo.php.
Referenced by ilDBPdoPostgreSQL\appendLimit(), and setLimit().
|
protected |
Definition at line 34 of file class.ilDBPdo.php.
Referenced by getPassword(), setDBPassword(), and setPassword().
|
protected |
Definition at line 42 of file class.ilDBPdo.php.
|
protected |
Definition at line 38 of file class.ilDBPdo.php.
Referenced by generateDSN(), getPort(), setDBPort(), and setPort().
|
protected |
Definition at line 50 of file class.ilDBPdo.php.
Referenced by loadModule().
|
protected |
Definition at line 62 of file class.ilDBPdo.php.
Referenced by getStorageEngine(), and setStorageEngine().
|
protected |
Definition at line 30 of file class.ilDBPdo.php.
Referenced by getUsername(), and setUsername().
| const ilDBPdo::FEATURE_FULLTEXT = 'fulltext' |
Definition at line 13 of file class.ilDBPdo.php.
Referenced by supports().
| const ilDBPdo::FEATURE_SLAVE = 'slave' |
Definition at line 14 of file class.ilDBPdo.php.
Referenced by supports().
| const ilDBPdo::FEATURE_TRANSACTIONS = 'transactions' |
Definition at line 12 of file class.ilDBPdo.php.
Referenced by supports().