PhotoController
extends AbstractActionController
in package
Table of Contents
Properties
- $aclService : AclService
- $albumService : Album
- $photoConfig : array<string|int, mixed>
- $photoService : Photo
- $translator : Translator
Methods
- __construct() : mixed
- downloadAction() : Stream|null
- indexAction() : ViewModel
- removeProfilePhotoAction() : Response
- For removing a profile picture.
- searchAction() : ViewModel
- setProfilePhotoAction() : JsonModel|ViewModel
- For setting a profile picture.
- voteAction() : JsonModel|ViewModel
- Store a vote for a photo.
- weeklyAction() : ViewModel
- Display the page containing previous pictures of the week.
- filterAlbums() : array<string|int, Album>
- If the membership of the member has ended, only show albums before the end date or in which they are tagged.
Properties
$aclService read-only
private
AclService
$aclService
$albumService read-only
private
Album
$albumService
$photoConfig read-only
private
array<string|int, mixed>
$photoConfig
$photoService read-only
private
Photo
$photoService
$translator read-only
private
Translator
$translator
Methods
__construct()
public
__construct(AclService $aclService, Translator $translator, Album $albumService, Photo $photoService, array<string|int, mixed> $photoConfig) : mixed
Parameters
- $aclService : AclService
- $translator : Translator
- $albumService : Album
- $photoService : Photo
- $photoConfig : array<string|int, mixed>
Tags
downloadAction()
public
downloadAction() : Stream|null
Return values
Stream|nullindexAction()
public
indexAction() : ViewModel
Return values
ViewModelremoveProfilePhotoAction()
For removing a profile picture.
public
removeProfilePhotoAction() : Response
Return values
ResponsesearchAction()
public
searchAction() : ViewModel
Return values
ViewModelsetProfilePhotoAction()
For setting a profile picture.
public
setProfilePhotoAction() : JsonModel|ViewModel
Return values
JsonModel|ViewModelvoteAction()
Store a vote for a photo.
public
voteAction() : JsonModel|ViewModel
Return values
JsonModel|ViewModelweeklyAction()
Display the page containing previous pictures of the week.
public
weeklyAction() : ViewModel
Return values
ViewModelfilterAlbums()
If the membership of the member has ended, only show albums before the end date or in which they are tagged.
private
filterAlbums(array<string|int, Album> $albums) : array<string|int, Album>
Parameters
- $albums : array<string|int, Album>