Class Structure_Controller_Show
Показ структуры сайта.
Доступные методы:
- menu($menuId) вывод узлов структуры меню $menu, по умолчанию NULL (вывод из всех меню)
- parentId($parentId) идентификатор родительского узла, по умолчанию 0
- level($level) выводить узлы структуры только до уровня вложенности $level
- showProperties(TRUE|FALSE) выводить значения дополнительных свойств усзлов структуры, по умолчанию FALSE
- showInformationsystemGroups(TRUE|FALSE) выводить связанные с узлом структуры группы информационной системы, по умолчанию FALSE
- showInformationsystemItems(TRUE|FALSE) выводить связанные с узлом структуры информационные элементы, по умолчанию FALSE
- showShopGroups(TRUE|FALSE) выводить связанные с узлом структуры группы магазина, по умолчанию FALSE
- showShopItems(TRUE|FALSE) выводить связанные с узлом структуры товары, по умолчанию FALSE
- showInformationsystemGroupProperties(TRUE|FALSE|array()) выводить значения дополнительных свойств групп информационной системы, по умолчанию FALSE
- showInformationsystemItemProperties(TRUE|FALSE|array()) выводить значения дополнительных свойств информационных элементов, по умолчанию FALSE
- showShopGroupProperties(TRUE|FALSE|array()) выводить значения дополнительных свойств групп магазина, по умолчанию FALSE
- showShopItemProperties(TRUE|FALSE|array()) выводить значения дополнительных свойств товаров, по умолчанию FALSE
- showShopItemAssociated(TRUE|FALSE) выводить сопутствующие товары, по умолчанию FALSE
- forbiddenTags(array('name')) массив тегов узла структуры, запрещенных к передаче в генерируемый XML
- cache(TRUE|FALSE) использовать кэширование, по умолчанию TRUE
- showPanel(TRUE|FALSE) показывать панель быстрого редактирования, по умолчанию TRUE
- onStep(3000) количество элементов, выбираемых запросом за 1 шаг, по умолчанию 500
Доступные свойства:
- currentStructureId идентификатор узла структуры
$Structure_Controller_Show = new Structure_Controller_Show( Core_Entity::factory('Site', 1) ); $Structure_Controller_Show ->xsl( Core_Entity::factory('Xsl')->getByName('Меню') ) ->show();
- Core_Servant_Properties
- Core_Controller
- Structure_Controller_Show
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at structure/controller/show.php
Methods summary
public
|
|
protected
array
|
#
_getSiteuserGroups( )
Get array of siteuser groups for current siteuser. Exists group 0 (all) and -1 (parent) |
public
|
|
public
array
|
|
public
array
|
|
public
|
|
public
|
|
public
null|true|false
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
#
_addStructuresByParentId( integer $parent_id, object $parentObject, integer $level = 0 )
Create the tree of structures |
protected
|
#
_addPropertyList( integer $parent_id, object $parentObject )
Create the tree of property dirs and properties |
public
array
|
|
public
array
|
|
public
|
#
fillInformationsystem(
Fill _aInformationsystem_Groups and _aInformationsystem_Items |
protected
|
#
_addInformationsystemGroups( object $parentObject,
Add all groups of information system to XML |
protected
|
#
_addInformationsystemGroupsByParentId( integer $parent_id, object $parentObject, $level = 0 )
Add groups of information system to XML |
public
array
|
|
public
array
|
|
public
|
|
protected
|
#
_addShopGroups( object $parentObject,
Add all groups of shop to XML |
protected
|
#
_addShopGroupsByParentId( integer $parent_id, object $parentObject, $level = 0 )
Add shop groups to the object by parent group ID |
public
|
|
protected
|
Methods inherited from Core_Controller
__toString()
,
addCacheSignature()
,
addCacheTag()
,
addEntities()
,
addEntity()
,
append()
,
assign()
,
clearCacheTag()
,
clearEntities()
,
clearVars()
,
get()
,
getCacheTags()
,
getEntities()
,
getEntity()
,
getShownIDs()
,
getStdObject()
,
getTpl()
,
getXml()
,
getXsl()
,
mode()
,
setAttributePrefix()
,
setEntity()
,
tpl()
,
xsl()
Methods inherited from Core_Servant_Properties
__call()
,
__get()
,
__isset()
,
__set()
,
addAllowedProperties()
,
addAllowedProperty()
,
set()
,
setUnlimitedProperties()
Properties summary
protected
array
|
$_allowedProperties
Allowed object properties |
#
array(
'menu',
'parentId',
'level',
'showProperties',
'showInformationsystemGroups',
'showInformationsystemItems',
'showShopGroups',
'showShopItems',
'showInformationsystemGroupProperties',
'showInformationsystemItemProperties',
'showShopGroupProperties',
'showShopItemProperties',
'showShopItemAssociated',
'forbiddenTags',
'cache',
'currentStructureId',
'showPanel',
'onStep',
)
|
protected
array
|
$_aStructures
List of structuries |
#
array()
|
protected
array
|
$_aProperties
List of properties |
#
array()
|
protected
array
|
$_aProperty_Dirs
List of property directories |
#
array()
|
protected
array
|
$_aSiteuserGroups
Array of siteuser's groups allowed for current siteuser |
#
array()
|
protected
string
|
$_cacheName
Cache name |
#
'structure_show'
|
protected
array
|
$_aTags
Tags for cache |
#
array()
|
protected
array
|
$_Structure
Structure object |
#
NULL
|
protected
array
|
$_Informationsystems
List of information systems |
#
array()
|
protected
array
|
$_Shops
List of shops |
#
array()
|
protected
array
|
$_aInformationsystem_Groups
List of groups |
#
array()
|
protected
array
|
$_aInformationsystem_Items
List of items |
#
array()
|
protected
array
|
$_aShop_Groups
List of shop groups |
#
array()
|
protected
array
|
$_aShop_Items
List of shop items |
#
array()
|
Properties inherited from Core_Controller
$_attributePrefix
,
$_cacheSignatures
,
$_cacheTags
,
$_entities
,
$_entity
,
$_mode
,
$_shownIDs
,
$_tpl
,
$_vars
,
$_xsl