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
DEVICE_CODE_COOKIE
public
mixed
DEVICE_CODE_COOKIE
= 'JinyaDeviceCode'
Tags
Properties
$body
public
array<string, mixed>
$body
Methods
createPosition()
Creates a new gallery file position for the given gallery
public
createPosition(int $galleryId) : ResponseInterface
Parameters
- $galleryId : int
Tags
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
Return values
ResponseInterface —entityNotFound()
public
entityNotFound(string $message) : ResponseInterface
Parameters
- $message : string
Tags
Return values
ResponseInterface —formatIteratorPlain()
public
formatIteratorPlain(Iterator<string|int, T> $iterator) : array<string|int, array<string, mixed>>
Parameters
- $iterator : Iterator<string|int, T>
Tags
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
Return values
ResponseInterface —jsonIterator()
public
jsonIterator(Iterator $iterator) : ResponseInterface
Parameters
- $iterator : Iterator
Tags
Return values
ResponseInterface —jsonIteratorPlain()
public
jsonIteratorPlain(Iterator $iterator) : ResponseInterface
Parameters
- $iterator : Iterator
Tags
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