‪TYPO3CMS  11.5
TYPO3\CMS\Core\Type\Bitmask\JsConfirmation Class Reference
Inheritance diagram for TYPO3\CMS\Core\Type\Bitmask\JsConfirmation:
TYPO3\CMS\Core\Type\Enumeration TYPO3\CMS\Core\Type\TypeInterface

Public Member Functions

bool matches (JsConfirmation $value)
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Type\Enumeration
 __construct ($value=null)
bool equals ($value)
string __toString ()

Public Attributes

const TYPE_CHANGE = 0b00000001
const COPY_MOVE_PASTE = 0b00000010
const DELETE = 0b00000100
const FE_EDIT = 0b00001000
const OTHER = 0b10000000
const ALL = 255
const __default = self::ALL

Protected Member Functions

 setValue ($value)
bool isValid ($value)

Static Protected Attributes

static int $allowedValues = self::TYPE_CHANGE | self::COPY_MOVE_PASTE | self::DELETE | self::FE_EDIT | self::OTHER
- ‪Static Protected Attributes inherited from ‪TYPO3\CMS\Core\Type\Enumeration
static array $enumConstants

Additional Inherited Members

- ‪Static Public Member Functions inherited from ‪TYPO3\CMS\Core\Type\Enumeration
static array getConstants ($include_default=false)
static static cast ($value)
static string getName ($value)
static string getHumanReadableName ($value)
- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Type\Enumeration
static loadValues ()
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Type\Enumeration
mixed $value

Detailed Description

A class providing constants for bitwise operations on javascript confirmation popups

Definition at line 24 of file JsConfirmation.php.

Member Function Documentation

◆ isValid()

bool TYPO3\CMS\Core\Type\Bitmask\JsConfirmation::isValid (   $value)

Check if the value on this enum is a valid value for the enum


Reimplemented from TYPO3\CMS\Core\Type\Enumeration.

Definition at line 103 of file JsConfirmation.php.

References TYPO3\CMS\Core\Type\Bitmask\JsConfirmation\$allowedValues, and TYPO3\CMS\Core\Type\Enumeration\$value.

Referenced by TYPO3\CMS\Core\Type\Bitmask\JsConfirmation\setValue().

◆ matches()

bool TYPO3\CMS\Core\Type\Bitmask\JsConfirmation::matches ( JsConfirmation  $value)

Returns TRUE if a given value matches the internal value

JsConfirmation$value‪Value to check

Definition at line 73 of file JsConfirmation.php.

References TYPO3\CMS\Core\Type\Enumeration\$value.

◆ setValue()

TYPO3\CMS\Core\Type\Bitmask\JsConfirmation::setValue (   $value)

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


Reimplemented from TYPO3\CMS\Core\Type\Enumeration.

Definition at line 88 of file JsConfirmation.php.

References TYPO3\CMS\Core\Type\Enumeration\$value, and TYPO3\CMS\Core\Type\Bitmask\JsConfirmation\isValid().

Member Data Documentation

◆ $allowedValues

int TYPO3\CMS\Core\Type\Bitmask\JsConfirmation::$allowedValues = self::TYPE_CHANGE | self::COPY_MOVE_PASTE | self::DELETE | self::FE_EDIT | self::OTHER

Bitmask of allowed values beside 255

Definition at line 65 of file JsConfirmation.php.

Referenced by TYPO3\CMS\Core\Type\Bitmask\JsConfirmation\isValid().

◆ __default

const TYPO3\CMS\Core\Type\Bitmask\JsConfirmation::__default = self::ALL

Definition at line 59 of file JsConfirmation.php.


const TYPO3\CMS\Core\Type\Bitmask\JsConfirmation::ALL = 255

Definition at line 54 of file JsConfirmation.php.




const TYPO3\CMS\Core\Type\Bitmask\JsConfirmation::FE_EDIT = 0b00001000


const TYPO3\CMS\Core\Type\Bitmask\JsConfirmation::OTHER = 0b10000000