SpecialOfferReader

Implements \SpecialOfferReaderInterface

package

Default

Methods

SpecialOfferReader constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Returns all special offers.

fetchAll(\IntType $limit, \IntType $offset) : array|null

Arguments

$limit

\IntType

Quantity of returned items.

$offset

\IntType

Offset of returned items.

Response

array|null

Raw data of special offers.

Fetches special offer data by the given condition.

fetchBy(\IntType $limit, \IntType $offset, \StringType $searchCondition) : array|null

Arguments

$limit

\IntType

Quantity of returned items.

$offset

\IntType

Offset of returned items.

$searchCondition

\StringType

Search condition for special offer data.

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

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

table

table : string
var

Type(s)

string