Class app\modules\main\widgets\gallery\Gallery
| Inheritance | app\modules\main\widgets\gallery\Gallery » common\widgets\App » yii\base\Widget |
|---|
Class Gallery Виджет для вывода фотогаллереи
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $files | common\core\File[] | массив файлов | app\modules\main\widgets\gallery\Gallery |
| $height | int | высота фото | app\modules\main\widgets\gallery\Gallery |
| $options | array | массив html атрибутов тега обертки | app\modules\main\widgets\gallery\Gallery |
| $registerAsset | bool | подключать ли ассет виджета | app\modules\main\widgets\gallery\Gallery |
| $showCond | string | условие отображения виджета | common\widgets\App |
| $showCondType | int | тип условия для отображения виджета | common\widgets\App |
| $skipFromStart | int | количество фото пропущенных сначала | app\modules\main\widgets\gallery\Gallery |
| $tpl | string | представление виджета | common\widgets\App |
| $width | int | ширина фото | app\modules\main\widgets\gallery\Gallery |
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $_rel | string | атрибут rel фотогаллереи | app\modules\main\widgets\gallery\Gallery |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getRel() | Получение значения атрибута rel | app\modules\main\widgets\gallery\Gallery |
| init() | app\modules\main\widgets\gallery\Gallery | |
| isShow() | Отображать ли данный виджет | common\widgets\App |
| run() | app\modules\main\widgets\gallery\Gallery | |
| setRel() | Установка атрибута rel | app\modules\main\widgets\gallery\Gallery |
Constants
| Constant | Value | Description | Defined By |
|---|---|---|---|
| DEFAULT_CLASS | "yii-gallery" | app\modules\main\widgets\gallery\Gallery | |
| DEFAULT_REL_PREF | "rel-" | app\modules\main\widgets\gallery\Gallery |
Property Details
атрибут rel фотогаллереи
массив файлов
высота фото
массив html атрибутов тега обертки
подключать ли ассет виджета
количество фото пропущенных сначала
ширина фото