Methods
ManufacturerReader constructor.
__construct(\CI_DB_query_builder $query_builder)
Arguments
$query_builder
\CI_DB_query_builder
Applies the class default sorting
_applyDefaultSorting()
abstract
Applies a sorting based on sorter param (if sorting is supplied) or apply default sorting.
_applySorting(array $sorters = array()) : $this|\ProductListProvider
Throws |
- \InvalidArgumentException
if some element of the $sorters array is not a instance of Sorter object
|
Arguments
$sorters
array
Array of Sorter objects.
Response
$this|\ProductListProvider
Same instance for chained method calls.
return the child class Field Map array.
_getFieldMap() : \array.
abstract
Parse an order by sql query into a array with fieldname and direction.
_parseOrderByString(\StringType|null $orderBy = null) : array
Arguments
Response
array
with sort information structured as ['field'=>'', 'direction'=>''].
Translate an order by sql instruction into a array of Sorter
_translateOrderByStringIntoArrayOfSorter(\StringType|null $orderBy = null) : array
Arguments
$orderBy
\StringType|null
SQL instruction with fields to sort.
Response
array
of Sorter objects.
Return the related database field of a given object(Entity) field.
_translateToDatabaseField(\string $fieldName) : \string.
Throws |
- \InvalidArgumentException
if the provided field name is not a valid mapped field
|
Arguments
$fieldName
\string
Object Field name.
Response
\string.
Parse an order by sql query into a array with fieldname and direction.
_translateToJsonFieldName(\StringType $databaseFieldName) : string|FALSE
Arguments
$databaseFieldName
\StringType
the database field name. It can be supplied as table.fieldName or fieldName.
Response
string|FALSE
will return the field name or FALSE if the field doesn't exist.
Properties
db
db : \\CI_DB_query_builder
Type(s)
\\CI_DB_query_builder