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
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()
$_entity
Entity
protected
Core_Entity
$_entity
= \NULL
$_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'
$_oTag
Current Tag
protected
null|Tag_Model
$_oTag
= \NULL
$_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
$_Shop_Groups
Shop's groups object
protected
Shop_Group_Model
$_Shop_Groups
= \NULL
$_Shop_Items
Shop's items object
protected
Shop_Item_Model
$_Shop_Items
= \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()
$_tpl
TPL
protected
Tpl_Model
$_tpl
= \NULL
$_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()
$_xsl
XSL
protected
Xsl_Model
$_xsl
= \NULL
Methods
__construct()
Constructor.
public
__construct(Shop_Model $oShop) : mixed
Parameters
- $oShop : Shop_Model
-
shop
addAbsolutePrice()
Add `price_absolute` to the query
public
addAbsolutePrice() : self
Return values
selfaddAllGroups()
Add all groups to XML
public
addAllGroups() : self
Return values
selfaddAllowedProperties()
Add additional allowed properties
public
addAllowedProperties(array<string|int, mixed> $array) : self
Parameters
- $array : array<string|int, mixed>
-
array of properties' names
Return values
selfaddAllowedProperty()
Add additional allowed property
public
addAllowedProperty(string $property) : self
Parameters
- $property : string
-
property name
Return values
selfaddAllowedTag()
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
selfaddAllowedTags()
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
selfaddCacheSignature()
Add additional signature for cache name
public
addCacheSignature(string $name) : self
Parameters
- $name : string
-
name
Return values
selfaddCacheTag()
Add Cache Tag
public
addCacheTag(string $tagName) : self
Parameters
- $tagName : string
Return values
selfaddEntities()
Add enities
public
addEntities(array<string|int, mixed> $aChildrenEntities) : self
Parameters
- $aChildrenEntities : array<string|int, mixed>
-
entities
Return values
selfaddEntity()
Add a children entity
public
addEntity(Core_Entity $oChildrenEntity) : self
Parameters
- $oChildrenEntity : Core_Entity
Return values
selfaddFilter()
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
selfaddForbiddenTags()
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
selfaddIntoViewed()
Add into viewed list
public
addIntoViewed() : self
Return values
selfaddIntoViwed()
public
addIntoViwed() : mixed
addMinMaxHeight()
Add minimum and maximum height
public
addMinMaxHeight() : self
Return values
selfaddMinMaxLength()
Add minimum and maximum length
public
addMinMaxLength() : self
Return values
selfaddMinMaxPrice()
Add minimum and maximum price
public
addMinMaxPrice() : self
Return values
selfaddMinMaxWeight()
Add minimum and maximum weight
public
addMinMaxWeight() : self
Return values
selfaddMinMaxWidth()
Add minimum and maximum width
public
addMinMaxWidth() : self
Return values
selfaddProducers()
Add Producers to the XML
public
addProducers() : self
Return values
selfaddShortcutConditions()
Add shortcut conditions
public
addShortcutConditions() : self
Return values
selfaddTreeGroups()
Add tree groups to XML
public
addTreeGroups() : self
Return values
selfappend()
Append an element to an assigned array
public
append(mixed $varname, mixed $var) : self
Parameters
- $varname : mixed
- $var : mixed
Return values
selfapplyAbsolutePrice()
Apply `price_absolute` to the Query Builder
public
applyAbsolutePrice(Core_QueryBuilder_Select $QB[, mixed $tableName = 'shop_items' ]) : Core_QueryBuilder_Select
Parameters
- $QB : Core_QueryBuilder_Select
- $tableName : mixed = 'shop_items'
Return values
Core_QueryBuilder_SelectapplyFastFilterPrices()
Apply Fast Filter Prices
public
applyFastFilterPrices(Core_QueryBuilder_Select $QB) : self
Parameters
- $QB : Core_QueryBuilder_Select
Return values
selfapplyFastFilterProperties()
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
selfapplyFilter()
Apply Filter
public
applyFilter() : self
Return values
selfapplyFilterGroupCondition()
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
selfapplyForbiddenAllowedTags()
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
selfapplyGroupCondition()
Apply item's condition by shop_group_id
public
applyGroupCondition() : self
Return values
selfapplyGroupsForbiddenTags()
Apply forbidden xml tags for groups
public
applyGroupsForbiddenTags(Shop_Group_Model $oShop_Group) : self
Parameters
- $oShop_Group : Shop_Group_Model
-
group
Return values
selfapplyItemCondition()
Apply item's conditions
public
applyItemCondition() : self
Return values
selfapplyItemsForbiddenTags()
Apply forbidden xml tags for items
public
applyItemsForbiddenTags(Shop_Item_Model $oShop_Item) : self
Parameters
- $oShop_Item : Shop_Item_Model
-
item
Return values
selfassign()
Assign variables/objects to the TPL-template
public
assign(mixed $varname, mixed $var) : self
Parameters
- $varname : mixed
- $var : mixed
Return values
selfclearCacheTag()
Clear Cache Tag
public
clearCacheTag() : self
Return values
selfclearEntities()
Clear enities
public
clearEntities() : self
Return values
selfclearVars()
Clear vars
public
clearVars() : self
Return values
selferror403()
Define handler for 403 error
public
error403() : self
Return values
selferror404()
Define handler for 404 error
public
error404() : self
Return values
selffillShopGroups()
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
stringforbidSelectModifications()
External forbids to select modifications. Do not execute with ->modificationsList(TRUE)
public
forbidSelectModifications() : self
Return values
selfforbidSelectShortcuts()
Disable shortcuts
public
forbidSelectShortcuts() : self
Return values
selfget()
Get HTML based by entities tree, use XSL $this->_xsl
public
get() : string
Tags
Return values
stringgetAllowedTags()
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
intgetData()
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
objectgetFastFilteredCount()
Get Count Of Found Shop_Items By Fast Filter
public
getFastFilteredCount() : int
Return values
intgetFilterGroupTableName()
Get Filter Group Table Name
public
getFilterGroupTableName() : string
Return values
stringgetFilterMainProperties()
Get Filter Main Properties
public
getFilterMainProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>getFilterPath()
Get _filterPath
public
getFilterPath() : string
Return values
stringgetFilterPriceAvailableFields()
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
stringgetFilterProperties()
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
stringgetForbiddenTags()
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
stringgetPattern()
Get Pattern
public
getPattern() : string
Return values
stringgetSeoGroupH1()
Get SEO Group's H1
public
getSeoGroupH1() : string|null
Return values
string|nullgetSeoItemH1()
Get SEO Items's H1
public
getSeoItemH1() : string|null
Return values
string|nullgetShopGroups()
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
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>getTpl()
Get TPL
public
getTpl() : Tpl_Model
Return values
Tpl_ModelgetXml()
Get XML for entity and children entities
public
getXml() : string
Return values
stringgetXsl()
Get XSL
public
getXsl() : Xsl_Model
Return values
Xsl_ModelinCache()
Check if data is cached
public
inCache() : null|true|false
Return values
null|true|falseisAllowedTag()
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
boolisForbiddenTag()
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
boolisShopFilterJoined()
public
isShopFilterJoined(mixed $QB) : mixed
Parameters
- $QB : mixed
mode()
Set mode
public
mode(string $mode) : self
Parameters
- $mode : string
Return values
selforderBy()
Sets goods sorting, clear all previous sorting
public
orderBy( $column[, mixed $direction = 'ASC' ]) : self
Parameters
Return values
selfpageNumber()
Get page number with template $template
public
pageNumber([ $template = "%d" ]) : string
Parameters
Return values
stringparseUrl()
Parse URL and set controller properties
public
parseUrl() : self
Tags
Return values
selfprepareFastfilterQbForProperty()
Prepare QueryBuilder for select fast filter by $oProperty
public
prepareFastfilterQbForProperty(Property_Model $oProperty) : Core_QueryBuilder_Select
Parameters
- $oProperty : Property_Model
Return values
Core_QueryBuilder_SelectremoveAllowedTag()
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
selfremoveFilter()
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
selfseoFilter()
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
stringseoFilterPrices()
Get prices conditions for meta-tags
public
seoFilterPrices([ $priceFrom = "from" ][, $priceTo = "to" ]) : string
Parameters
Return values
stringset()
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
selfsetAttributePrefix()
Change attributePrefix
public
setAttributePrefix(string $attributePrefix) : self
Parameters
- $attributePrefix : string
Return values
selfsetEntity()
Set entity
public
setEntity(Core_Entity $entity) : self
Parameters
- $entity : Core_Entity
-
entity
Return values
selfsetFilterMainProperties()
Set Filter Main Properties
public
setFilterMainProperties(array<string|int, mixed> $array) : self
Parameters
- $array : array<string|int, mixed>
Return values
selfsetFilterPath()
Set _filterPath
public
setFilterPath(string $filterPath) : self
Parameters
- $filterPath : string
Return values
selfsetFilterPrices()
Set Filter Prices
public
setFilterPrices(array<string|int, mixed> $array) : self
Parameters
- $array : array<string|int, mixed>
Return values
selfsetFilterPricesConditions()
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
selfsetFilterProperties()
Set Filter Properties
public
setFilterProperties(array<string|int, mixed> $array) : self
Parameters
- $array : array<string|int, mixed>
Return values
selfsetFilterPropertiesConditions()
Set Filter Prices Conditions by $aData
public
setFilterPropertiesConditions(array<string|int, mixed> $aData) : self
Parameters
- $aData : array<string|int, mixed>
Return values
selfsetUnlimitedProperties()
Set unlimitedProperties
public
setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
- $value : bool = TRUE
-
default TRUR
Return values
selfshopGroups()
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
Return values
selftpl()
Set TPL
public
tpl(Tpl_Model|string $tpl) : self
Parameters
- $tpl : Tpl_Model|string
Return values
selfxsl()
Set XSL
public
xsl(Xsl_Model|string $xsl) : self
Parameters
- $xsl : Xsl_Model|string
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
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
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
Return values
self_applyAbsolutePrice()
Backward compatible.
protected
_applyAbsolutePrice(mixed $QB[, mixed $tableName = 'shop_items' ]) : Core_QueryBuilder_Select
Parameters
- $QB : mixed
- $tableName : mixed = 'shop_items'
Return values
Core_QueryBuilder_Select_applyItemConditions()
Apply item's conditions
protected
_applyItemConditions(Shop_Item_Model $oShop_Items) : self
Parameters
- $oShop_Items : Shop_Item_Model
Tags
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
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
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
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
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
Return values
$this_subquerySelectShortcuts()
protected
_subquerySelectShortcuts(mixed $fieldName, mixed $columns) : mixed
Parameters
- $fieldName : mixed
- $columns : mixed