Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques statiques | |
static | isSupported () |
Fonctions membres publiques statiques hérités de JDatabaseDriverPdo | |
static | isSupported () |
Fonctions membres publiques statiques hérités de JDatabaseDriver | |
static | getConnectors () |
static | getInstance ($options=array()) |
static | splitSql ($sql) |
Fonctions membres publiques statiques hérités de JDatabase | |
static | getConnectors () |
static | getInstance ($options=array()) |
static | splitSql ($query) |
static | test () |
Champs de données | |
$name = 'oracle' | |
$serverType = 'oracle' | |
Champs de données hérités de JDatabaseDriverPdo | |
$name = 'pdo' | |
Champs de données hérités de JDatabaseDriver | |
$name | |
$serverType | |
Fonctions membres protégées | |
getCreateDatabaseQuery ($options, $utf) | |
Fonctions membres protégées hérités de JDatabaseDriverPdo | |
fetchArray ($cursor=null) | |
fetchAssoc ($cursor=null) | |
fetchObject ($cursor=null, $class='stdClass') | |
freeResult ($cursor=null) | |
getErrorNumber () | |
getErrorMessage () | |
Fonctions membres protégées hérités de JDatabaseDriver | |
fetchArray ($cursor=null) | |
fetchAssoc ($cursor=null) | |
fetchObject ($cursor=null, $class='stdClass') | |
freeResult ($cursor=null) | |
getCreateDatabaseQuery ($options, $utf) | |
getDatabase () | |
quoteNameStr ($strArr) | |
Attributs protégés | |
$nameQuote = '"' | |
$dateformat | |
$charset | |
Attributs protégés hérités de JDatabaseDriverPdo | |
$connection | |
$nameQuote = "'" | |
$nullDate = '0000-00-00 00:00:00' | |
$prepared | |
$executed = false | |
Attributs protégés hérités de JDatabaseDriver | |
$connection | |
$count = 0 | |
$cursor | |
$debug = false | |
$limit = 0 | |
$log = array() | |
$timings = array() | |
$callStacks = array() | |
$nameQuote | |
$nullDate | |
$offset = 0 | |
$options | |
$sql | |
$tablePrefix | |
$utf = true | |
$utf8mb4 = false | |
$errorNum = 0 | |
$errorMsg | |
$transactionDepth = 0 | |
$disconnectHandlers = array() | |
Membres hérités additionnels | |
Attributs protégés statiques hérités de JDatabaseDriver | |
static | $instances = array() |
static | $dbMinimum |
Oracle database driver
__construct | ( | $options | ) |
Constructor.
array | $options | List of options used to configure the connection |
Références $options.
connect | ( | ) |
Connects to the database if needed.
RuntimeException |
disconnect | ( | ) |
dropTable | ( | $tableName, | |
$ifExists = true |
|||
) |
Drops a table from the database.
Note: The IF EXISTS flag is unused in the Oracle driver.
string | $tableName | The name of the database table to drop. |
boolean | $ifExists | Optionally specify that the table must exist before it is dropped. |
Références $query.
getAlterTableCharacterSet | ( | $tableName | ) |
Get the query strings to alter the character set and collation of a table.
string | $tableName | The name of the table |
getCollation | ( | ) |
Method to get the database collation in use by sampling a text field of a table in the database.
getConnectedQuery | ( | ) |
Get a query to run and verify the database is operational.
getConnectionCollation | ( | ) |
Method to get the database connection collation, as reported by the driver. If the connector doesn't support reporting this value please return an empty string.
|
protected |
Return the query string to create new Database. Each database driver, other than MySQL, need to override this member to return correct string.
stdClass | $options | Object used to pass user and database name to database driver. This object must have "db_name" and "db_user" set. |
boolean | $utf | True if the database supports the UTF-8 character set. |
Références $options.
getDateFormat | ( | ) |
Returns the current date format This method should be useful in the case that somebody actually wants to use a different date format and needs to check what the current one is to see if it needs to be changed.
getTableColumns | ( | $table, | |
$typeOnly = true |
|||
) |
Retrieves field information about a given table.
string | $table | The name of the database table. |
boolean | $typeOnly | True to only return field types. |
RuntimeException |
getTableCreate | ( | $tables | ) |
Shows the table CREATE statement that creates the given tables.
Note: You must have the correct privileges before this method will return usable results!
mixed | $tables | A table name or a list of table names. |
RuntimeException |
Références $query.
getTableKeys | ( | $table | ) |
Get the details list of keys for a table.
string | $table | The name of the table. |
RuntimeException |
Références $query.
Method to get an array of all tables in the database (schema).
string | $databaseName | The database (schema) name |
boolean | $includeDatabaseName | Whether to include the schema name in the results |
RuntimeException |
Références $query.
getVersion | ( | ) |
Get the version of the database connector.
|
static |
Test to see if the PDO ODBC connector is available.
Implémente JDatabaseInterface.
lockTable | ( | $table | ) |
Locks a table in the database.
string | $table | The name of the table to unlock. |
RuntimeException |
Renames a table in the database.
string | $oldTable | The name of the table to be renamed |
string | $newTable | The new name for the table. |
string | $backup | Not used by Oracle. |
string | $prefix | Not used by Oracle. |
RuntimeException |
replacePrefix | ( | $query, | |
$prefix = '#__' |
|||
) |
select | ( | $database | ) |
Select a database for use.
string | $database | The name of the database to select for use. |
RuntimeException |
setDateFormat | ( | $dateFormat = 'DD-MON-RR' | ) |
Sets the Oracle Date Format for the session Default date format for Oracle is = DD-MON-RR The default date format for this driver is: 'RRRR-MM-DD HH24:MI:SS' since it is the format that matches the MySQL one used within most Joomla tables.
string | $dateFormat | Oracle Date Format String |
setUtf | ( | ) |
Set the connection to use UTF-8 character encoding.
Returns false automatically for the Oracle driver since you can only set the character set when the connection is created.
transactionCommit | ( | $toSavepoint = false | ) |
Method to commit a transaction.
boolean | $toSavepoint | If true, commit to the last savepoint. |
RuntimeException |
transactionRollback | ( | $toSavepoint = false | ) |
Method to roll back a transaction.
boolean | $toSavepoint | If true, rollback to the last savepoint. |
RuntimeException |
transactionStart | ( | $asSavepoint = false | ) |
Method to initialize a transaction.
boolean | $asSavepoint | If true and a transaction is already active, a savepoint will be created. |
RuntimeException |
unlockTables | ( | ) |
Unlocks tables in the database.
RuntimeException |
|
protected |
|
protected |
$name = 'oracle' |
|
protected |
$serverType = 'oracle' |