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é
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe FOFDatabaseDriverJoomla
+ Graphe d'héritage de FOFDatabaseDriverJoomla:

Fonctions membres publiques

 __construct ($options=array())
 
 close ()
 
 disconnect ()
 
 open ()
 
 connect ()
 
 connected ()
 
 escape ($text, $extra=false)
 
 execute ()
 
 getAffectedRows ()
 
 getCollation ()
 
 getConnection ()
 
 getCount ()
 
 getDateFormat ()
 
 getMinimum ()
 
 getNullDate ()
 
 getNumRows ($cursor=null)
 
 getQuery ($new=false)
 
 getTableColumns ($table, $typeOnly=true)
 
 getTableKeys ($tables)
 
 getTableList ()
 
 getVersion ()
 
 insertid ()
 
 insertObject ($table, &$object, $key=null)
 
 loadAssoc ()
 
 loadAssocList ($key=null, $column=null)
 
 loadObject ($class='stdClass')
 
 loadObjectList ($key='', $class='stdClass')
 
 loadResult ()
 
 loadRow ()
 
 loadRowList ($key=null)
 
 lockTable ($tableName)
 
 quote ($text, $escape=true)
 
 select ($database)
 
 setQuery ($query, $offset=0, $limit=0)
 
 transactionCommit ($toSavepoint=false)
 
 transactionRollback ($toSavepoint=false)
 
 transactionStart ($asSavepoint=false)
 
 unlockTables ()
 
 updateObject ($table, &$object, $key, $nulls=false)
 
 getLog ()
 
 dropTable ($table, $ifExists=true)
 
 getTableCreate ($tables)
 
 renameTable ($oldTable, $newTable, $backup=null, $prefix=null)
 
 setUtf ()
 
 loadColumn ($offset=0)
 
 quoteName ($name, $as=null)
 
 getErrorMsg ($escaped=false)
 
 getErrorNum ()
 
 stderr ($showSQL=false)
 
 __call ($name, array $arguments)
 
 __get ($name)
 
 __set ($name, $value)
 
- Fonctions membres publiques hérités de FOFDatabase
 query ()
 
 getErrorMsg ($escaped=false)
 
 getErrorNum ()
 
 stderr ($showSQL=false)
 

Fonctions membres publiques statiques

static isSupported ()
 
- Fonctions membres publiques statiques hérités de FOFDatabase
static getConnectors ()
 
static getInstance ($options=array())
 
static splitSql ($query)
 
static test ()
 

Fonctions membres protégées

 freeResult ($cursor=null)
 
 quoteNameStr ($strArr)
 

Attributs protégés

 $nameQuote = ''
 

Attributs privés

 $dbo
 

Description détaillée

Joomla! pass-through database driver.

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $options = array())

Database object constructor

Paramètres
array$optionsList of options used to configure the connection

Documentation des fonctions membres

◆ __call()

__call (   $name,
array  $arguments 
)

Magic method to proxy all calls to the loaded database driver object

Références $name.

◆ __get()

__get (   $name)

Références $name, et null.

◆ __set()

__set (   $name,
  $value 
)

Références $name, $value, et null.

◆ close()

close ( )

Références elseif.

◆ connect()

connect ( )

◆ connected()

connected ( )

◆ disconnect()

disconnect ( )

◆ dropTable()

dropTable (   $table,
  $ifExists = true 
)

◆ escape()

escape (   $text,
  $extra = false 
)

Références $text.

◆ execute()

execute ( )

◆ freeResult()

freeResult (   $cursor = null)
protected

◆ getAffectedRows()

getAffectedRows ( )

◆ getCollation()

getCollation ( )

◆ getConnection()

getConnection ( )

Références null.

◆ getCount()

getCount ( )

◆ getDateFormat()

getDateFormat ( )

◆ getErrorMsg()

getErrorMsg (   $escaped = false)

Gets the error message from the database connection.

Paramètres
boolean$escapedTrue to escape the message string for use in JavaScript.
Renvoie
string The error message for the most recent query.
Depuis
11.1

◆ getErrorNum()

getErrorNum ( )

Gets the error number from the database connection.

Renvoie
integer The error number for the most recent query.
Depuis
11.1
Obsolète:
13.3 (Platform) & 4.0 (CMS)

◆ getLog()

getLog ( )

◆ getMinimum()

getMinimum ( )

◆ getNullDate()

getNullDate ( )

◆ getNumRows()

getNumRows (   $cursor = null)

◆ getQuery()

getQuery (   $new = false)

Références null.

◆ getTableColumns()

getTableColumns (   $table,
  $typeOnly = true 
)

◆ getTableCreate()

getTableCreate (   $tables)

◆ getTableKeys()

getTableKeys (   $tables)

◆ getTableList()

getTableList ( )

◆ getVersion()

getVersion ( )

◆ insertid()

insertid ( )

Références null.

◆ insertObject()

insertObject (   $table,
$object,
  $key = null 
)

Références $key, et null.

◆ isSupported()

static isSupported ( )
static

Is this driver supported

Depuis
11.2

Implémente JDatabaseInterface.

◆ loadAssoc()

loadAssoc ( )

Références null.

◆ loadAssocList()

loadAssocList (   $key = null,
  $column = null 
)

Références $key, et null.

◆ loadColumn()

loadColumn (   $offset = 0)

Method to get an array of values from the $offset field in each row of the result set from the database query.

Paramètres
integer$offsetThe row offset to use to build the result array.
Renvoie
mixed The return value or null if the query failed.
Depuis
11.1
Exceptions
RuntimeException

Références $offset.

◆ loadObject()

loadObject (   $class = 'stdClass')

Références $class, et null.

◆ loadObjectList()

loadObjectList (   $key = '',
  $class = 'stdClass' 
)

Références $class, $key, et null.

◆ loadResult()

loadResult ( )

Références null.

◆ loadRow()

loadRow ( )

Références null.

◆ loadRowList()

loadRowList (   $key = null)

Références $key, et null.

◆ lockTable()

lockTable (   $tableName)

◆ open()

open ( )

Références elseif.

◆ quote()

quote (   $text,
  $escape = true 
)

Références $text.

◆ quoteName()

quoteName (   $name,
  $as = null 
)

Wrap an SQL statement identifier name such as column, table or database names in quotes to prevent injection risks and reserved word conflicts.

Paramètres
mixed$nameThe identifier name to wrap in quotes, or an array of identifier names to wrap in quotes. Each type supports dot-notation name.
mixed$asThe AS query part associated to $name. It can be string or array, in latter case it has to be same length of $name; if is null there will not be any AS part for string or array element.
Renvoie
mixed The quote wrapped name, same type of $name.
Depuis
11.1

Références $count, $i, $name, et elseif.

◆ quoteNameStr()

quoteNameStr (   $strArr)
protected

Quote strings coming from quoteName call.

Paramètres
array$strArrArray of strings coming from quoteName dot-explosion.
Renvoie
string Dot-imploded string of quoted parts.
Depuis
11.3

Références $parts.

◆ renameTable()

renameTable (   $oldTable,
  $newTable,
  $backup = null,
  $prefix = null 
)

Références $prefix.

◆ select()

select (   $database)

◆ setQuery()

setQuery (   $query,
  $offset = 0,
  $limit = 0 
)

Références $limit, $offset, et $query.

◆ setUtf()

setUtf ( )

◆ stderr()

stderr (   $showSQL = false)

Return the most recent error message for the database connector.

Paramètres
boolean$showSQLTrue to display the SQL statement sent to the database as well as the error.
Renvoie
string The error message for the most recent query.

◆ transactionCommit()

transactionCommit (   $toSavepoint = false)

◆ transactionRollback()

transactionRollback (   $toSavepoint = false)

◆ transactionStart()

transactionStart (   $asSavepoint = false)

◆ unlockTables()

unlockTables ( )

◆ updateObject()

updateObject (   $table,
$object,
  $key,
  $nulls = false 
)

Références $key.

Documentation des champs

◆ $dbo

$dbo
private

◆ $nameQuote

$nameQuote = ''
protected

La documentation de cette classe a été générée à partir du fichier suivant :