Hoa central
Public Member Functions | List of all members
Hoa\Database\IDal\WrapperStatement Interface Reference
Inheritance diagram for Hoa\Database\IDal\WrapperStatement:

Public Member Functions

 execute (Array $bindParameters=[])
 
 bindParameter ($parameter, &$value, $type=null, $length=null)
 
 fetchAll ()
 
 fetchFirst ()
 
 fetchLast ()
 
 fetchNext ()
 
 fetchPrior ()
 
 fetchColumn ($column=0)
 
 closeCursor ()
 
 errorCode ()
 
 errorInfo ()
 

Detailed Description

Interface .

Interface of a DAL statement wrapper.

Definition at line 47 of file WrapperStatement.php.

Member Function Documentation

Hoa\Database\IDal\WrapperStatement::bindParameter (   $parameter,
$value,
  $type = null,
  $length = null 
)

Bind a parameter to te specified variable name.

Parameters
mixed$parameterParameter name.
mixed$valueParameter value.
int$typeType of value.
int$lengthLength of data type.
Returns
bool
Exceptions

Implemented in Hoa\Database\Layer\Pdo\Statement.

Hoa\Database\IDal\WrapperStatement::closeCursor ( )

Close the cursor, enabling the statement to be executed again.

Returns
bool
Exceptions

Implemented in Hoa\Database\Layer\Pdo\Statement.

Hoa\Database\IDal\WrapperStatement::errorCode ( )

Fetch the SQLSTATE associated with the last operation on the statement handle.

Returns
string
Exceptions

Implemented in Hoa\Database\Layer\Pdo\Statement.

Hoa\Database\IDal\WrapperStatement::errorInfo ( )

Fetch extends error information associated with the last operation on the statement handle.

Returns
array
Exceptions

Implemented in Hoa\Database\Layer\Pdo\Statement.

Hoa\Database\IDal\WrapperStatement::execute ( Array  $bindParameters = [])

Execute a prepared statement.

Parameters
array$bindParametersBind parameters values if bindParameter() is not called.
Returns
Exceptions

Implemented in Hoa\Database\Layer\Pdo\Statement.

Hoa\Database\IDal\WrapperStatement::fetchAll ( )

Return an array containing all of the result set rows.

Returns
array
Exceptions

Implemented in Hoa\Database\Layer\Pdo\Statement.

Hoa\Database\IDal\WrapperStatement::fetchColumn (   $column = 0)

Return a single column from the next row of the result set or false if there is no more row.

Parameters
int$columnColumn index.
Returns
mixed
Exceptions

Implemented in Hoa\Database\Layer\Pdo\Statement.

Hoa\Database\IDal\WrapperStatement::fetchFirst ( )

Fetch the first row in the result set.

Returns
mixed
Exceptions

Implemented in Hoa\Database\Layer\Pdo\Statement.

Hoa\Database\IDal\WrapperStatement::fetchLast ( )

Fetch the last row in the result set.

Returns
mixed
Exceptions

Implemented in Hoa\Database\Layer\Pdo\Statement.

Hoa\Database\IDal\WrapperStatement::fetchNext ( )

Fetch the next row in the result set.

Returns
mixed
Exceptions

Implemented in Hoa\Database\Layer\Pdo\Statement.

Hoa\Database\IDal\WrapperStatement::fetchPrior ( )

Fetch the previous row in the result set.

Returns
mixed
Exceptions

Implemented in Hoa\Database\Layer\Pdo\Statement.


The documentation for this interface was generated from the following file: