TemplateFileCreator
in package
implements
JsonSerializable
FinalYes
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
- $actionLabel : string
- $actionName : mixed
- $appId : mixed
- $fileExtension : mixed
- $iconClass : string|null
- $iconSvgInline : string|null
- $mimetypes : array<int, string>
- $order : mixed
- $ratio : float|null
Methods
- __construct() : mixed
- addMimetype() : TemplateFileCreator
- getActionLabel() : string
- getAppId() : string
- getMimetypes() : array<string|int, mixed>
- getOrder() : int
-
jsonSerialize()
: array{app: string, label: string, extension: string, iconClass: ?string, iconSvgInline: ?string, mimetypes: list
, ratio: ?float, actionLabel: string} - setActionLabel() : TemplateFileCreator
- setIconClass() : TemplateFileCreator
- setIconSvgInline() : TemplateFileCreator
- setOrder() : TemplateFileCreator
- setRatio() : TemplateFileCreator
Properties
$actionLabel
protected
string
$actionLabel
= ''
Tags
$actionName
protected
mixed
$actionName
$appId
protected
mixed
$appId
$fileExtension
protected
mixed
$fileExtension
$iconClass
protected
string|null
$iconClass
$iconSvgInline
protected
string|null
$iconSvgInline
$mimetypes
protected
array<int, string>
$mimetypes
= []
$order
protected
mixed
$order
= 100
$ratio
protected
float|null
$ratio
= null
Methods
__construct()
public
__construct(string $appId, string $actionName, string $fileExtension) : mixed
Parameters
- $appId : string
- $actionName : string
- $fileExtension : string
Tags
addMimetype()
public
addMimetype(string $mimetype) : TemplateFileCreator
Parameters
- $mimetype : string
Tags
Return values
TemplateFileCreatorgetActionLabel()
public
getActionLabel() : string
Tags
Return values
stringgetAppId()
public
getAppId() : string
Tags
Return values
stringgetMimetypes()
public
getMimetypes() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getOrder()
public
getOrder() : int
Tags
Return values
intjsonSerialize()
public
jsonSerialize() : array{app: string, label: string, extension: string, iconClass: ?string, iconSvgInline: ?string, mimetypes: list, ratio: ?float, actionLabel: string}
Tags
Return values
array{app: string, label: string, extension: string, iconClass: ?string, iconSvgInline: ?string, mimetypes: listsetActionLabel()
public
setActionLabel(string $actionLabel) : TemplateFileCreator
Parameters
- $actionLabel : string
Tags
Return values
TemplateFileCreatorsetIconClass()
public
setIconClass(string $iconClass) : TemplateFileCreator
Parameters
- $iconClass : string
Tags
Return values
TemplateFileCreatorsetIconSvgInline()
public
setIconSvgInline(string $iconSvgInline) : TemplateFileCreator
Parameters
- $iconSvgInline : string
Tags
Return values
TemplateFileCreatorsetOrder()
public
setOrder(int $order) : TemplateFileCreator
Parameters
- $order : int
-
order in which the create action shall be listed
Tags
Return values
TemplateFileCreatorsetRatio()
public
setRatio(float $ratio) : TemplateFileCreator
Parameters
- $ratio : float