[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/maximebf/debugbar/src/DebugBar/DataCollector/PDO/ -> TraceablePDO.php (summary)

(no description)

File Size: 313 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

TraceablePDO:: (24 methods):
  __construct()
  beginTransaction()
  commit()
  errorCode()
  errorInfo()
  exec()
  getAttribute()
  inTransaction()
  lastInsertId()
  prepare()
  query()
  quote()
  rollBack()
  setAttribute()
  profileCall()
  addExecutedStatement()
  getAccumulatedStatementsDuration()
  getMemoryUsage()
  getPeakMemoryUsage()
  getExecutedStatements()
  getFailedExecutedStatements()
  __get()
  __set()
  __call()


Class: TraceablePDO  - X-Ref

A PDO proxy which traces statements

__construct(PDO $pdo)   X-Ref
No description

beginTransaction()   X-Ref
Initiates a transaction

return: bool TRUE on success or FALSE on failure.

commit()   X-Ref
Commits a transaction

return: bool TRUE on success or FALSE on failure.

errorCode()   X-Ref
Fetch extended error information associated with the last operation on the database handle

return: array PDO::errorInfo returns an array of error information

errorInfo()   X-Ref
Fetch extended error information associated with the last operation on the database handle

return: array PDO::errorInfo returns an array of error information

exec($statement)   X-Ref
Execute an SQL statement and return the number of affected rows

param: string   $statement
return: int|bool PDO::exec returns the number of rows that were modified or deleted by the

getAttribute($attribute)   X-Ref
Retrieve a database connection attribute

param: int   $attribute One of the PDO::ATTR_* constants
return: mixed A successful call returns the value of the requested PDO attribute.

inTransaction()   X-Ref
Checks if inside a transaction

return: bool TRUE if a transaction is currently active, and FALSE if not.

lastInsertId($name = null)   X-Ref
Returns the ID of the last inserted row or sequence value

param: string $name [optional]
return: string If a sequence name was not specified for the name parameter, PDO::lastInsertId

prepare($statement, $driver_options = [])   X-Ref
Prepares a statement for execution and returns a statement object

param: string $statement This must be a valid SQL statement template for the target DB server.
param: array  $driver_options [optional] This array holds one or more key=>value pairs to
return: TraceablePDOStatement|bool If the database server successfully prepares the statement,

query($statement, $fetchMode = null, ...$fetchModeArgs)   X-Ref
Executes an SQL statement, returning a result set as a PDOStatement object

param: string $statement
param: int $fetchMode
param: mixed ...$fetchModeArgs
return: TraceablePDOStatement|bool PDO::query returns a PDOStatement object, or FALSE on

quote($string, $parameter_type = PDO::PARAM_STR)   X-Ref
Quotes a string for use in a query.

param: string $string The string to be quoted.
param: int    $parameter_type [optional] Provides a data type hint for drivers that have
return: string|bool A quoted string that is theoretically safe to pass into an SQL statement.

rollBack()   X-Ref
Rolls back a transaction

return: bool TRUE on success or FALSE on failure.

setAttribute($attribute, $value)   X-Ref
Set an attribute

param: int $attribute
param: mixed $value
return: bool TRUE on success or FALSE on failure.

profileCall($method, $sql, array $args)   X-Ref
Profiles a call to a PDO method

param: string $method
param: string $sql
param: array  $args
return: mixed  The result of the call

addExecutedStatement(TracedStatement $stmt)   X-Ref
Adds an executed TracedStatement

param: TracedStatement $stmt

getAccumulatedStatementsDuration()   X-Ref
Returns the accumulated execution time of statements

return: int

getMemoryUsage()   X-Ref
Returns the peak memory usage while performing statements

return: int

getPeakMemoryUsage()   X-Ref
Returns the peak memory usage while performing statements

return: int

getExecutedStatements()   X-Ref
Returns the list of executed statements as TracedStatement objects

return: TracedStatement[]

getFailedExecutedStatements()   X-Ref
Returns the list of failed statements

return: TracedStatement[]

__get($name)   X-Ref

param: $name
return: mixed

__set($name, $value)   X-Ref

param: $name
param: $value

__call($name, $args)   X-Ref

param: $name
param: $args
return: mixed



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer