VariationSearchFactory
Concrete factory to build variation searches
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Namespace
IO\Services\ItemSearch\Factories
Methods
public __construct()
public setAdminPreview($isAdminPreview):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Type |
Name |
Description |
|
public isActive():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter active variations
public isInactive():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter inactive variations
public hasItemId($itemId):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variation by a single item id
Type |
Name |
Description |
|
Item id to filter by. |
public hasItemIds($itemIds):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations by multiple item ids
Type |
Name |
Description |
|
List of item ids to filter by. |
public hasVariationId($variationId):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variation by a single variation id.
Type |
Name |
Description |
|
The variation id to filter by. |
public hasVariationIds($variationIds):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations by multiple variation ids.
Type |
Name |
Description |
|
List of variation ids to filter by. |
public hasAtLeastOneAvailability($availabilityIds):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations by multiple availability ids.
Type |
Name |
Description |
|
List of availability ids to filter by. |
public hasSupplier($supplierId):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations by multiple availability ids.
Type |
Name |
Description |
|
The supplier id to filter by. |
public hasManufacturer($manufacturerId):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter manufacturers by id.
Type |
Name |
Description |
|
To filter by manufacturer |
public hasEachProperty($propertyIds):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations by multiple property ids.
Type |
Name |
Description |
|
The property ids to filter by. |
public isMain():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter only main variations
public isChild():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter only child variations
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter by visibility in category list.
Type |
Name |
Description |
|
Visibility in category list to filter by. |
public isSalable():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations by isSalable flag
public isVisibleForClient($clientId = null):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations by visibility for client
Type |
Name |
Description |
|
The client id to filter by. If null, default client id on application will be used. |
public hasNameInLanguage($type = \Plenty\Modules\Item\Search\Filter\TextFilter::FILTER_ANY_NAME, $lang = null):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations having texts in a given language.
Type |
Name |
Description |
|
The text field to filter by ('hasAny', 'hasName1', 'hasName2', 'hasName3') |
|
|
The language to filter by. If null, language defined in session will be used. |
public isInCategory($categoryId):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations contained in a category.
Type |
Name |
Description |
|
A category id to filter variations by. |
public hasAtLeastOnePrice($priceIds):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations having at least on price.
Type |
Name |
Description |
|
List of price ids to filter variations by |
public hasPriceForCustomer():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations having at least one price accessible by current customer.
public hasPriceInRange($priceMin, $priceMax):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Type |
Name |
Description |
|
||
|
public hasTag($tagId):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Type |
Name |
Description |
|
public hasAnyTag($tagIds):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Type |
Name |
Description |
|
public groupByTemplateConfig($key = "ids.itemAttributeValue"):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Group results depending on a config value.
Type |
Name |
Description |
|
public isCrossSellingItem($itemId, $relation):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations having a cross selling relation to a given item.
Type |
Name |
Description |
|
Item id to filter cross selling items for |
|
|
The relation of cross selling items. |
public hasFacets($facetValues, $clientId = null, $lang = null):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations by facets.
Type |
Name |
Description |
|
List of facet values. If string is given, it will be exploded by ';' |
|
|
Client id to filter facets by. If null, default client id from application will be used. |
|
|
Language to filter facets by. If null, active language from session will be used. |
public hasSearchString($query, $lang = null, $searchType = \Plenty\Modules\Cloud\ElasticSearch\Lib\ElasticSearch::SEARCH_TYPE_EXACT, $operator = \Plenty\Modules\Cloud\ElasticSearch\Lib\ElasticSearch::OR_OPERATOR):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations by given search string.
Type |
Name |
Description |
|
The search string to filter variations by |
|
|
The language to apply search on. If null, default language from session will be used |
|
|
Type of the search ('exact', 'fuzzy', 'autocomplete') |
|
|
Operator ot be used for search |
public hasNameString($query, $lang = null):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Filter variations by searching names
Type |
Name |
Description |
|
The search string |
|
|
Language to apply search on. If null, default language from session will be used. |
public withLanguage($lang = null):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Only request given language.
Type |
Name |
Description |
|
Language to get texts for. If null, default language from session will be used. |
public withImages($clientId = null):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Include images in result
Type |
Name |
Description |
|
The client id to get images for. If null, default client id from application will be used. |
public withAttributes():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Includes VariatonAttributeMap for variation select
public withPropertyGroups():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
public withOrderPropertySelectionValues():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
public withVariationProperties():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
public withUrls():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Append URLs to result.
public withPrices($params):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Append prices to result.
Type |
Name |
Description |
|
Params to be passed to price search. |
public withCurrentCategory():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Set result as current category
public withDefaultImage():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Append default item image if images are requested by result fields and item does not have any image
public withBundleComponents():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
public withLinkToContent():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
public withGroupedAttributeValues():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
public withReducedResults($removeProperties = false):Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Type |
Name |
Description |
|
public withAvailability():Factories
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |
Deprecated!
since 5.0.0 will be deleted in 6.0.0 |