Class ProductListProvider
| category |
System |
|---|---|
| package |
Product |
| subpackage |
Providers |
__construct(\CI_DB_query_builder $query_builder)
\CI_DB_query_builder
_applyDefaultSorting()
_applyExtraConditions() : \ProductListProvider
_applyPagination(\Pager|null $pager = null) : $this|\ProductListProvider
_applySorting(array $sorters = array()) : $this|\ProductListProvider
| Throws |
|
|---|
arrayArray of Sorter objects.
$this|\ProductListProviderSame instance for chained method calls.
_getFieldMap() : \array.
\array.
_parseOrderByString(\StringType|null $orderBy = null) : array
arraywith sort information structured as ['field'=>'', 'direction'=>''].
_prepareCollection(array $result) : \ProductListItemCollection
| Throws |
|
|---|
arrayQuery result.
\ProductListItemCollection
_select() : \ProductListProvider
_selectWithCategories() : \ProductListProvider
_translateOrderByStringIntoArrayOfSorter(\StringType|null $orderBy = null) : array
arrayof Sorter objects.
_translateToDatabaseField(\string $fieldName) : \string.
| Throws |
|
|---|
\stringObject Field name.
\string.
_translateToJsonFieldName(\StringType $databaseFieldName) : string|FALSE
\StringTypethe database field name. It can be supplied as table.fieldName or fieldName.
string|FALSEwill return the field name or FALSE if the field doesn't exist.
getAll() : \ProductListItemCollection
getAllPaged(\Pager|null $pager = null, array $sorters = array()) : \ProductListItemCollection
array(Optional) array of Sorter objects with data sorting information
\ProductListItemCollection
getByCategoryId(\IdType $categoryId) : \ProductListItemCollection
| Throws |
|
|---|
\ProductListItemCollection
searchProducts(\ProductSearchCondition $condition, \Pager|null $pager = null, array $sorters = array()) : \ProductListItemCollection
array(Optional) array of Sorter objects with data sorting information
\ProductListItemCollection
searchProductsCount(\ProductSearchCondition $condition) : \IntType
fieldMap :
| var |
|---|
conditions : array
| var |
|---|
array
productRepository : \ProductRepositoryInterface
db : \\CI_DB_query_builder
| var |
|---|
\\CI_DB_query_builder