Ratio
Table of Contents
Properties
Methods
- __construct() : mixed
- asArray() : array{id: string, title: string, value: float}
- createMultipleFromConfiguration() : array<int, Ratio>
- getId() : string
- getRatioValue() : float
- isFree() : bool
- prepareAspectRatioId() : string
- Adjust names of Ratios for special character replacement.
Properties
$id
protected
string
$id
$title
protected
string
$title
$value
protected
float
$value
Methods
__construct()
public
__construct(string $id, string $title, float $value) : mixed
Parameters
- $id : string
- $title : string
- $value : float
asArray()
public
asArray() : array{id: string, title: string, value: float}
Return values
array{id: string, title: string, value: float}createMultipleFromConfiguration()
public
static createMultipleFromConfiguration(array<string|int, mixed> $config) : array<int, Ratio>
Parameters
- $config : array<string|int, mixed>
Tags
Return values
array<int, Ratio>getId()
public
getId() : string
Return values
stringgetRatioValue()
public
getRatioValue() : float
Return values
floatisFree()
public
isFree() : bool
Return values
boolprepareAspectRatioId()
Adjust names of Ratios for special character replacement.
public
static prepareAspectRatioId(string $id) : string
Parameters
- $id : string
not part of TYPO3 Core API as this method might vanish soon.