Documentation

PhotoManager
in package

Table of Contents

COLUMN_DEVICE  = 'device'
COLUMN_EMPLOYEE  = 'employee'
COLUMN_FLOW  = 'flow'
COLUMN_ID  = 'id'
COLUMN_NAME  = 'name'
COLUMN_PATH  = 'path'
COLUMN_TYPE  = 'type'
SERVICE_NAME  = 'photo.manager'
TABLE_NAME  = 'photos'
$database  : Explorer
$uploadDir  : string
__construct()  : mixed
addToDB()  : array<string|int, mixed>|bool|int|iteratable<string|int, mixed>|ActiveRow|Selection|Traversable
addToServer()  : void
deleteFromDB()  : void
find()  : Selection
get()  : ActiveRow
updateToDB()  : void

Constants

COLUMN_EMPLOYEE

public mixed COLUMN_EMPLOYEE = 'employee'

SERVICE_NAME

public mixed SERVICE_NAME = 'photo.manager'

Properties

Methods

__construct()

public __construct(string $uploadDIR, Explorer $database) : mixed
Parameters
$uploadDIR : string
$database : Explorer
Return values
mixed

addToDB()

public addToDB(iteratable<string|int, mixed> $values) : array<string|int, mixed>|bool|int|iteratable<string|int, mixed>|ActiveRow|Selection|Traversable
Parameters
$values : iteratable<string|int, mixed>
Return values
array<string|int, mixed>|bool|int|iteratable<string|int, mixed>|ActiveRow|Selection|Traversable

addToServer()

public addToServer(Psr7UploadedFile $file, string $employee_id, string $flow_uuid, string $deviceName, string $type) : void
Parameters
$file : Psr7UploadedFile
$employee_id : string
$flow_uuid : string
$deviceName : string
$type : string
Tags
throws
PhotoNotSavedException
Return values
void

find()

public find() : Selection
Return values
Selection

updateToDB()

public updateToDB(int $id, iteratable<string|int, mixed> $values) : void
Parameters
$id : int
$values : iteratable<string|int, mixed>
Tags
throws
PhotoNotFoundException
Return values
void

Search results