OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet Class Reference
+ Inheritance diagram for OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet:
+ Collaboration diagram for OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet:

Public Member Functions

 __construct (Statement $statement)
 
 close ()
 
 fetchRow ()
 
 fetchAll ()
 
 fieldCount ()
 
 getIterator ()
 
 getFields ()
 
 count ()
 

Public Attributes

 $fields
 
 $EOF
 

Protected Member Functions

 getStatement ()
 
 setStatement (Statement $statement)
 
 setToEmptyState ()
 

Protected Attributes

 $statement
 

Private Attributes

 $currentRow = 0
 

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::__construct ( Statement  $statement)

DoctrineResultSet constructor.

Parameters
Statement$statementThe statement we want to wrap in this class.

Member Function Documentation

◆ close()

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::close ( )

◆ count()

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::count ( )

Count elements of an object This method is executed when using the count() function on an object implementing Countable.

Returns
int The number of rows retrieved by the current statement.

◆ fetchAll()

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::fetchAll ( )

Returns an array containing all of the result set rows

Returns
array

◆ fetchRow()

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::fetchRow ( )

Fetches the next row from a result set and fills the fields array.

Returns
mixed The return value of this function on success depends on the fetch type. In all cases, FALSE is returned on failure.

◆ fieldCount()

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::fieldCount ( )

Returns the number of columns in the result set.

Returns
int The number of columns.

◆ getFields()

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::getFields ( )

Returns fields array

Returns
array containing the retrieved fields of the resultSet row

◆ getIterator()

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::getIterator ( )

Returns an external iterator.

Returns
Statement The Statment class implements Traversable

◆ getStatement()

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::getStatement ( )
protected

Getter for the adapted statement.

Returns
Statement The adapted statement.

◆ setStatement()

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::setStatement ( Statement  $statement)
protected

Setter for the adapted statement.

Parameters
Statement$statementThe adapted statement.

◆ setToEmptyState()

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::setToEmptyState ( )
protected

Set the state of this wrapper to 'empty'.

Member Data Documentation

◆ $currentRow

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::$currentRow = 0
private

◆ $EOF

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::$EOF

◆ $fields

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::$fields

◆ $statement

OxidEsales\EshopCommunity\Core\Database\Adapter\Doctrine\ResultSet::$statement
protected

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