AlbumAdminController
extends AbstractActionController
in package
Table of Contents
Properties
- $aclService : AclService
- $adminService : Admin
- $albumService : Album
- $photoConfig : array<string|int, mixed>
- $translator : Translator
Methods
- __construct() : mixed
- addAction() : ViewModel
- coverAction() : JsonModel
- Regenerates the cover photo for the album.
- createAction() : Response|ViewModel
- Retrieves the album creation form and saves data if needed.
- deleteAction() : JsonModel
- Deletes the album.
- editAction() : Response|ViewModel
- Retrieves the album editing form and saves changes.
- indexAction() : ViewModel
- Retrieves the main photo admin index page.
- moveAction() : JsonModel
- Moves the album by setting the parent album to another album.
- undatedAction() : ViewModel
- Show all albums that do not have a date, most of these will be recently created albums.
- uploadAction() : JsonModel
- Uploads an image file and adds it to an album.
- viewAction() : ViewModel
- Show a specific album.
- yearAction() : ViewModel
- Show all albums in a specific year.
Properties
$aclService read-only
private
AclService
$aclService
$adminService read-only
private
Admin
$adminService
$albumService read-only
private
Album
$albumService
$photoConfig read-only
private
array<string|int, mixed>
$photoConfig
$translator read-only
private
Translator
$translator
Methods
__construct()
public
__construct(AclService $aclService, Translator $translator, Admin $adminService, Album $albumService, array<string|int, mixed> $photoConfig) : mixed
Parameters
- $aclService : AclService
- $translator : Translator
- $adminService : Admin
- $albumService : Album
- $photoConfig : array<string|int, mixed>
Tags
addAction()
public
addAction() : ViewModel
Return values
ViewModelcoverAction()
Regenerates the cover photo for the album.
public
coverAction() : JsonModel
Return values
JsonModelcreateAction()
Retrieves the album creation form and saves data if needed.
public
createAction() : Response|ViewModel
Return values
Response|ViewModeldeleteAction()
Deletes the album.
public
deleteAction() : JsonModel
Return values
JsonModeleditAction()
Retrieves the album editing form and saves changes.
public
editAction() : Response|ViewModel
Return values
Response|ViewModelindexAction()
Retrieves the main photo admin index page.
public
indexAction() : ViewModel
Return values
ViewModelmoveAction()
Moves the album by setting the parent album to another album.
public
moveAction() : JsonModel
Return values
JsonModelundatedAction()
Show all albums that do not have a date, most of these will be recently created albums.
public
undatedAction() : ViewModel
Return values
ViewModeluploadAction()
Uploads an image file and adds it to an album.
public
uploadAction() : JsonModel
Return values
JsonModelviewAction()
Show a specific album.
public
viewAction() : ViewModel
Return values
ViewModelyearAction()
Show all albums in a specific year.
public
yearAction() : ViewModel