OC_DB_StatementWrapper

class OC_DB_StatementWrapper
small wrapper around \Doctrine\DBAL\Driver\Statement to make it behave, more like an MDB2 Statement
Source:lib/private/legacy/OC_DB_StatementWrapper.php#42

Properties

Methods

public OC_DB_StatementWrapper::__construct($statement, $isManipulation)
Source:

lib/private/legacy/OC_DB_StatementWrapper.php#56

Parameters:
public OC_DB_StatementWrapper::__call($name, $arguments)
pass all other function directly to the \Doctrine\DBAL\Driver\Statement
Source:lib/private/legacy/OC_DB_StatementWrapper.php#64
public OC_DB_StatementWrapper::execute($input=[])
make execute return the result instead of a bool
Source:

lib/private/legacy/OC_DB_StatementWrapper.php#75

Parameters:
  • $input (array)
Returns:

\OC_DB_StatementWrapper | int | bool

Deprecated:
public OC_DB_StatementWrapper::fetchRow()
provide an alias for fetch
Source:lib/private/legacy/OC_DB_StatementWrapper.php#100
Returns:mixed
Deprecated:
public OC_DB_StatementWrapper::fetchOne()
Provide a simple fetchOne.
fetch single column from the next row
Source:lib/private/legacy/OC_DB_StatementWrapper.php#111
Returns:string
Deprecated:
public OC_DB_StatementWrapper::closeCursor()
Closes the cursor, enabling the statement to be executed again.
Source:lib/private/legacy/OC_DB_StatementWrapper.php#120
Deprecated:Use Result::free() instead.
public OC_DB_StatementWrapper::bindParam($column, &$variable, $type=\null, $length=\null)
Binds a PHP variable to a corresponding named or question mark placeholder in the
SQL statement that was use to prepare the statement.
Source:

lib/private/legacy/OC_DB_StatementWrapper.php#134

Parameters:
  • $column (mixed) Either the placeholder name or the 1-indexed placeholder index
  • $variable (mixed) The variable to bind
  • $type (int | null) one of the PDO::PARAM_* constants
  • $length (int | null) max length when using an OUT bind
Returns:

bool