SpecialOfferReader

Extends \AbstractDataPaginator Implements \SpecialOfferReaderInterface

package

Default

Methods

ManufacturerReader constructor.

__construct(\CI_DB_query_builder $query_builder) 
inherited

Arguments

$query_builder

\CI_DB_query_builder

Translate an order by sql instruction into a array of Sorter

_translateOrderByStringIntoArrayOfSorter(\StringType|null $orderBy = null) : array
inherited

Arguments

$orderBy

\StringType|null

SQL instruction with fields to sort.

Response

array

of Sorter objects.

Returns all special offers.

fetchAll(\Pager|null $pager = null, array $sorters = array()) : array|null

Arguments

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

array|null

Raw data of special offers.

Fetches special offer data by the given condition.

fetchBy(\StringType $searchCondition, \Pager|null $pager = null, array $sorters = array()) : array|null

Arguments

$searchCondition

\StringType

Search condition for special offer data.

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

array|null

Raw data of special offers.

Fetches special offer data by the given id.

fetchById(\IdType $specialOfferId) : array|null

Arguments

$specialOfferId

\IdType

Id of expected special offer data.

Response

array|null

Raw data of a special offer.

Properties