SlaxWeb Framework
 All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
SlaxWeb\Database\Interfaces\Result Interface Reference
Inheritance diagram for SlaxWeb\Database\Interfaces\Result:
Inheritance graph
[legend]

Public Member Functions

 __get (string $name)
 
 next ()
 
 prev ()
 
 row (int $row)
 
 rowCount ()
 
 getResults ()
 
 get ()
 

Member Function Documentation

SlaxWeb\Database\Interfaces\Result::__get ( string  $name)

Magic Get Method

Retrieves the result row column value and returns it to the caller. If the internal index is not pointing to a valid row, or the requested column is not part of the result set, an exception is thrown.

Parameters
string$nameName of the column
Returns
mixed

Implemented in SlaxWeb\DatabasePDO\Result.

SlaxWeb\Database\Interfaces\Result::get ( )

Get Row

Returns the row object to the caller. If the row does not exists, an exception is thrown.

Returns

Implemented in SlaxWeb\DatabasePDO\Result.

SlaxWeb\Database\Interfaces\Result::getResults ( )

Get result set

Returns the raw result set array to the caller.

Returns
array

Implemented in SlaxWeb\DatabasePDO\Result.

SlaxWeb\Database\Interfaces\Result::next ( )

Next row

Move the internal pointer to the next row of the result array. If there is no row found under the next index, bool(false) is returned, otherwise bool(true) is returned.

Returns
bool

Implemented in SlaxWeb\DatabasePDO\Result.

SlaxWeb\Database\Interfaces\Result::prev ( )

Previous row

Move the internal pointer to the previous row of the result array. If there is no row found under the previous index, bool(false) is returned, otherwise bool(true) is returned.

Returns
bool

Implemented in SlaxWeb\DatabasePDO\Result.

SlaxWeb\Database\Interfaces\Result::row ( int  $row)

Jump to row

Move the internal pointer to the passed in row of the result array. If there is no row found under the passed in row, bool(false) is returned, otherwise bool(true) is returned.

Parameters
int$rowRow number
Returns
bool

Implemented in SlaxWeb\DatabasePDO\Result.

SlaxWeb\Database\Interfaces\Result::rowCount ( )

Get row count

Get the row count of the result set.

Returns
int

Implemented in SlaxWeb\DatabasePDO\Result.


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