Documentation

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

$photoConfig read-only

private array<string|int, mixed> $photoConfig

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
phpcsSuppress

SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification

downloadAction()

public downloadAction() : Stream|null
Return values
Stream|null

indexAction()

public indexAction() : ViewModel
Return values
ViewModel

removeProfilePhotoAction()

For removing a profile picture.

public removeProfilePhotoAction() : Response
Return values
Response

searchAction()

public searchAction() : ViewModel
Return values
ViewModel

setProfilePhotoAction()

For setting a profile picture.

public setProfilePhotoAction() : JsonModel|ViewModel
Return values
JsonModel|ViewModel

voteAction()

Store a vote for a photo.

public voteAction() : JsonModel|ViewModel
Return values
JsonModel|ViewModel

weeklyAction()

Display the page containing previous pictures of the week.

public weeklyAction() : ViewModel
Return values
ViewModel

filterAlbums()

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>
Return values
array<string|int, Album>

        
On this page

Search results