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 = 'pgsql' | |
Champs de données hérités de JDatabaseDriverPdo | |
$name = 'pdo' | |
Champs de données hérités de JDatabaseDriver | |
$name | |
$serverType | |
Attributs protégés | |
$nameQuote = '"' | |
$nullDate = '1970-01-01 00:00:00' | |
$concat_operator = '||' | |
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() | |
Attributs protégés statiques | |
static | $dbMinimum = '8.3.18' |
Attributs protégés statiques hérités de JDatabaseDriver | |
static | $instances = array() |
static | $dbMinimum |
Fonctions membres privées | |
getDefaultSchema () | |
Membres hérités additionnels | |
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) | |
PostgreSQL PDO Database Driver
__construct | ( | $options | ) |
connect | ( | ) |
Connects to the database if needed.
dropTable | ( | $tableName, | |
$ifExists = true |
|||
) |
Drops a table from the database.
string | $tableName | The name of the database table to drop. |
boolean | $ifExists | Optionally specify that the table must exist before it is dropped. |
getAlterDbCharacterSet | ( | $dbName | ) |
Get the query string to alter the database character set.
string | $dbName | The database name |
getCollation | ( | ) |
Method to get the database collation in use by sampling a text field of a table in the database.
getConnectionCollation | ( | ) |
Method to get the database connection collation in use by sampling a text field of a table in the database.
getCreateDbQuery | ( | $options, | |
$utf | |||
) |
Get the query string to create new Database in correct PostgreSQL syntax.
object | $options | object coming from "initialise" function to pass user and database name to database driver. |
boolean | $utf | True if the database supports the UTF-8 character set, not used in PostgreSQL "CREATE DATABASE" query. |
|
private |
Internal function to get the name of the default schema for the current PostgreSQL connection. That is the schema where tables are created by Joomla.
getRandom | ( | ) |
Generate a random value
getStringPositionSql | ( | $substring, | |
$string | |||
) |
Get the substring position inside a string
string | $substring | The string being sought |
string | $string | The string/column being searched |
Références $position.
getTableColumns | ( | $table, | |
$typeOnly = true |
|||
) |
getTableCreate | ( | $tables | ) |
Shows the table CREATE statement that creates the given tables.
This is unsupported by PostgreSQL.
mixed | $tables | A table name or a list of table names. |
getTableKeys | ( | $table | ) |
Get the details list of keys for a table.
string | $table | The name of the table. |
getTableList | ( | ) |
Method to get an array of all tables in the database.
Références $query.
getTableSequences | ( | $table | ) |
insertObject | ( | $table, | |
& | $object, | ||
$key = null |
|||
) |
Inserts a row into a table based on an object's properties.
string | $table | The name of the database table to insert into. |
object | &$object | A reference to an object whose public properties match the table fields. |
string | $key | The name of the primary key. If provided the object property is updated. |
|
static |
Test to see if the PostgreSQL connector is available.
Implémente JDatabaseInterface.
lockTable | ( | $tableName | ) |
Locks a table in the database.
string | $tableName | The name of the table to unlock. |
quoteBinary | ( | $data | ) |
Quotes a binary string to database requirements for use in database queries.
mixed | $data | A binary string to quote. |
Références $data.
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 PostgreSQL. |
string | $prefix | Not used by PostgreSQL. |
replacePrefix | ( | $sql, | |
$prefix = '#__' |
|||
) |
This function replaces a string identifier $prefix with the string held is the tablePrefix class variable.
string | $sql | The SQL statement to prepare. |
string | $prefix | The common table prefix. |
Références $prefix.
showTables | ( | ) |
Returns an array containing database's table list.
Références $query.
sqlValue | ( | $columns, | |
$fieldName, | |||
$fieldValue | |||
) |
This function return a field value as a prepared string to be used in a SQL statement.
array | $columns | Array of table's column returned by ::getTableColumns. |
string | $fieldName | The table field's name. |
string | $fieldValue | The variable value to quote and return. |
Références $columns, $fieldValue, et elseif.
transactionCommit | ( | $toSavepoint = false | ) |
Method to commit a transaction.
boolean | $toSavepoint | If true, commit to the last savepoint. |
transactionRollback | ( | $toSavepoint = false | ) |
Method to roll back a transaction.
boolean | $toSavepoint | If true, rollback to the last savepoint. |
transactionStart | ( | $asSavepoint = false | ) |
Method to initialize a transaction.
boolean | $asSavepoint | If true and a transaction is already active, a savepoint will be created. |
unlockTables | ( | ) |
Unlocks tables in the database, this command does not exist in PostgreSQL, it is automatically done on commit or rollback.
updateObject | ( | $table, | |
& | $object, | ||
$key, | |||
$nulls = false |
|||
) |
Updates a row in a table based on an object's properties.
string | $table | The name of the database table to update. |
object | &$object | A reference to an object whose public properties match the table fields. |
array | $key | The name of the primary key. |
boolean | $nulls | True to update null fields or false to ignore them. |
|
protected |
|
staticprotected |
$name = 'pgsql' |
|
protected |
|
protected |