Class Advertisement_Group_Controller_Show
Показ баннера из группы баннеров.
Доступные методы:
- type($type) строка с типом отображаемых баннеров
'all' для показа баннеров из списка баннеров группы (по умолчанию)
'type' для показа только контекстных баннеров при переданном контексте и неконтекстных баннеров, если контекст не передан - words($str) строка, содержащая контекстную информацию, на основании которой будет показан баннер. Это может быть поисковый запрос, по которому пришел пользователь или содержимое страницы. Если строка не передана - используется случайный выбор баннеров из группы.
- limit(1) количество отображаемых баннеров
- justContext(TRUE) разрешает показ только баннеров, найденых по переданному контексту. По умолчанию FALSE
$Advertisement_Group_Controller_Show = new Advertisement_Group_Controller_Show( Core_Entity::factory('Advertisement_Group', 1) ); $Advertisement_Group_Controller_Show ->xsl( Core_Entity::factory('Xsl')->getByName('ОтображениеБаннера') ) ->show();
- Core_Servant_Properties
- Core_Controller
- Advertisement_Group_Controller_Show
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at advertisement/group/controller/show.php
Methods summary
protected
|
#
_setStructureChildren(
Set array $this->_aStructuresId of all children structure IDs |
public
array
|
|
public
|
|
protected
array
|
|
public
|
|
protected
integer
|
#
_getTextSimilarity( array $aArray1, array $aArray2, string $method = 'max' )
Calculate the similarity between two arrays |
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(
'type',
'words',
'justContext',
'limit'
)
|
protected
array
|
$_aStructuresId
All children structure IDs |
#
array()
|
protected
|
$_Advertisements
Advertisement |
#
NULL
|
Properties inherited from Core_Controller
$_attributePrefix
,
$_cacheSignatures
,
$_cacheTags
,
$_entities
,
$_entity
,
$_mode
,
$_shownIDs
,
$_tpl
,
$_vars
,
$_xsl