CategoryItemContext

Context class with additional data, required for all item category views.

Namespace

Ceres\Contexts

Extends
Implements
Properties
Type Name Description

int

$currentPage

Current page of items.

int

$pageMax

Last page for items.

int

$itemsPerPage

How many items are included in one page.

int

$itemCountPage

Deprecated: since 5.0.20 will be removed in 6.0.0

int

$itemCountTotal

Count of all items in the item result.

string

$itemSorting

Sorting key for the item result.

array

$query

Contains items per page count and the sorting key for the item result.

string

$suggestionString

Suggestion for the shop search.

array

$itemList

Item result.

array

$facets

Facets that were selected to filter the item result.

SearchOptions

$searchOptions

Methods
public init($params)
Parameters

Type

Name

Description

``

$params

public initItemList($defaultSearchFactories, $options, $scope = \Ceres\Helper\SearchOptions::SCOPE_CATEGORY)
Parameters

Type

Name

Description

array

$defaultSearchFactories

Search factories to request the item data.

array

$options

Search options to filter the item data.

string

$scope

The scope where the search is executed from.