TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
JsConfirmation Class Reference
Inheritance diagram for JsConfirmation:
Enumeration TypeInterface

Public Member Functions

 matches (JsConfirmation $value)
 
- Public Member Functions inherited from Enumeration
 __construct ($value=null)
 
 equals ($value)
 
 __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)
 
 isValid ($value)
 
- Protected Member Functions inherited from Enumeration
 setValue ($value)
 
 isValid ($value)
 

Static Protected Attributes

static $allowedValues = self::TYPE_CHANGE | self::COPY_MOVE_PASTE | self::DELETE | self::FE_EDIT | self::OTHER
 
- Static Protected Attributes inherited from Enumeration
static $enumConstants
 

Additional Inherited Members

- Static Public Member Functions inherited from Enumeration
static getConstants ($include_default=false)
 
static cast ($value)
 
static getName ($value)
 
static getHumanReadableName ($value)
 
- Static Protected Member Functions inherited from Enumeration
static loadValues ()
 
- Protected Attributes inherited from Enumeration
 $value
 

Detailed Description

A class providing constants for bitwise operations on javascript confirmation popups

Definition at line 23 of file JsConfirmation.php.

Member Function Documentation

isValid (   $value)
protected

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

Parameters
mixed$value
Returns
bool

Definition at line 106 of file JsConfirmation.php.

References Enumeration\$value.

matches ( JsConfirmation  $value)

Returns TRUE if a given value matches the internal value

Parameters
JsConfirmation$valueValue to check
Returns
bool

Definition at line 70 of file JsConfirmation.php.

References Enumeration\$value.

setValue (   $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

Parameters
mixed$value
Exceptions
ExceptionInvalidEnumerationValueException

Definition at line 85 of file JsConfirmation.php.

References Enumeration\$value.

Member Data Documentation

$allowedValues = self::TYPE_CHANGE | self::COPY_MOVE_PASTE | self::DELETE | self::FE_EDIT | self::OTHER
staticprotected

Definition at line 62 of file JsConfirmation.php.

const __default = self::ALL

Definition at line 55 of file JsConfirmation.php.

const ALL = 255

Definition at line 53 of file JsConfirmation.php.

const FE_EDIT = 0b00001000

Definition at line 43 of file JsConfirmation.php.

Referenced by FrontendEditPanel\editPanelLinkWrap().

const OTHER = 0b10000000

Definition at line 48 of file JsConfirmation.php.