NumberFieldType extends AbstractFieldType

Read onlyYes
FinalYes

A single field definition containing the basic information for a field

Table of Contents

Properties

$configuration  : array<string|int, mixed>
$name  : string

Methods

__construct()  : mixed
__set_state()  : self
getConfiguration()  : array<string|int, mixed>
getDefaultValue()  : mixed
getDescription()  : string
getDisplayConditions()  : array<string|int, mixed>|string
getFormat()  : string
getLabel()  : string
getName()  : string
getScale()  : int
Get the number of decimal places of the number element.
getSoftReferenceKeys()  : false
getTranslationBehaviour()  : FieldTranslationBehaviour
getType()  : string
hasDefaultValue()  : bool
isNullable()  : bool
isRequired()  : bool
isSearchable()  : bool
isType()  : bool
supportsAccessControl()  : bool

Properties

$configuration

protected array<string|int, mixed> $configuration

Methods

__construct()

public __construct(string $name, array<string|int, mixed> $configuration) : mixed
Parameters
$name : string
$configuration : array<string|int, mixed>

__set_state()

public static __set_state(array<string|int, mixed> $state) : self
Parameters
$state : array<string|int, mixed>
Return values
self

getConfiguration()

public getConfiguration() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDefaultValue()

public getDefaultValue() : mixed

getDescription()

public getDescription() : string
Return values
string

getDisplayConditions()

public getDisplayConditions() : array<string|int, mixed>|string
Return values
array<string|int, mixed>|string

getFormat()

public getFormat() : string
Deprecated

since TYPO3 v15.0, will be removed in TYPO3 v16.0.

Return values
string

getLabel()

public getLabel() : string
Return values
string

getName()

public getName() : string
Return values
string

getScale()

Get the number of decimal places of the number element.

public getScale() : int

0 decimal places means, it is an integer. More than 0 decimal places means, it is a float. Maximum of 30 decimal places is possible. Defaults to 0.

Return values
int

getSoftReferenceKeys()

public getSoftReferenceKeys() : false
Return values
false

getType()

public getType() : string
Return values
string

hasDefaultValue()

public hasDefaultValue() : bool
Return values
bool

isNullable()

public isNullable() : bool
Return values
bool

isRequired()

public isRequired() : bool
Return values
bool

isSearchable()

public isSearchable() : bool
Return values
bool

supportsAccessControl()

public supportsAccessControl() : bool
Return values
bool
On this page

Search results