API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5

Référence de la classe JDatabaseMySQL

Graphe d'héritage de JDatabaseMySQL:
Graphe de collaboration de JDatabaseMySQL:

Liste de tous les membres

Fonctions membres publiques

Fonctions membres publiques statiques

Attributs publics


Documentation des constructeurs et destructeur

JDatabaseMySQL::__construct ( options)

Database object constructor

public

Paramètres:
arrayList of options used to configure the connection
Depuis:
1.5
Voir également:
JDatabase

Réimplémentée à partir de JDatabase.

Références $host, et $user.

JDatabaseMySQL::__destruct ( )

Database object destructor

Renvoie:
boolean
Depuis:
1.5

Réimplémentée à partir de JDatabase.

Références $return.


Documentation des fonctions membres

JDatabaseMySQL::connected ( )

Determines if the connection to the server is active.

public

Renvoie:
boolean
Depuis:
1.5

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::explain ( )

Diagnostic function

public

Renvoie:
string

Réimplémentée à partir de JDatabase.

Références $k.

JDatabaseMySQL::getAffectedRows ( )

Description

public

Renvoie:
int The number of affected rows in the previous operation
Depuis:
1.0.5

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::getCollation ( )

Assumes database collation in use by sampling one text field in one table

public

Renvoie:
string Collation in use

Réimplémentée à partir de JDatabase.

Références $array.

JDatabaseMySQL::getEscaped ( text,
extra = false 
)

Get a database escaped string

Paramètres:
stringThe string to be escaped
booleanOptional parameter to provide extra escaping
Renvoie:
string public

Réimplémentée à partir de JDatabase.

Références $text.

JDatabaseMySQL::getNumRows ( cur = null)

Description

public

Renvoie:
int The number of rows returned from the most recent query.

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::getTableCreate ( tables)

Shows the CREATE TABLE statement that creates the given tables

public

Paramètres:
array|stringA table name or a list of table names
Renvoie:
array A list the create SQL for the tables

Réimplémentée à partir de JDatabase.

Références $rows, et $tables.

JDatabaseMySQL::getTableFields ( tables,
typeonly = true 
)

Retrieves information about the given tables

public

Paramètres:
array|stringA table name or a list of table names
booleanOnly return field types, default true
Renvoie:
array An array of fields by table

Réimplémentée à partir de JDatabase.

Références $tables.

JDatabaseMySQL::getTableList ( )

Description

public

Renvoie:
array A list of all the tables in the database

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::getVersion ( )

Description

public

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::hasUTF ( )

Determines UTF support

public

Renvoie:
boolean True - UTF is supported

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::insertid ( )

Description

public

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::insertObject ( table,
&$  object,
keyName = NULL 
)

Inserts a row into a table based on an objects properties

public

Paramètres:
stringThe name of the table
objectAn object whose properties match table fields
stringThe name of the primary key. If provided the object property is updated.

Réimplémentée à partir de JDatabase.

Références $id, et $k.

JDatabaseMySQL::loadAssoc ( )

Fetch a result row as an associative array

public

Renvoie:
array

Réimplémentée à partir de JDatabase.

Références $array.

JDatabaseMySQL::loadAssocList ( key = '')

Load a assoc list of database rows

public

Paramètres:
stringThe field name of a primary key
Renvoie:
array If key is empty as sequential list of returned records.

Réimplémentée à partir de JDatabase.

Références $array.

JDatabaseMySQL::loadObject ( )

This global function loads the first row of a query into an object

public

Renvoie:
object

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::loadObjectList ( key = '')

Load a list of database objects

If key is not empty then the returned array is indexed by the value the database key. Returns null if the query fails.

public

Paramètres:
stringThe field name of a primary key
Renvoie:
array If key is empty as sequential list of returned records.

Réimplémentée à partir de JDatabase.

Références $array.

JDatabaseMySQL::loadResult ( )

This method loads the first field of the first row returned by the query.

public

Renvoie:
The value returned in the query or null if the query failed.

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::loadResultArray ( numinarray = 0)

Load an array of single field results into an array

public

Réimplémentée à partir de JDatabase.

Références $array.

JDatabaseMySQL::loadRow ( )

Description

public

Renvoie:
The first row of the query.

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::loadRowList ( key = null)

Load a list of database rows (numeric column indexing)

public

Paramètres:
stringThe field name of a primary key
Renvoie:
array If key is empty as sequential list of returned records. If key is not empty then the returned array is indexed by the value the database key. Returns null if the query fails.

Réimplémentée à partir de JDatabase.

Références $array.

JDatabaseMySQL::query ( )

Execute the query

public

Renvoie:
mixed A database resource if successful, FALSE if not.

Réimplémentée à partir de JDatabase.

Références JError::raiseError().

Voici le graphe d'appel pour cette fonction :

JDatabaseMySQL::queryBatch ( abort_on_error = true,
p_transaction_safe = false 
)

Execute a batch query

public

Renvoie:
mixed A database resource if successful, FALSE if not.

Réimplémentée à partir de JDatabase.

Références $error.

JDatabaseMySQL::select ( database)

Select a database for use

public

Paramètres:
string$database
Renvoie:
boolean True if the database has been successfully selected
Depuis:
1.5
JDatabaseMySQL::setUTF ( )

Custom settings for UTF support

public

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::test ( ) [static]

Test to see if the MySQL connector is available

public

Renvoie:
boolean True on success, false otherwise.

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::updateObject ( table,
&$  object,
keyName,
updateNulls = true 
)

Description

public

Paramètres:
[type]$updateNulls

Réimplémentée à partir de JDatabase.

Références $k, et $where.


Documentation des données membres

JDatabaseMySQL::$_nameQuote = '`'

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::$_nullDate = '0000-00-00 00:00:00'

Réimplémentée à partir de JDatabase.

JDatabaseMySQL::$name = 'mysql'

Réimplémentée à partir de JDatabase.


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