TableColumnType extends Enumeration
Enumeration object for tca type
Table of Contents
Constants
- __default = self::INPUT
- CATEGORY = 'CATEGORY'
- CHECK = 'CHECK'
- FLEX = 'FLEX'
- GROUP = 'GROUP'
- IMAGEMANIPULATION = 'IMAGEMANIPULATION'
- INLINE = 'INLINE'
- INPUT = 'INPUT'
- Constants reflecting the table column type
- LANGUAGE = 'LANGUAGE'
- NONE = 'NONE'
- PASSTHROUGH = 'PASSTHROUGH'
- RADIO = 'RADIO'
- SELECT = 'SELECT'
- SLUG = 'SLUG'
- TEXT = 'TEXT'
- USER = 'USER'
Properties
- $enumConstants : array<string|int, mixed>
- $value : mixed
Methods
- __construct() : mixed
- __toString() : string
- Core types must implement the __toString function in order to be serialized to the database;
- cast() : static
- Cast value to enumeration type
- equals() : bool
- Compare if the value of the current object value equals the given value
- getConstants() : array<string|int, mixed>
- Get the valid values for this enum Defaults to constants you define in your subclass override to provide custom functionality
- getHumanReadableName() : string
- Returns the name of the constant, first char upper, underscores as spaces
- getName() : string
- Returns the constants name as is, without manipulation (usually all upper case)
- isValid() : bool
- Check if the value on this enum is a valid value for the enum
- loadValues() : mixed
- setValue() : mixed
- Set the Enumeration value to the associated enumeration value by a loose comparison.
Constants
__default
public
mixed
__default
= self::INPUT
CATEGORY
public
mixed
CATEGORY
= 'CATEGORY'
CHECK
public
mixed
CHECK
= 'CHECK'
FLEX
public
mixed
FLEX
= 'FLEX'
GROUP
public
mixed
GROUP
= 'GROUP'
IMAGEMANIPULATION
public
mixed
IMAGEMANIPULATION
= 'IMAGEMANIPULATION'
INLINE
public
mixed
INLINE
= 'INLINE'
INPUT
Constants reflecting the table column type
public
mixed
INPUT
= 'INPUT'
LANGUAGE
public
mixed
LANGUAGE
= 'LANGUAGE'
NONE
public
mixed
NONE
= 'NONE'
PASSTHROUGH
public
mixed
PASSTHROUGH
= 'PASSTHROUGH'
RADIO
public
mixed
RADIO
= 'RADIO'
SELECT
public
mixed
SELECT
= 'SELECT'
SLUG
public
mixed
SLUG
= 'SLUG'
TEXT
public
mixed
TEXT
= 'TEXT'
USER
public
mixed
USER
= 'USER'
Properties
$enumConstants
protected
static array<string|int, mixed>
$enumConstants
$value
protected
mixed
$value
Methods
__construct()
public
__construct([mixed $type = null ]) : mixed
Parameters
- $type : mixed = null
__toString()
Core types must implement the __toString function in order to be serialized to the database;
public
__toString() : string
Return values
stringcast()
Cast value to enumeration type
public
static cast(mixed $value) : static
Parameters
- $value : mixed
-
Value that has to be casted
Return values
staticequals()
Compare if the value of the current object value equals the given value
public
equals(mixed $value) : bool
Parameters
- $value : mixed
-
default
Return values
boolgetConstants()
Get the valid values for this enum Defaults to constants you define in your subclass override to provide custom functionality
public
static getConstants([bool $include_default = false ]) : array<string|int, mixed>
Parameters
- $include_default : bool = false
Return values
array<string|int, mixed>getHumanReadableName()
Returns the name of the constant, first char upper, underscores as spaces
public
static getHumanReadableName(string|int $value) : string
Parameters
- $value : string|int
Return values
stringgetName()
Returns the constants name as is, without manipulation (usually all upper case)
public
static getName(string|int $value) : string
Parameters
- $value : string|int
Return values
stringisValid()
Check if the value on this enum is a valid value for the enum
protected
isValid(mixed $value) : bool
Parameters
- $value : mixed
Return values
boolloadValues()
protected
static loadValues() : mixed
param string $class
Tags
setValue()
Set the Enumeration value to the associated enumeration value by a loose comparison.
protected
setValue(mixed $value) : mixed
The value, that is used as the enumeration value, will be of the same type like defined in the enumeration
Parameters
- $value : mixed