Propel API
Class

DebugPDOStatement

class DebugPDOStatement extends PDOStatement

PDOStatement that provides some enhanced functionality needed by Propel.

Simply adds the ability to count the number of queries executed and log the queries/method calls.

Methods

getExecutedQueryString()

bool execute($input_parameters = null)

Executes a prepared statement.

boolean bindValue(int $pos, mixed $value, int $type = PDO::PARAM_STR)

Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.

boolean bindParam($pos, $value, $type = PDO::PARAM_STR, $length, $driver_options = null)

Binds a PHP variable to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.

Details

at line 63
public getExecutedQueryString()

at line 85
public bool execute($input_parameters = null)

Executes a prepared statement.

Returns a boolean value indicating success.

Overridden for query counting and logging.

Parameters

$input_parameters

Return Value

bool

at line 107
public boolean bindValue(int $pos, mixed $value, int $type = PDO::PARAM_STR)

Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.

Returns a boolean value indicating success.

Parameters

int $pos Parameter identifier (for determining what to replace in the query).
mixed $value The value to bind to the parameter.
int $type Explicit data type for the parameter using the PDO::PARAM_* constants. Defaults to PDO::PARAM_STR.

Return Value

boolean

at line 134
public boolean bindParam($pos, $value, $type = PDO::PARAM_STR, $length, $driver_options = null)

Binds a PHP variable to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.

Unlike PDOStatement::bindValue(), the variable is bound
as a reference and will only be evaluated at the time that PDOStatement::execute() is called.
Returns a boolean value indicating success.

Parameters

$pos
$value
$type
$length
$driver_options

Return Value

boolean