Documentation

Shop_Controller_Show extends Core_Controller
in package

Показ магазина.

Доступные методы:

  • group($id) идентификатор группы магазина или массив идентификаторов, если FALSE, то вывод товаров осуществляется из всех групп
  • subgroups(TRUE|FALSE) отображать товары из подгрупп, доступно при указании в group() одного идентификатора родительской группы (не массива), по умолчанию FALSE
  • groupsProperties(TRUE|FALSE|array()) выводить значения дополнительных свойств групп, по умолчанию FALSE. Может принимать массив с идентификаторами дополнительных свойств, значения которых необходимо вывести
  • groupsPropertiesList(TRUE|FALSE|array()) выводить список дополнительных свойств групп товаров, по умолчанию TRUE
  • propertiesForGroups(array()) устанавливает дополнительное ограничение на вывод значений дополнительных свойств групп для массива идентификаторов групп (каким группам выводить доп. св-ва)
  • groupsMode('tree') режим показа групп, может принимать следующие значения: none — не показывать группы, tree — показывать дерево групп и все группы на текущем уровне (по умолчанию), all — показывать все группы.
  • item(123) идентификатор показываемого товара
  • itemsProperties(TRUE|FALSE|array()) выводить значения дополнительных свойств товаров, по умолчанию FALSE. Может принимать массив с идентификаторами дополнительных свойств, значения которых необходимо вывести.
  • itemsPropertiesList(TRUE|FALSE|array()) выводить список дополнительных свойств товаров, по умолчанию TRUE. Ограничения на список свойств в виде массива влияет и на выборку значений свойств товара.
  • sortPropertiesValues(TRUE|FALSE) сортировать значения дополнительных свойств, по умолчанию TRUE.
  • commentsProperties(TRUE|FALSE|array()) выводить значения дополнительных свойств комментариев, по умолчанию FALSE. Может принимать массив с идентификаторами дополнительных свойств, значения которых необходимо вывести.
  • commentsPropertiesList(TRUE|FALSE|array()) выводить список дополнительных свойств комментариев, по умолчанию TRUE. Ограничения на список свойств в виде массива влияет и на выборку значений свойств товара.
  • itemsPropertiesListJustAvailable(TRUE|FALSE) выводить только доступные значения у свойства. При использовании быстрого фильтра и включенном filterCounts(TRUE) будут выводиться доступные значения с учетом заданных фильтру ограничений, в противном случае будут выбираться значения, доступные товарам группы без учета заданных фильтру ограничений, по умолчанию FALSE
  • groupsMedia(TRUE|FALSE) выводить значения библиотеки файлов для групп, по умолчанию FALSE
  • itemsMedia(TRUE|FALSE) выводить значения библиотеки файлов для товаров, по умолчанию FALSE
  • warehouseMode('all'|'in-stock'|'in-stock-modification'|'out-of-stock') режим вывода товаров: 'all' — все (по умолчанию), 'in-stock' — на складе, 'in-stock-modification' — на складе или модификация товара в наличии на складе, 'out-of-stock' — отсутствует на складе.
  • parentItem(123) идентификатор родительского товара для отображаемой модификации
  • modifications(TRUE|FALSE) показывать модификации для выбранных товаров, по умолчанию FALSE
  • modificationsList(TRUE|FALSE) показывать модификации товаров текущей группы на уровне товаров группы, по умолчанию FALSE
  • modificationsGroup(TRUE|FALSE) группировать и показывать родительский товар вместо модификаций, необходимо использовать совместно с modificationsList(TRUE), по умолчанию FALSE
  • filterShortcuts(TRUE|FALSE) выбирать ярлыки товаров текущей группы на уровне товаров группы, по умолчанию FALSE. Используется для фильтрации по дополнительным свойствам
  • parseFilterInUrl(TRUE|FALSE) разбирать условия фильтра из строки запроса, по умолчанию TRUE
  • addFilter() добавить условие отобра товаров, может задавать условие отобра по цене ->addFilter('price', '>', 100), по значению свойства ->addFilter('property', 17, '=', 1) или по основному свойству, например, ->addFilter('weight', '>=', 50)
  • filterCounts(TRUE|FALSE) производить подсчет количества соответсвующих свойству значений в текущей группе при использовании быстрого фильтра, по умолчанию FALSE
  • filterStrictMode(TRUE|FALSE|array()) фильтровать только по существующим значениям (кроме списков и checkbox), отсутствие значения считать неверным значением. Если указан массив с идентификаторами свойств, то только для них будет использоваться строгий режим, по умолчанию FALSE
  • specialprices(TRUE|FALSE) показывать специальные цены для выбранных товаров, по умолчанию FALSE
  • seoFilters(TRUE|FALSE) показывать подходящие для текущей группы SEO-фильтры, по умолчанию FALSE
  • associatedItems(TRUE|FALSE) показывать сопутствующие товары для выбранных товаров, по умолчанию FALSE
  • comments(TRUE|FALSE) показывать комментарии для выбранных товаров, по умолчанию FALSE
  • commentsRating(TRUE|FALSE) показывать оценки комментариев для выбранных товаров, по умолчанию FALSE
  • tabs(TRUE|FALSE) показывать вкладки для выбранных товаров и групп, по умолчанию FALSE
  • votes(TRUE|FALSE) показывать рейтинг элемента, по умолчанию TRUE
  • tags(TRUE|FALSE) выводить метки, по умолчанию FALSE
  • calculateCounts(TRUE|FALSE) вычислять общее количество товаров и групп в корневой группе, по умолчанию FALSE
  • siteuser(TRUE|FALSE) показывать данные о пользователе сайта, связанного с выбранным товаром, по умолчанию TRUE
  • siteuserProperties(TRUE|FALSE) выводить значения дополнительных свойств пользователей сайта, по умолчанию FALSE
  • sets(TRUE|FALSE) показывать состав комплектов товаров, по умолчанию TRUE
  • bonuses(TRUE|FALSE) выводить бонусы для товаров, по умолчанию TRUE
  • barcodes(TRUE|FALSE) выводить штрихкоды для товаров, по умолчанию FALSE
  • comparing(TRUE|FALSE) выводить сравниваемые товары, по умолчанию TRUE
  • comparingLimit(10) максимальное количество выводимых сравниваемых товаров, по умолчанию 10
  • favorite(TRUE|FALSE) выводить избранные товары, по умолчанию TRUE
  • favoriteLimit(10) максимальное количество выводимых избранных товаров, по умолчанию 10
  • favoriteOrder('ASC'|'DESC'|'RAND') направление сортировки избранных товаров, по умолчанию RAND
  • viewed(TRUE|FALSE) выводить просмотренные товары, по умолчанию TRUE
  • viewedLimit(10) максимальное количество выводимых просмотренных товаров, по умолчанию 10
  • viewedOrder('ASC'|'DESC'|'RAND') направление сортировки просмотренных товаров, по умолчанию DESC
  • orderBy('shop_items.name', 'ASC') задает направление сортировки товаров
  • cart(TRUE|FALSE) выводить товары в корзине, по умолчанию FALSE
  • warehousesItems(TRUE|FALSE) выводить остаток на каждом складе для товара, по умолчанию FALSE
  • taxes(TRUE|FALSE) выводить список налогов, по умолчанию FALSE
  • offset($offset) смещение, с которого выводить товары, по умолчанию 0
  • limit($limit) количество выводимых товаров, по умолчанию 10
  • page(2) текущая страница, по умолчанию 0, счет ведется с 0
  • pattern($pattern) шаблон разбора данных в URI, см. __construct()
  • tag($path) путь тега, с использованием которого ведется отбор товаров
  • producer($producer_id) идентификатор производителя, с использованием которого ведется отбор товаров
  • cache(TRUE|FALSE) использовать кэширование, по умолчанию TRUE
  • itemsActivity('active'|'inactive'|'all') отображать элементы: active — только активные, inactive — только неактивные, all — все, по умолчанию — active
  • groupsActivity('active'|'inactive'|'all') отображать группы: active — только активные, inactive — только неактивные, all — все, по умолчанию — active
  • commentsActivity('active'|'inactive'|'all') отображать комментарии: active — только активные, inactive — только неактивные, all — все, по умолчанию - active
  • calculateTotal(TRUE|FALSE) вычислять общее количество найденных, по умолчанию TRUE
  • showPanel(TRUE|FALSE) показывать панель быстрого редактирования, по умолчанию TRUE
  • addAllowedTags('/node/path', array('description')) массив тегов для элементов, указанных в первом аргументе, разрешенных к передаче в генерируемый XML
  • addForbiddenTags('/node/path', array('description')) массив тегов для элементов, указанных в первом аргументе, запрещенных к передаче в генерируемый XML
  • getItemDataCallback($callback) callback-функция для обработки массива товаров для метода getData()/getJson(), по умолчанию _getItemData() текущего контроллера
  • getGroupDataCallback($callback) callback-функция для обработки массива групп для метода getData()/getJson(), по умолчанию _getGroupData() текущего контроллера

Устаревшие методы:

  • groupsForbiddenTags(array('description')) массив тегов групп, запрещенных к передаче в генерируемый XML
  • itemsForbiddenTags(array('description')) массив тегов товаров, запрещенных к передаче в генерируемый XML

Доступные свойства:

  • total общее количество доступных для отображения записей
  • patternParams массив данных, извелеченных из URI при применении pattern
  • filterSeo примененный Shop_Filter_Seo
  • getShownIDs() получить идентификаторы показанных товаров

Доступные пути для методов addAllowedTags/addForbiddenTags:

  • '/' или '/shop' Магазин
  • '/shop/shop_group' Группы магазина
  • '/shop/shop_item' Товары магазина
  • '/shop/comparing/shop_item' Сравниваемые товары, если не указаны, используются правила для '/shop/shop_item'
  • '/shop/favorite/shop_item' Избранные товары, если не указаны, используются правила для '/shop/shop_item'
  • '/shop/viewed/shop_item' Просмотренные товары, если не указаны, используются правила для '/shop/shop_item'
  • '/shop/items_in_cart/shop_item' Товары в корзине, если не указаны, используются правила для '/shop/shop_item'
  • '/shop/shop_item/shop_item' Родительский товар модификации, если не указаны, используются правила для '/shop/shop_item'
  • '/shop/shop_filter_seos/shop_filter_seo' Доступные SEO-фильтры
  • '/shop/tag' Примененный Tag для фильтрации
  • '/shop/shop_producer' Примененный производитель для фильтрации
  • '/shop/shop_filter_seo' Примененный SEO-фильтр
  • '/shop/shop_group_properties/property' Свойство в списке свойств группы
  • '/shop/shop_group_properties/property_dir' Раздел свойств в списке свойств группы
  • '/shop/shop_item_properties/property' Свойство в списке свойств товара
  • '/shop/shop_item_properties/property_dir' Раздел свойств в списке свойств товара
$Shop_Controller_Show = new Shop_Controller_Show( Core_Entity::factory('Shop', 1) );

$Shop_Controller_Show ->xsl( Core_Entity::factory('Xsl')->getByName('МагазинКаталогТоваров') ) ->limit(5) ->show();

Tags
subpackage

Shop

version
7.x
author

Hostmake LLC

copyright

© 2005-2024 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

Properties

$_aComment_Properties  : array<string|int, mixed>
List of properties for item
$_aComment_Property_Dirs  : array<string|int, mixed>
List of property directories for item
$_addedAbsolutePrice  : bool
AbsolutePrice has been added
$_aFilterAvailableMainValues  : array<string|int, mixed>
Main proprties available for filter
$_aFilterMainProperties  : array<string|int, mixed>
Array of Main properties conditions, see addFilter()
$_aFilterPrices  : array<string|int, mixed>
Array of Price conditions, see addFilter()
$_aFilterProperties  : array<string|int, mixed>
Array of Properties conditions, see addFilter()
$_aGroup_Properties  : array<string|int, mixed>
List of properties for group
$_aGroup_Property_Dirs  : array<string|int, mixed>
List of property directories for group
$_aGroupTree  : null|array<string|int, mixed>
Groups Tree For fillShopGroups()
$_aItem_Properties  : array<string|int, mixed>
List of properties for item
$_aItem_Property_Dirs  : array<string|int, mixed>
List of property directories for item
$_allowedProperties  : array<string|int, mixed>
Allowed object properties
$_allowedTags  : array<string|int, mixed>
Allowed tags for specified elements
$_appliedFilter  : null|int
Applied Filter. 0 - basic, 1 - fast
$_aShop_Groups  : array<string|int, mixed>
List of groups of shop
$_aSiteuserGroups  : array<string|int, mixed>
Array of siteuser's groups allowed for current siteuser
$_attributePrefix  : string
Attribute's prefix
$_cacheApplyForbiddenAllowedTags  : array<string|int, mixed>
Cache for applyForbiddenAllowedTags
$_cacheGetFilterPropertiesByGroup  : array<string|int, mixed>
Cache for getFilterProperties
$_cacheName  : string
Cache name
$_cacheTags  : array<string|int, mixed>
Cache tags
$_entities  : array<string|int, mixed>
List of children entities
$_entity  : Core_Entity
Entity
$_errorCode  : int|null
Error code
$_filterPath  : mixed
$_forbiddenTags  : array<string|int, mixed>
Forbidden tags for specified elements
$_itemsPropertiesListCount  : array<string|int, mixed>
Cache values for filterCounts
$_itemsPropertiesListJustAvailable  : mixed
List items's ID by fast filter for $this->itemsPropertiesListJustAvailable
$_mode  : string
Controller's mode
$_oTag  : null|Tag_Model
Current Tag
$_propertiesValues  : array<string|int, mixed>
Properties values
$_selectModifications  : bool
Select modififactions, default's TRUE
$_seoGroupDescription  : mixed
$_seoGroupH1  : mixed
$_seoGroupKeywords  : mixed
$_seoGroupTitle  : mixed
$_seoItemDescription  : mixed
$_seoItemH1  : mixed
$_seoItemKeywords  : mixed
$_seoItemTitle  : mixed
$_Shop_Groups  : Shop_Group_Model
Shop's groups object
$_Shop_Items  : Shop_Item_Model
Shop's items object
$_shownIDs  : array<string|int, mixed>
Shown IDs
$_sortingColumn  : string|null
Current Sorting Column
$_sortingDirection  : string|null
Current Sorting Direction
$_subgroups  : array<string|int, mixed>
Array of subgroups
$_tpl  : Tpl_Model
TPL
$_unlimitedProperties  : bool
Object has unlimited number of properties
$_vars  : array<string|int, mixed>
Variables/objects to the TPL-template
$_xsl  : Xsl_Model
XSL

Methods

__construct()  : mixed
Constructor.
addAbsolutePrice()  : self
Add `price_absolute` to the query
addAllGroups()  : self
Add all groups to XML
addAllowedProperties()  : self
Add additional allowed properties
addAllowedProperty()  : self
Add additional allowed property
addAllowedTag()  : self
Add tag to allowed tags list
addAllowedTags()  : self
Add tags to allowed tags list
addCacheSignature()  : self
Add additional signature for cache name
addCacheTag()  : self
Add Cache Tag
addEntities()  : self
Add enities
addEntity()  : self
Add a children entity
addFilter()  : mixed
Add filter condition ->addFilter('property', 17, '=', 33) // Property 17 ->addFilter('price', '>', 100) // Item Price ->addFilter('weight', '>', 5) // Main Property
addForbiddenTag()  : self
Add tag to forbidden tags list
addForbiddenTags()  : self
Add tags to forbidden tags list
addIntoViewed()  : self
Add into viewed list
addIntoViwed()  : mixed
addMinMaxHeight()  : self
Add minimum and maximum height
addMinMaxLength()  : self
Add minimum and maximum length
addMinMaxPrice()  : self
Add minimum and maximum price
addMinMaxWeight()  : self
Add minimum and maximum weight
addMinMaxWidth()  : self
Add minimum and maximum width
addProducers()  : self
Add Producers to the XML
addShortcutConditions()  : self
Add shortcut conditions
addTreeGroups()  : self
Add tree groups to XML
append()  : self
Append an element to an assigned array
applyAbsolutePrice()  : Core_QueryBuilder_Select
Apply `price_absolute` to the Query Builder
applyFastFilterPrices()  : self
Apply Fast Filter Prices
applyFastFilterProperties()  : self
Apply Fast Filter Properties
applyFilter()  : self
Apply Filter
applyFilterGroupCondition()  : self
Apply Condition By Group, depends on $this->group, $this->subgroups
applyForbiddenAllowedTags()  : self
Apply Forbidden-Allowed Tags for Entity
applyGroupCondition()  : self
Apply item's condition by shop_group_id
applyGroupsForbiddenTags()  : self
Apply forbidden xml tags for groups
applyItemCondition()  : self
Apply item's conditions
applyItemsForbiddenTags()  : self
Apply forbidden xml tags for items
assign()  : self
Assign variables/objects to the TPL-template
clearCacheTag()  : self
Clear Cache Tag
clearEntities()  : self
Clear enities
clearVars()  : self
Clear vars
error403()  : self
Define handler for 403 error
error404()  : self
Define handler for 404 error
fillShopGroups()  : array<string|int, mixed>
Fill $this->_aGroupTree array
filterProducer()  : string
Get producer name
forbidSelectModifications()  : self
External forbids to select modifications. Do not execute with ->modificationsList(TRUE)
forbidSelectShortcuts()  : self
Disable shortcuts
get()  : string
Get HTML based by entities tree, use XSL $this->_xsl
getAllowedTags()  : array<string|int, mixed>
Get allowed tags list
getCacheTags()  : array<string|int, mixed>
Get Cache Tags
getCommentProperties()  : array<string|int, mixed>
Get _aComment_Properties set
getCommentPropertyDirs()  : array<string|int, mixed>
Get _aItem_Property_Dirs set
getCount()  : int
Get Count Of Found Shop_Items
getData()  : array<string|int, mixed>
Prepare date
getEntities()  : array<string|int, mixed>
Get enities
getEntity()  : object
Get entity
getFastFilteredCount()  : int
Get Count Of Found Shop_Items By Fast Filter
getFilterGroupTableName()  : string
Get Filter Group Table Name
getFilterMainProperties()  : array<string|int, mixed>
Get Filter Main Properties
getFilterPath()  : string
Get _filterPath
getFilterPriceAvailableFields()  : mixed
getFilterPrices()  : array<string|int, mixed>
Get Filter Prices
getFilterPriceTableName()  : string
Get Filter Price Table Name
getFilterProperties()  : array<string|int, mixed>
Get Filter Properties
getFilterPropertiesByGroup()  : array<string|int, mixed>
Get array of properties available for filter
getFilterTableName()  : string
Get Filter Table Name
getForbiddenTags()  : array<string|int, mixed>
Get forbidden tags list
getGroupProperties()  : array<string|int, mixed>
Get _aGroup_Properties set
getGroupPropertyDirs()  : array<string|int, mixed>
Get _aGroup_Property_Dirs set
getItemProperties()  : array<string|int, mixed>
Get _aItem_Properties set
getItemPropertyDirs()  : array<string|int, mixed>
Get _aItem_Property_Dirs set
getJson()  : string
Get JSON
getPattern()  : string
Get Pattern
getSeoGroupH1()  : string|null
Get SEO Group's H1
getSeoItemH1()  : string|null
Get SEO Items's H1
getShopGroups()  : array<string|int, mixed>
Get _aShop_Groups set
getShopItems()  : array<string|int, mixed>
Get Shop_Items
getShownIDs()  : array<string|int, mixed>
Get shown IDs
getStdObject()  : array<string|int, mixed>
Get ARRAY for entity and children entities
getSubgroups()  : array<string|int, mixed>
Get array of subgroups ID, inc. $group_id
getTpl()  : Tpl_Model
Get TPL
getXml()  : string
Get XML for entity and children entities
getXsl()  : Xsl_Model
Get XSL
inCache()  : null|true|false
Check if data is cached
isAllowedTag()  : bool
Check if a tag is allowed
isForbiddenTag()  : bool
Check if a tag is forbidden
isShopFilterJoined()  : mixed
mode()  : self
Set mode
orderBy()  : self
Sets goods sorting, clear all previous sorting
pageNumber()  : string
Get page number with template $template
parseUrl()  : self
Parse URL and set controller properties
prepareFastfilterQbForProperty()  : Core_QueryBuilder_Select
Prepare QueryBuilder for select fast filter by $oProperty
removeAllowedTag()  : self
Remove tag from allowed tags list
removeFilter()  : mixed
Remove filter condition ->removeFilter('property', 17) ->removeFilter('price') ->removeFilter('weight')
removeForbiddenTag()  : self
Remove tag from forbidden tags list
seoFilter()  : string
Get properties conditions for meta-tags
seoFilterPrices()  : string
Get prices conditions for meta-tags
set()  : self
Run when writing data to inaccessible properties
setAttributePrefix()  : self
Change attributePrefix
setEntity()  : self
Set entity
setFilterMainProperties()  : self
Set Filter Main Properties
setFilterPath()  : self
Set _filterPath
setFilterPrices()  : self
Set Filter Prices
setFilterPricesConditions()  : self
Set Filter Prices Conditions by price_from and price_to
setFilterProperties()  : self
Set Filter Properties
setFilterPropertiesConditions()  : self
Set Filter Prices Conditions by $aData
setUnlimitedProperties()  : self
Set unlimitedProperties
shopGroups()  : self
Get/set _Shop_Groups
shopItems()  : self
Get/set _Shop_Items
show()  : self
Show built data
tpl()  : self
Set TPL
xsl()  : self
Set XSL
_addCommentsPropertiesList()  : self
Add items properties to XML
_addComparing()  : self
Add comparing goods
_addFavorite()  : self
Add favorite goods
_addFilterMainPropertyToXml()  : self
Add Filter Main Property to the XML
_addFilterPriceToXml()  : self
Add Filter Price to the XML
_addFilterPropertyToXml()  : self
Add Filter Property to the XML
_addGroupsByParentId()  : self
Add groups by parent to XML
_addGroupsPropertiesList()  : self
Add groups properties to XML
_addItemsPropertiesList()  : self
Add list of item's properties to XML
_addViewed()  : self
Add viewed goods
_applyAbsolutePrice()  : Core_QueryBuilder_Select
Backward compatible.
_applyItemConditions()  : self
Apply item's conditions
_applyItemConditionsQueryBuilder()  : self
Apply item's conditions
_applyTagCondition()  : self
Apply tag's conditions for $oQB
_applyWarehouseConditions()  : self
Apply warehouse's conditions
_applyWarehouseConditionsQueryBuilder()  : self
Apply warehouse's conditions
_basicFilter()  : self
Apply Basic Filter
_basicFilterPrices()  : self
Apply Basic Filter Prices
_basicFilterProperties()  : self
Apply Basic Filter Properties
_commentsProperties()  : array<string|int, mixed>
Add list of comment properties
_convertReceivedPropertyValue()  : string
Convert property value, e.g. '23.11.2020' => '2020-11-23 00:00:00'
_fastFilter()  : self
Apply Fast Filter
_getGroupData()  : array<string|int, mixed>
Typical conversion of Shop_Groups to an array
_getItemData()  : array<string|int, mixed>
Typical conversion of Shop_Items to an array
_getListItemData()  : array<string|int, mixed>
Typical conversion of List_Item to an array
_getPropertyData()  : array<string|int, mixed>
Typical conversion of Property to an array
_getSiteuserGroups()  : array<string|int, mixed>
Get array of siteuser groups for current siteuser. Exists group 0 (all) and -1 (parent)
_getSubMinMaxQueryBuilder()  : mixed
_groupCondition()  : self
Backward compatible. Apply item's condition by shop_group_id
_groupIntoArray()  : self
Add group $oShop_Group into $this->_aShop_Groups
_incShowed()  : self
Inc Shop_Item->showed
_itemCondition()  : self
Backward compatible. Apply item's conditions.
_itemsProperties()  : array<string|int, mixed>
Add list of item properties
_joinShopFilter()  : mixed
_setGroupsActivity()  : self
Set groups activity
_setItemsActivity()  : self
Set items activity
_setLimitListItems()  : self
Set limitListItems conditions
_setLimits()  : self
Set offset and limit
_setShopGroups()  : self
Set group's conditions
_setShopItems()  : self
Set item's conditions
_showPanel()  : $this
Show frontend panel
_subquerySelectShortcuts()  : mixed

Properties

$_aComment_Properties

List of properties for item

protected array<string|int, mixed> $_aComment_Properties = array()

$_aComment_Property_Dirs

List of property directories for item

protected array<string|int, mixed> $_aComment_Property_Dirs = array()

$_addedAbsolutePrice

AbsolutePrice has been added

protected bool $_addedAbsolutePrice = \FALSE

$_aFilterAvailableMainValues

Main proprties available for filter

protected array<string|int, mixed> $_aFilterAvailableMainValues = array('length', 'width', 'height', 'weight')

$_aFilterMainProperties

Array of Main properties conditions, see addFilter()

protected array<string|int, mixed> $_aFilterMainProperties = array()

$_aFilterPrices

Array of Price conditions, see addFilter()

protected array<string|int, mixed> $_aFilterPrices = array()

$_aFilterProperties

Array of Properties conditions, see addFilter()

protected array<string|int, mixed> $_aFilterProperties = array()

$_aGroup_Properties

List of properties for group

protected array<string|int, mixed> $_aGroup_Properties = array()

$_aGroup_Property_Dirs

List of property directories for group

protected array<string|int, mixed> $_aGroup_Property_Dirs = array()

$_aGroupTree

Groups Tree For fillShopGroups()

protected null|array<string|int, mixed> $_aGroupTree = \NULL

$_aItem_Properties

List of properties for item

protected array<string|int, mixed> $_aItem_Properties = array()

$_aItem_Property_Dirs

List of property directories for item

protected array<string|int, mixed> $_aItem_Property_Dirs = array()

$_allowedProperties

Allowed object properties

protected array<string|int, mixed> $_allowedProperties = array('group', 'subgroups', 'groupsProperties', 'groupsPropertiesList', 'propertiesForGroups', 'groupsMode', 'groupsForbiddenTags', 'item', 'itemsProperties', 'itemsPropertiesList', 'sortPropertiesValues', 'commentsProperties', 'commentsPropertiesList', 'itemsPropertiesListJustAvailable', 'groupsMedia', 'itemsMedia', 'itemsForbiddenTags', 'warehouseMode', 'parentItem', 'modifications', 'modificationsList', 'modificationsGroup', 'filterShortcuts', 'parseFilterInUrl', 'filterCounts', 'filterStrictMode', 'specialprices', 'seoFilters', 'associatedItems', 'comments', 'commentsRating', 'tabs', 'votes', 'tags', 'calculateCounts', 'siteuser', 'siteuserProperties', 'sets', 'bonuses', 'barcodes', 'comparing', 'comparingLimit', 'favorite', 'favoriteLimit', 'favoriteOrder', 'viewed', 'viewedLimit', 'viewedOrder', 'cart', 'warehousesItems', 'taxes', 'offset', 'limit', 'page', 'total', 'pattern', 'patternExpressions', 'patternParams', 'patternAffiliate', 'patternTag', 'patternProducer', 'filterSeo', 'tag', 'producer', 'cache', 'itemsActivity', 'groupsActivity', 'commentsActivity', 'calculateTotal', 'showPanel', 'url', 'getItemDataCallback', 'getGroupDataCallback')

$_allowedTags

Allowed tags for specified elements

protected array<string|int, mixed> $_allowedTags = array()

$_appliedFilter

Applied Filter. 0 - basic, 1 - fast

protected null|int $_appliedFilter = \NULL

$_aShop_Groups

List of groups of shop

protected array<string|int, mixed> $_aShop_Groups = array()

$_aSiteuserGroups

Array of siteuser's groups allowed for current siteuser

protected array<string|int, mixed> $_aSiteuserGroups = array()

$_attributePrefix

Attribute's prefix

protected string $_attributePrefix = '_'

$_cacheApplyForbiddenAllowedTags

Cache for applyForbiddenAllowedTags

protected array<string|int, mixed> $_cacheApplyForbiddenAllowedTags = array()

$_cacheGetFilterPropertiesByGroup

Cache for getFilterProperties

protected array<string|int, mixed> $_cacheGetFilterPropertiesByGroup = array()

$_cacheName

Cache name

protected string $_cacheName = 'shop_show'

$_cacheTags

Cache tags

protected array<string|int, mixed> $_cacheTags = array()

$_entities

List of children entities

protected array<string|int, mixed> $_entities = array()

$_errorCode

Error code

protected int|null $_errorCode = \NULL

$_filterPath

protected mixed $_filterPath = \NULL

$_forbiddenTags

Forbidden tags for specified elements

protected array<string|int, mixed> $_forbiddenTags = array()

$_itemsPropertiesListCount

Cache values for filterCounts

protected array<string|int, mixed> $_itemsPropertiesListCount = array()

$_itemsPropertiesListJustAvailable

List items's ID by fast filter for $this->itemsPropertiesListJustAvailable

protected mixed $_itemsPropertiesListJustAvailable = array()

$_mode

Controller's mode

protected string $_mode = 'json'

$_propertiesValues

Properties values

protected array<string|int, mixed> $_propertiesValues = array()

$_selectModifications

Select modififactions, default's TRUE

protected bool $_selectModifications = \TRUE

$_seoGroupDescription

protected mixed $_seoGroupDescription = \NULL

$_seoGroupH1

protected mixed $_seoGroupH1 = \NULL

$_seoGroupKeywords

protected mixed $_seoGroupKeywords = \NULL

$_seoGroupTitle

protected mixed $_seoGroupTitle = \NULL

$_seoItemDescription

protected mixed $_seoItemDescription = \NULL

$_seoItemH1

protected mixed $_seoItemH1 = \NULL

$_seoItemKeywords

protected mixed $_seoItemKeywords = \NULL

$_seoItemTitle

protected mixed $_seoItemTitle = \NULL

$_shownIDs

Shown IDs

protected array<string|int, mixed> $_shownIDs = array()

$_sortingColumn

Current Sorting Column

protected string|null $_sortingColumn = \NULL

$_sortingDirection

Current Sorting Direction

protected string|null $_sortingDirection = \NULL

$_subgroups

Array of subgroups

protected array<string|int, mixed> $_subgroups = array()

$_unlimitedProperties

Object has unlimited number of properties

protected bool $_unlimitedProperties = \FALSE

$_vars

Variables/objects to the TPL-template

protected array<string|int, mixed> $_vars = array()

Methods

addAbsolutePrice()

Add `price_absolute` to the query

public addAbsolutePrice() : self
Return values
self

addAllGroups()

Add all groups to XML

public addAllGroups() : self
Return values
self

addAllowedProperties()

Add additional allowed properties

public addAllowedProperties(array<string|int, mixed> $array) : self
Parameters
$array : array<string|int, mixed>

array of properties' names

Return values
self

addAllowedProperty()

Add additional allowed property

public addAllowedProperty(string $property) : self
Parameters
$property : string

property name

Return values
self

addAllowedTag()

Add tag to allowed tags list

public addAllowedTag(string $path, string $tag) : self
Parameters
$path : string

Path to item, e.g. /shop/shop_item

$tag : string

tag

Return values
self

addAllowedTags()

Add tags to allowed tags list

public addAllowedTags(string $path[, array<string|int, mixed> $aTags = array() ]) : self
Parameters
$path : string

Path to item, e.g. /shop/shop_item

$aTags : array<string|int, mixed> = array()

array of tags

Return values
self

addCacheSignature()

Add additional signature for cache name

public addCacheSignature(string $name) : self
Parameters
$name : string

name

Return values
self

addCacheTag()

Add Cache Tag

public addCacheTag(string $tagName) : self
Parameters
$tagName : string
Return values
self

addEntities()

Add enities

public addEntities(array<string|int, mixed> $aChildrenEntities) : self
Parameters
$aChildrenEntities : array<string|int, mixed>

entities

Return values
self

addFilter()

Add filter condition ->addFilter('property', 17, '=', 33) // Property 17 ->addFilter('price', '>', 100) // Item Price ->addFilter('weight', '>', 5) // Main Property

public addFilter() : mixed

addForbiddenTag()

Add tag to forbidden tags list

public addForbiddenTag(string $path, string $tag) : self
Parameters
$path : string

Path to item, e.g. /shop/shop_item

$tag : string

tag

Return values
self

addForbiddenTags()

Add tags to forbidden tags list

public addForbiddenTags(string $path[, array<string|int, mixed> $aTags = array() ]) : self
Parameters
$path : string

Path to item, e.g. /shop/shop_item

$aTags : array<string|int, mixed> = array()

array of tags

Return values
self

addIntoViewed()

Add into viewed list

public addIntoViewed() : self
Return values
self

addIntoViwed()

public addIntoViwed() : mixed

addMinMaxHeight()

Add minimum and maximum height

public addMinMaxHeight() : self
Return values
self

addMinMaxLength()

Add minimum and maximum length

public addMinMaxLength() : self
Return values
self

addMinMaxPrice()

Add minimum and maximum price

public addMinMaxPrice() : self
Return values
self

addMinMaxWeight()

Add minimum and maximum weight

public addMinMaxWeight() : self
Return values
self

addMinMaxWidth()

Add minimum and maximum width

public addMinMaxWidth() : self
Return values
self

addProducers()

Add Producers to the XML

public addProducers() : self
Return values
self

addShortcutConditions()

Add shortcut conditions

public addShortcutConditions() : self
Return values
self

addTreeGroups()

Add tree groups to XML

public addTreeGroups() : self
Return values
self

append()

Append an element to an assigned array

public append(mixed $varname, mixed $var) : self
Parameters
$varname : mixed
$var : mixed
Return values
self

applyFastFilterProperties()

Apply Fast Filter Properties

public applyFastFilterProperties(Core_QueryBuilder_Select $QB[, array<string|int, mixed> $excludeIDs = array() ]) : self
Parameters
$QB : Core_QueryBuilder_Select
$excludeIDs : array<string|int, mixed> = array()
Return values
self

applyFilter()

Apply Filter

public applyFilter() : self
Return values
self

applyFilterGroupCondition()

Apply Condition By Group, depends on $this->group, $this->subgroups

public applyFilterGroupCondition(Core_QueryBuilder_Select $oQueryBuilder, string $fieldName) : self
Parameters
$oQueryBuilder : Core_QueryBuilder_Select
$fieldName : string
Return values
self

applyForbiddenAllowedTags()

Apply Forbidden-Allowed Tags for Entity

public applyForbiddenAllowedTags(string $path, Core_Entity|array<string|int, mixed> $mEntity) : self
Parameters
$path : string

Path to item, e.g. /shop/shop_item

$mEntity : Core_Entity|array<string|int, mixed>
Return values
self

applyGroupCondition()

Apply item's condition by shop_group_id

public applyGroupCondition() : self
Return values
self

applyGroupsForbiddenTags()

Apply forbidden xml tags for groups

public applyGroupsForbiddenTags(Shop_Group_Model $oShop_Group) : self
Parameters
$oShop_Group : Shop_Group_Model

group

Return values
self

applyItemCondition()

Apply item's conditions

public applyItemCondition() : self
Return values
self

applyItemsForbiddenTags()

Apply forbidden xml tags for items

public applyItemsForbiddenTags(Shop_Item_Model $oShop_Item) : self
Parameters
$oShop_Item : Shop_Item_Model

item

Return values
self

assign()

Assign variables/objects to the TPL-template

public assign(mixed $varname, mixed $var) : self
Parameters
$varname : mixed
$var : mixed
Return values
self

clearCacheTag()

Clear Cache Tag

public clearCacheTag() : self
Return values
self

clearEntities()

Clear enities

public clearEntities() : self
Return values
self

clearVars()

Clear vars

public clearVars() : self
Return values
self

error403()

Define handler for 403 error

public error403() : self
Return values
self

error404()

Define handler for 404 error

public error404() : self
Return values
self

fillShopGroups()

Fill $this->_aGroupTree array

public fillShopGroups([int $parent_id = 0 ]) : array<string|int, mixed>
Parameters
$parent_id : int = 0
Return values
array<string|int, mixed>

filterProducer()

Get producer name

public filterProducer() : string
Return values
string

forbidSelectModifications()

External forbids to select modifications. Do not execute with ->modificationsList(TRUE)

public forbidSelectModifications() : self
Return values
self

forbidSelectShortcuts()

Disable shortcuts

public forbidSelectShortcuts() : self
Return values
self

get()

Get HTML based by entities tree, use XSL $this->_xsl

public get() : string
Tags
see
getXml()
hostcms-event

Core_Controller.onBeforeShow

hostcms-event

Core_Controller.onAfterShow

Return values
string

getAllowedTags()

Get allowed tags list

public getAllowedTags() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCacheTags()

Get Cache Tags

public getCacheTags() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCommentProperties()

Get _aComment_Properties set

public getCommentProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCommentPropertyDirs()

Get _aItem_Property_Dirs set

public getCommentPropertyDirs() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCount()

Get Count Of Found Shop_Items

public getCount() : int
Return values
int

getData()

Prepare date

public getData() : array<string|int, mixed>
Return values
array<string|int, mixed>

getEntities()

Get enities

public getEntities() : array<string|int, mixed>
Return values
array<string|int, mixed>

getEntity()

Get entity

public getEntity() : object
Return values
object

getFastFilteredCount()

Get Count Of Found Shop_Items By Fast Filter

public getFastFilteredCount() : int
Return values
int

getFilterGroupTableName()

Get Filter Group Table Name

public getFilterGroupTableName() : string
Return values
string

getFilterMainProperties()

Get Filter Main Properties

public getFilterMainProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFilterPath()

Get _filterPath

public getFilterPath() : string
Return values
string

getFilterPriceAvailableFields()

public getFilterPriceAvailableFields() : mixed

getFilterPrices()

Get Filter Prices

public getFilterPrices() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFilterPriceTableName()

Get Filter Price Table Name

public getFilterPriceTableName() : string
Return values
string

getFilterProperties()

Get Filter Properties

public getFilterProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFilterPropertiesByGroup()

Get array of properties available for filter

public getFilterPropertiesByGroup(int $group_id) : array<string|int, mixed>
Parameters
$group_id : int
Return values
array<string|int, mixed>

getFilterTableName()

Get Filter Table Name

public getFilterTableName() : string
Return values
string

getForbiddenTags()

Get forbidden tags list

public getForbiddenTags() : array<string|int, mixed>
Return values
array<string|int, mixed>

getGroupProperties()

Get _aGroup_Properties set

public getGroupProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>

getGroupPropertyDirs()

Get _aGroup_Property_Dirs set

public getGroupPropertyDirs() : array<string|int, mixed>
Return values
array<string|int, mixed>

getItemProperties()

Get _aItem_Properties set

public getItemProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>

getItemPropertyDirs()

Get _aItem_Property_Dirs set

public getItemPropertyDirs() : array<string|int, mixed>
Return values
array<string|int, mixed>

getJson()

Get JSON

public getJson() : string
Return values
string

getPattern()

Get Pattern

public getPattern() : string
Return values
string

getSeoGroupH1()

Get SEO Group's H1

public getSeoGroupH1() : string|null
Return values
string|null

getSeoItemH1()

Get SEO Items's H1

public getSeoItemH1() : string|null
Return values
string|null

getShopGroups()

Get _aShop_Groups set

public getShopGroups() : array<string|int, mixed>
Return values
array<string|int, mixed>

getShopItems()

Get Shop_Items

public getShopItems() : array<string|int, mixed>
Tags
hostcms-event

Shop_Controller_Show.onBeforeSelectShopItems

Return values
array<string|int, mixed>

getShownIDs()

Get shown IDs

public getShownIDs() : array<string|int, mixed>
Return values
array<string|int, mixed>

getStdObject()

Get ARRAY for entity and children entities

public getStdObject() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSubgroups()

Get array of subgroups ID, inc. $group_id

public getSubgroups(int $group_id) : array<string|int, mixed>
Parameters
$group_id : int
Return values
array<string|int, mixed>

getXml()

Get XML for entity and children entities

public getXml() : string
Return values
string

inCache()

Check if data is cached

public inCache() : null|true|false
Return values
null|true|false

isAllowedTag()

Check if a tag is allowed

public isAllowedTag(string $path, string $tag) : bool
Parameters
$path : string

Path to item, e.g. /shop/shop_item

$tag : string

tag

Return values
bool

isForbiddenTag()

Check if a tag is forbidden

public isForbiddenTag(string $path, string $tag) : bool
Parameters
$path : string

Path to item, e.g. /shop/shop_item

$tag : string

tag

Return values
bool

isShopFilterJoined()

public isShopFilterJoined(mixed $QB) : mixed
Parameters
$QB : mixed

mode()

Set mode

public mode(string $mode) : self
Parameters
$mode : string
Return values
self

orderBy()

Sets goods sorting, clear all previous sorting

public orderBy( $column[, mixed $direction = 'ASC' ]) : self
Parameters
$column :

Column name, e.g. price

$direction : mixed = 'ASC'
Return values
self

pageNumber()

Get page number with template $template

public pageNumber([ $template = "%d" ]) : string
Parameters
$template : = "%d"

template, e.g. ", page %d"

Return values
string

parseUrl()

Parse URL and set controller properties

public parseUrl() : self
Tags
hostcms-event

Shop_Controller_Show.onBeforeParseUrl

hostcms-event

Shop_Controller_Show.onAfterParseUrl

hostcms-event

Shop_Controller_Show.onAfterParseUrlItemNotFound

hostcms-event

Shop_Controller_Show.onAfterParseUrlModificationNotFound

Return values
self

removeAllowedTag()

Remove tag from allowed tags list

public removeAllowedTag(string $path, string $tag) : self
Parameters
$path : string

Path to item, e.g. /shop/shop_item

$tag : string

tag

Return values
self

removeFilter()

Remove filter condition ->removeFilter('property', 17) ->removeFilter('price') ->removeFilter('weight')

public removeFilter() : mixed

removeForbiddenTag()

Remove tag from forbidden tags list

public removeForbiddenTag(string $path, string $tag) : self
Parameters
$path : string

Path to item, e.g. /shop/shop_item

$tag : string

tag

Return values
self

seoFilter()

Get properties conditions for meta-tags

public seoFilter([ $nameSeparator = ": " ][,  $valueSeparator = ", " ][,  $propertySeparator = "," ]) : string
Parameters
$nameSeparator : = ": "

property name separator, default ": "

$valueSeparator : = ", "

property value separator, default ", "

$propertySeparator : = ","

property separator, default ","

Return values
string

seoFilterPrices()

Get prices conditions for meta-tags

public seoFilterPrices([ $priceFrom = "from" ][,  $priceTo = "to" ]) : string
Parameters
$priceFrom : = "from"

From-prefix, default "from"

$priceTo : = "to"

To-prefix, default "to"

Return values
string

set()

Run when writing data to inaccessible properties

public set(string $property, string $value) : self
Parameters
$property : string

property name

$value : string

property value

Return values
self

setAttributePrefix()

Change attributePrefix

public setAttributePrefix(string $attributePrefix) : self
Parameters
$attributePrefix : string
Return values
self

setFilterMainProperties()

Set Filter Main Properties

public setFilterMainProperties(array<string|int, mixed> $array) : self
Parameters
$array : array<string|int, mixed>
Return values
self

setFilterPath()

Set _filterPath

public setFilterPath(string $filterPath) : self
Parameters
$filterPath : string
Return values
self

setFilterPrices()

Set Filter Prices

public setFilterPrices(array<string|int, mixed> $array) : self
Parameters
$array : array<string|int, mixed>
Return values
self

setFilterPricesConditions()

Set Filter Prices Conditions by price_from and price_to

public setFilterPricesConditions(array<string|int, mixed> $aData) : self
Parameters
$aData : array<string|int, mixed>
Return values
self

setFilterProperties()

Set Filter Properties

public setFilterProperties(array<string|int, mixed> $array) : self
Parameters
$array : array<string|int, mixed>
Return values
self

setFilterPropertiesConditions()

Set Filter Prices Conditions by $aData

public setFilterPropertiesConditions(array<string|int, mixed> $aData) : self
Parameters
$aData : array<string|int, mixed>
Return values
self

setUnlimitedProperties()

Set unlimitedProperties

public setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
$value : bool = TRUE

default TRUR

Return values
self

shopGroups()

Get/set _Shop_Groups

public shopGroups([mixed $object = NULL ]) : self
Parameters
$object : mixed = NULL
Return values
self

or _Shop_Groups

shopItems()

Get/set _Shop_Items

public shopItems([mixed $object = NULL ]) : self
Parameters
$object : mixed = NULL
Return values
self

or _Shop_Items

show()

Show built data

public show() : self
Tags
hostcms-event

Shop_Controller_Show.onBeforeRedeclaredShow

hostcms-event

Shop_Controller_Show.onBeforeAddGroupsPropertiesList

hostcms-event

Shop_Controller_Show.onBeforeAddShopItems

hostcms-event

Shop_Controller_Show.onBeforeAddShopItem

hostcms-event

Shop_Controller_Show.onAfterAddShopItems

hostcms-event

Shop_Controller_Show.onBeforeAddCartItem

hostcms-event

Shop_Controller_Show.onBeforeAddShortcut

hostcms-event

Shop_Controller_Show.onBeforeSelectSeoFilters

Return values
self

_addCommentsPropertiesList()

Add items properties to XML

protected _addCommentsPropertiesList(int $parent_id, object $parentObject) : self
Parameters
$parent_id : int
$parentObject : object
Return values
self

_addComparing()

Add comparing goods

protected _addComparing() : self
Return values
self

_addFavorite()

Add favorite goods

protected _addFavorite() : self
Tags
hostcms-event

Shop_Controller_Show.onBeforeAddFavoriteEntity

Return values
self

_addFilterMainPropertyToXml()

Add Filter Main Property to the XML

protected _addFilterMainPropertyToXml(string $mainPropertyName, string $condition, string $value) : self
Parameters
$mainPropertyName : string
$condition : string
$value : string
Return values
self

_addFilterPriceToXml()

Add Filter Price to the XML

protected _addFilterPriceToXml(string $condition, mixed $value) : self
Parameters
$condition : string
$value : mixed
Return values
self

_addFilterPropertyToXml()

Add Filter Property to the XML

protected _addFilterPropertyToXml(Property_Model $oProperty, string $condition, array<string|int, mixed> $aPropertyValues) : self
Parameters
$oProperty : Property_Model
$condition : string
$aPropertyValues : array<string|int, mixed>
Return values
self

_addGroupsByParentId()

Add groups by parent to XML

protected _addGroupsByParentId(int $parent_id, object $parentObject) : self
Parameters
$parent_id : int
$parentObject : object
Tags
hostcms-event

Shop_Controller_Show.onAfterAddShopGroups

Return values
self

_addGroupsPropertiesList()

Add groups properties to XML

protected _addGroupsPropertiesList(int $parent_id, object $parentObject) : self
Parameters
$parent_id : int
$parentObject : object
Return values
self

_addItemsPropertiesList()

Add list of item's properties to XML

protected _addItemsPropertiesList(int $parent_id, object $parentObject) : self
Parameters
$parent_id : int
$parentObject : object
Return values
self

_addViewed()

Add viewed goods

protected _addViewed() : self
Tags
hostcms-event

Shop_Controller_Show.onBeforeAddViewedEntity

Return values
self

_applyItemConditions()

Apply item's conditions

protected _applyItemConditions(Shop_Item_Model $oShop_Items) : self
Parameters
$oShop_Items : Shop_Item_Model
Tags
see
_applyItemConditionsQueryBuilder()
Return values
self

_applyItemConditionsQueryBuilder()

Apply item's conditions

protected _applyItemConditionsQueryBuilder(Core_QueryBuilder_Select $oCore_QueryBuilder_Select[, mixed $tableName = 'shop_items' ]) : self
Parameters
$oCore_QueryBuilder_Select : Core_QueryBuilder_Select
$tableName : mixed = 'shop_items'
Return values
self

_applyTagCondition()

Apply tag's conditions for $oQB

protected _applyTagCondition(mixed $oQB[, mixed $fieldName = 'shop_items.id' ]) : self
Parameters
$oQB : mixed
$fieldName : mixed = 'shop_items.id'
Return values
self

_applyWarehouseConditions()

Apply warehouse's conditions

protected _applyWarehouseConditions(Shop_Item_Model $oShop_Items) : self
Parameters
$oShop_Items : Shop_Item_Model
Tags
see
_applyWarehouseConditionsQueryBuilder()
Return values
self

_applyWarehouseConditionsQueryBuilder()

Apply warehouse's conditions

protected _applyWarehouseConditionsQueryBuilder(Core_QueryBuilder_Select $oCore_QueryBuilder_Select[, mixed $fieldName = 'shop_items.id' ][, mixed $groupBy = TRUE ]) : self
Parameters
$oCore_QueryBuilder_Select : Core_QueryBuilder_Select
$fieldName : mixed = 'shop_items.id'
$groupBy : mixed = TRUE
Return values
self

_basicFilter()

Apply Basic Filter

protected _basicFilter() : self
Return values
self

_basicFilterPrices()

Apply Basic Filter Prices

protected _basicFilterPrices(array<string|int, mixed> $aFilterPrices) : self
Parameters
$aFilterPrices : array<string|int, mixed>
Return values
self

_basicFilterProperties()

Apply Basic Filter Properties

protected _basicFilterProperties(array<string|int, mixed> $aFilterProperties) : self
Parameters
$aFilterProperties : array<string|int, mixed>
Return values
self

_commentsProperties()

Add list of comment properties

protected _commentsProperties() : array<string|int, mixed>
Tags
hostcms-event

Shop_Controller_Show.onBeforeAddCommentsPropertiesList

Return values
array<string|int, mixed>

_convertReceivedPropertyValue()

Convert property value, e.g. '23.11.2020' => '2020-11-23 00:00:00'

protected _convertReceivedPropertyValue(Property_Model $oProperty, mixed $value) : string
Parameters
$oProperty : Property_Model
$value : mixed
Return values
string

_fastFilter()

Apply Fast Filter

protected _fastFilter() : self
Return values
self

_getGroupData()

Typical conversion of Shop_Groups to an array

protected _getGroupData(array<string|int, mixed> $aShop_Grpoups) : array<string|int, mixed>
Parameters
$aShop_Grpoups : array<string|int, mixed>
Return values
array<string|int, mixed>

_getItemData()

Typical conversion of Shop_Items to an array

protected _getItemData(array<string|int, mixed> $aShop_Items) : array<string|int, mixed>
Parameters
$aShop_Items : array<string|int, mixed>
Return values
array<string|int, mixed>

_getListItemData()

Typical conversion of List_Item to an array

protected _getListItemData(array<string|int, mixed> $aList_Items) : array<string|int, mixed>
Parameters
$aList_Items : array<string|int, mixed>
Return values
array<string|int, mixed>

_getPropertyData()

Typical conversion of Property to an array

protected _getPropertyData(array<string|int, mixed> $aProperties) : array<string|int, mixed>
Parameters
$aProperties : array<string|int, mixed>
Return values
array<string|int, mixed>

_getSiteuserGroups()

Get array of siteuser groups for current siteuser. Exists group 0 (all) and -1 (parent)

protected _getSiteuserGroups() : array<string|int, mixed>
Return values
array<string|int, mixed>

_getSubMinMaxQueryBuilder()

protected _getSubMinMaxQueryBuilder() : mixed

_groupCondition()

Backward compatible. Apply item's condition by shop_group_id

protected _groupCondition() : self
Tags
hostcms-event

Shop_Controller_Show.onBeforeSelectModifications

Return values
self

_groupIntoArray()

Add group $oShop_Group into $this->_aShop_Groups

protected _groupIntoArray(Shop_Group_Model $oShop_Group) : self
Parameters
$oShop_Group : Shop_Group_Model
Return values
self

_incShowed()

Inc Shop_Item->showed

protected _incShowed() : self
Return values
self

_itemCondition()

Backward compatible. Apply item's conditions.

protected _itemCondition() : self
Return values
self

_itemsProperties()

Add list of item properties

protected _itemsProperties() : array<string|int, mixed>
Tags
hostcms-event

Shop_Controller_Show.onBeforeAddItemsPropertiesList

Return values
array<string|int, mixed>

_joinShopFilter()

protected _joinShopFilter(mixed $QB) : mixed
Parameters
$QB : mixed

_setGroupsActivity()

Set groups activity

protected _setGroupsActivity() : self
Return values
self

_setItemsActivity()

Set items activity

protected _setItemsActivity(Core_QueryBuilder_Select $oCore_QueryBuilder_Select[, mixed $tableName = 'shop_items' ]) : self
Parameters
$oCore_QueryBuilder_Select : Core_QueryBuilder_Select
$tableName : mixed = 'shop_items'
Return values
self

_setLimitListItems()

Set limitListItems conditions

protected _setLimitListItems(Property_Model $oProperty) : self
Parameters
$oProperty : Property_Model
Return values
self

_setLimits()

Set offset and limit

protected _setLimits() : self
Return values
self

_setShopGroups()

Set group's conditions

protected _setShopGroups() : self
Return values
self

_setShopItems()

Set item's conditions

protected _setShopItems() : self
Return values
self

_showPanel()

Show frontend panel

protected _showPanel() : $this
Tags
hostcms-event

Shop_Controller_Show.onBeforeShowPanel

Return values
$this

_subquerySelectShortcuts()

protected _subquerySelectShortcuts(mixed $fieldName, mixed $columns) : mixed
Parameters
$fieldName : mixed
$columns : mixed

        
On this page

Search results