Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (PDO $pdo) | |
beginTransaction () | |
commit () | |
errorCode () | |
errorInfo () | |
exec ($statement) | |
getAttribute ($attribute) | |
inTransaction () | |
lastInsertId ($name=null) | |
prepare ($statement, $driver_options=[]) | |
query ($statement, $fetchMode=null,... $fetchModeArgs) | |
quote ($string, $parameter_type=PDO::PARAM_STR) | |
rollBack () | |
setAttribute ($attribute, $value) | |
addExecutedStatement (TracedStatement $stmt) | |
getAccumulatedStatementsDuration () | |
getMemoryUsage () | |
getPeakMemoryUsage () | |
getExecutedStatements () | |
getFailedExecutedStatements () | |
__get ($name) | |
__set ($name, $value) | |
__call ($name, $args) | |
Fonctions membres protégées | |
profileCall ($method, $sql, array $args) | |
Attributs protégés | |
$pdo | |
$executedStatements = [] | |
A PDO proxy which traces statements
__construct | ( | PDO | $pdo | ) |
Références TraceablePDO\$pdo, $this, et class.
__call | ( | $name, | |
$args | |||
) |
__get | ( | $name | ) |
$name |
__set | ( | $name, | |
$value | |||
) |
$name | |
$value |
Références $value.
addExecutedStatement | ( | TracedStatement | $stmt | ) |
Adds an executed TracedStatement
TracedStatement | $stmt |
Référencé par TraceablePDO\profileCall().
beginTransaction | ( | ) |
Initiates a transaction
commit | ( | ) |
Commits a transaction
errorCode | ( | ) |
Fetch extended error information associated with the last operation on the database handle
errorInfo | ( | ) |
Fetch extended error information associated with the last operation on the database handle
exec | ( | $statement | ) |
Execute an SQL statement and return the number of affected rows
Références TraceablePDO\profileCall().
getAccumulatedStatementsDuration | ( | ) |
Returns the accumulated execution time of statements
Référencé par PDOCollector\collectPDO().
getAttribute | ( | $attribute | ) |
Retrieve a database connection attribute
getExecutedStatements | ( | ) |
Returns the list of executed statements as TracedStatement objects
Références TraceablePDO\$executedStatements.
Référencé par PDOCollector\collectPDO().
getFailedExecutedStatements | ( | ) |
Returns the list of failed statements
Référencé par PDOCollector\collectPDO().
getMemoryUsage | ( | ) |
Returns the peak memory usage while performing statements
Référencé par PDOCollector\collectPDO().
getPeakMemoryUsage | ( | ) |
Returns the peak memory usage while performing statements
Référencé par PDOCollector\collectPDO().
inTransaction | ( | ) |
Checks if inside a transaction
bool TRUE if a transaction is currently active, and FALSE if not.
lastInsertId | ( | $name = null | ) |
Returns the ID of the last inserted row or sequence value
Références $name.
prepare | ( | $statement, | |
$driver_options = [] |
|||
) |
Prepares a statement for execution and returns a statement object
|
protected |
Profiles a call to a PDO method
string | $method | |
string | $sql | |
array | $args |
Références $method, $result, $sql, TraceablePDO\__call(), TraceablePDO\addExecutedStatement(), et null.
Référencé par TraceablePDO\exec(), et TraceablePDO\query().
query | ( | $statement, | |
$fetchMode = null , |
|||
$fetchModeArgs | |||
) |
Executes an SQL statement, returning a result set as a PDOStatement object
Références TraceablePDO\profileCall().
quote | ( | $string, | |
$parameter_type = PDO::PARAM_STR |
|||
) |
Quotes a string for use in a query.
rollBack | ( | ) |
Rolls back a transaction
setAttribute | ( | $attribute, | |
$value | |||
) |
Set an attribute
int $attribute mixed $value bool TRUE on success or FALSE on failure.
Références $value.
|
protected |
Référencé par TraceablePDO\getExecutedStatements().
|
protected |
Référencé par TraceablePDO\__construct().