Jinya CMS

GalleryController extends BaseController
in package

Tags

Table of Contents

DEVICE_CODE_COOKIE  = 'JinyaDeviceCode'
$body  : array<string, mixed>
createPosition()  : ResponseInterface
Creates a new gallery file position for the given gallery
deletePosition()  : ResponseInterface
Deletes the gallery file position by gallery id and position
entityNotFound()  : ResponseInterface
formatIteratorPlain()  : array<string|int, array<string, mixed>>
getPositions()  : ResponseInterface
Gets all positions for the given gallery
jsonIterator()  : ResponseInterface
jsonIteratorPlain()  : ResponseInterface
updatePosition()  : ResponseInterface
Updates the given gallery file position by gallery id and position

Constants

public mixed DEVICE_CODE_COOKIE = 'JinyaDeviceCode'
Tags

Properties

Methods

createPosition()

Creates a new gallery file position for the given gallery

public createPosition(int $galleryId) : ResponseInterface
Parameters
$galleryId : int
Tags
throws
JsonException
throws
NotNullViolationException
Return values
ResponseInterface

deletePosition()

Deletes the gallery file position by gallery id and position

public deletePosition(int $galleryId, int $position) : ResponseInterface
Parameters
$galleryId : int
$position : int
Tags
throws
JsonException
Return values
ResponseInterface

entityNotFound()

public entityNotFound(string $message) : ResponseInterface
Parameters
$message : string
Tags
throws
JsonException
Return values
ResponseInterface

formatIteratorPlain()

public formatIteratorPlain(Iterator<string|int, T$iterator) : array<string|int, array<string, mixed>>
Parameters
$iterator : Iterator<string|int, T>
Tags
template

T

throws
JsonException
Return values
array<string|int, array<string, mixed>>

getPositions()

Gets all positions for the given gallery

public getPositions(int $galleryId) : ResponseInterface
Parameters
$galleryId : int
Tags
throws
JsonException
throws
JsonException
Return values
ResponseInterface

jsonIterator()

public jsonIterator(Iterator $iterator) : ResponseInterface
Parameters
$iterator : Iterator
Tags
throws
JsonException
Return values
ResponseInterface

jsonIteratorPlain()

public jsonIteratorPlain(Iterator $iterator) : ResponseInterface
Parameters
$iterator : Iterator
Tags
throws
JsonException
Return values
ResponseInterface

updatePosition()

Updates the given gallery file position by gallery id and position

public updatePosition(int $galleryId, int $position) : ResponseInterface
Parameters
$galleryId : int
$position : int
Tags
throws
JsonException
throws
NotNullViolationException
Return values
ResponseInterface

Search results