PHP Class GalleryBackendController

Author: YupeTeam ([email protected])
Inheritance: extends yupe\components\controllers\BackController
Mostrar archivo Open project: yupe/yupe

Public Methods

Method Description
accessRules ( )
actionAddImages ( integer $id ) : void Функция добавления группы изображений
actionCreate ( ) : void Создает новую модель галереи.
actionDelete ( integer $id ) : void Удаяет модель галереи из базы.
actionDeleteImage ( integer $id = null, string $method = null ) : void Ajax/Get-обёртка для удаления изображения:
actionImages ( integer $id ) : void Отображение изображений галереи:
actionIndex ( ) : void Управление галереями.
actionReloadContent ( integer $id = null, string $view = null ) : void Для перезагрузки контента:
actionSetPreview ( $galleryId = null, $imageId = null )
actionUpdate ( integer $id ) : void Редактирование галереи.
actions ( )
filters ( )
loadModel ( $id ) : Gallery Возвращает модель по указанному идентификатору Если модель не будет найдена - возникнет HTTP-исключение.

Private Methods

Method Description
_addImage ( Image $image, array $imageData, Gallery $gallery ) : void Метод добавления одной фотографии:

Method Details

accessRules() public method

public accessRules ( )

actionAddImages() public method

Функция добавления группы изображений
public actionAddImages ( integer $id ) : void
$id integer - id-галереи
return void

actionCreate() public method

Если создание прошло успешно - перенаправляет на просмотр.
public actionCreate ( ) : void
return void

actionDelete() public method

Если удаление прошло успешно - возвращется в index
public actionDelete ( integer $id ) : void
$id integer идентификатор галереи, который нужно удалить
return void

actionDeleteImage() public method

Ajax/Get-обёртка для удаления изображения:
public actionDeleteImage ( integer $id = null, string $method = null ) : void
$id integer - id-изображения
$method string - тип с помощью чего удаляем
return void

actionImages() public method

Отображение изображений галереи:
public actionImages ( integer $id ) : void
$id integer - id-галереи
return void

actionIndex() public method

Управление галереями.
public actionIndex ( ) : void
return void

actionReloadContent() public method

Для перезагрузки контента:
public actionReloadContent ( integer $id = null, string $view = null ) : void
$id integer - id-галереи
$view string - необходимая вьюшка
return void

actionSetPreview() public method

public actionSetPreview ( $galleryId = null, $imageId = null )

actionUpdate() public method

Редактирование галереи.
public actionUpdate ( integer $id ) : void
$id integer the ID of the model to be updated
return void

actions() public method

public actions ( )

filters() public method

public filters ( )

loadModel() public method

Возвращает модель по указанному идентификатору Если модель не будет найдена - возникнет HTTP-исключение.
public loadModel ( $id ) : Gallery
return Gallery $model