Item
Table of Contents
Constants
-
FILE_TYPES
= ['png', 'gif']
-
MAX_FILE_SIZE
= 600000
-
MAX_SIDE_SIZE
= 1024
-
ORM_OPERATION_LIMIT_COUNT
= 2
Methods
-
__construct()
: mixed
-
applyToFileBy()
: mixed
-
clearFileTable()
: string
-
create()
: AddResult
-
delete()
: Result
-
deleteByFilter()
: DeleteResult
-
getAccessCode()
: array<string|int, mixed>
-
getId()
: int
-
getInstance()
: Item|null
-
getOwner()
: DefaultOwner
-
isEditableBy()
: bool
-
isReadableBy()
: bool
-
onFileDelete()
: mixed
-
update()
: Result
FILE_TYPES
public
mixed
FILE_TYPES
= ['png', 'gif']
MAX_FILE_SIZE
public
mixed
MAX_FILE_SIZE
= 600000
MAX_SIDE_SIZE
public
mixed
MAX_SIDE_SIZE
= 1024
ORM_OPERATION_LIMIT_COUNT
public
mixed
ORM_OPERATION_LIMIT_COUNT
= 2
__construct()
public
__construct(int $id) : mixed
Parameters
-
$id
: int
-
applyToFileBy()
public
applyToFileBy(int $originalFileId, int $fileId, Consumer $consumer) : mixed
Parameters
-
$originalFileId
: int
-
-
$fileId
: int
-
-
$consumer
: Consumer
-
clearFileTable()
public
static clearFileTable() : string
create()
public
static create(DefaultOwner $owner, array<string|int, mixed> $file[, array<string|int, mixed>|null $descriptionParams = [] ]) : AddResult
Parameters
-
$owner
: DefaultOwner
-
-
$file
: array<string|int, mixed>
-
-
$descriptionParams
: array<string|int, mixed>|null
= []
-
delete()
public
delete() : Result
deleteByFilter()
public
static deleteByFilter(array<string|int, mixed> $filter) : DeleteResult
Parameters
-
$filter
: array<string|int, mixed>
-
Return values
DeleteResult
getAccessCode()
public
getAccessCode() : array<string|int, mixed>
Return values
array<string|int, mixed>
getId()
public
getId() : int
getInstance()
public
static getInstance(mixed $id) : Item|null
Parameters
-
$id
: mixed
-
getOwner()
public
getOwner() : DefaultOwner
isEditableBy()
public
isEditableBy(Consumer $consumer) : bool
Parameters
-
$consumer
: Consumer
-
isReadableBy()
public
isReadableBy(Consumer $consumer) : bool
Parameters
-
$consumer
: Consumer
-
onFileDelete()
public
static onFileDelete(mixed $file) : mixed
Parameters
-
$file
: mixed
-
update()
public
update(array<string|int, mixed> $data) : Result
Parameters
-
$data
: array<string|int, mixed>
-