Helper
Table of Contents
Constants
- REQUEST_FIELD_NAME = 'ui_avatar_editor'
Methods
- addSystemMask() : Item|null
- getData() : array<string|int, mixed>|null
- getDataFromRequest() : array<string|int, mixed>|null
- getHTMLAttribute() : mixed
- getJson() : string
- getMaskedFile() : array<string|int, mixed>|null
- save() : int|null
- setSystemGroup() : Group|null
Constants
REQUEST_FIELD_NAME
public
mixed
REQUEST_FIELD_NAME
= 'ui_avatar_editor'
Methods
addSystemMask()
public
static addSystemMask(array<string|int, mixed> $file, array<string|int, mixed> $descriptionParams) : Item|null
Parameters
- $file : array<string|int, mixed>
- $descriptionParams : array<string|int, mixed>
Tags
Return values
Item|nullgetData()
public
static getData(int|null $fileId) : array<string|int, mixed>|null
Parameters
- $fileId : int|null
Return values
array<string|int, mixed>|nullgetDataFromRequest()
public
static getDataFromRequest(string $fieldName[, HttpRequest|null $request = null ]) : array<string|int, mixed>|null
Delete after intranet 23.100.0 will be released
Parameters
- $fieldName : string
- $request : HttpRequest|null = null
Return values
array<string|int, mixed>|nullgetHTMLAttribute()
public
static getHTMLAttribute(mixed $fileId) : mixed
Parameters
- $fileId : mixed
getJson()
public
static getJson(mixed $fileId) : string
Parameters
- $fileId : mixed
Return values
stringgetMaskedFile()
public
static getMaskedFile(string $fieldName[, HttpRequest|null $request = null ]) : array<string|int, mixed>|null
Parameters
- $fieldName : string
- $request : HttpRequest|null = null
Return values
array<string|int, mixed>|nullsave()
public
static save(int|null $originalFileId, array<string|int, mixed> $file[, CurrentUser|null $currentUser = null ]) : int|null
Parameters
- $originalFileId : int|null
- $file : array<string|int, mixed>
- $currentUser : CurrentUser|null = null
Return values
int|nullsetSystemGroup()
public
static setSystemGroup(string $title, string|null $description) : Group|null
Parameters
- $title : string
- $description : string|null