![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct ($value=null) | |
equals ($value) | |
__toString () | |
Static Public Member Functions | |
static | getConstants ($include_default=false) |
static | cast ($value) |
Protected Member Functions | |
setValue ($value) | |
isValid ($value) | |
Static Protected Member Functions | |
static | loadValues () |
Protected Attributes | |
$value | |
Static Protected Attributes | |
static | $enumConstants |
Abstract class for Enumeration. Inspired by SplEnum.
The prefix "Abstract" has been left out by intention because a "type" is abstract by definition.
Definition at line 25 of file Enumeration.php.
__construct | ( | $value = null | ) |
mixed | $value |
Exception\InvalidEnumerationValueException |
Definition at line 41 of file Enumeration.php.
References Enumeration\$value, Enumeration\isValid(), and Enumeration\setValue().
__toString | ( | ) |
Implements TypeInterface.
Definition at line 205 of file Enumeration.php.
References Enumeration\$value.
Referenced by VersionState\indicatesPlaceholder().
|
static |
Cast value to enumeration type
mixed | $value | Value that has to be casted |
Definition at line 181 of file Enumeration.php.
References Enumeration\$value.
Referenced by SystemInformationToolbarItem\__construct(), ResourceStorage\addFile(), ResourceStorage\addUploadedFile(), PagetreeNode\canBeCopied(), PagetreeNode\canBeCut(), PagetreeNode\canBePastedAfter(), PagetreeNode\canBePastedInto(), PagetreeNode\canBeRemoved(), WorkspaceService\canCreatePreviewLink(), IntegrityService\checkLocalization(), ElementEntityProcessor\createClearDependentElementChildReferenceCallback(), ElementEntityProcessor\createClearDependentElementParentReferenceCallback(), DataHandler\deleteL10nOverlayRecords(), DataHandler\deleteVersionsForRecord(), IconUtility\getIcon(), TcaInline\getWorkspacedUids(), FileController\init(), PagetreeNode\isDeleted(), WorkspaceService\isNewPage(), VersionsCommand\main(), PageLayoutController\makeButtons(), IconFactory\mapRecordTypeToOverlayIdentifier(), ResourceStorage\moveFile(), PageRepository\movePlhOL(), DataHandlerHook\moveRecord(), DataHandlerHook\moveRecord_processFieldValue(), DataHandler\placeholderShadowing(), IconFactory\processAjaxRequest(), DataHandlerHook\processCmdmap_deleteAction(), PlainDataResolver\processVersionOverlays(), RelationHandler\purgeDeletePlaceholder(), ExtendedFileUtility\setExistingFilesConflictMode(), DataHandlerHook\version_clearWSID(), DataHandler\versionizeRecord(), WorkspaceService\viewSingleRecord(), and RelationHandler\writeForeignField().
equals | ( | $value | ) |
Compare if the value of the current object value equals the given value
mixed | $value | default |
Definition at line 196 of file Enumeration.php.
References Enumeration\$value.
|
static |
Get the valid values for this enum Defaults to constants you define in your subclass override to provide custom functionality
bool | $include_default |
Definition at line 165 of file Enumeration.php.
References Enumeration\$enumConstants.
Referenced by ExtendedFileUtility\setExistingFilesConflictMode().
|
protected |
Check if the value on this enum is a valid value for the enum
mixed | $value |
Definition at line 146 of file Enumeration.php.
References Enumeration\$value.
Referenced by Enumeration\__construct().
|
staticprotected |
Exception\InvalidEnumerationValueException | |
Exception\InvalidEnumerationDefinitionException |
Definition at line 67 of file Enumeration.php.
References Enumeration\$value.
|
protected |
Set the Enumeration value to the associated enumeration value by a loose comparison. The value, that is used as the enumeration value, will be of the same type like defined in the enumeration
mixed | $value |
Exception\InvalidEnumerationValueException |
Definition at line 128 of file Enumeration.php.
References Enumeration\$value.
Referenced by Enumeration\__construct().
|
staticprotected |
Definition at line 35 of file Enumeration.php.
Referenced by Enumeration\getConstants().
|
protected |
Definition at line 30 of file Enumeration.php.
Referenced by Enumeration\__construct(), DuplicationBehavior\__construct(), Enumeration\__toString(), Enumeration\cast(), Enumeration\equals(), Enumeration\isValid(), Enumeration\loadValues(), and Enumeration\setValue().