[TASK] Use binary notation for JsConfirmation values 34/43334/2
authorMathias Brodala <mbrodala@pagemachine.de>
Tue, 15 Sep 2015 13:51:57 +0000 (15:51 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Wed, 23 Sep 2015 13:25:48 +0000 (15:25 +0200)
Resolves: #69832
Releases: master
Change-Id: I43f40e1e8307a82715c679d060a8ad2b1a92c2fc
Reviewed-on: http://review.typo3.org/43334
Reviewed-by: Stefan Froemken <froemken@gmail.com>
Tested-by: Stefan Froemken <froemken@gmail.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Type/Bitmask/JsConfirmation.php

index 4bd9fab..93ecae3 100644 (file)
@@ -22,25 +22,25 @@ class JsConfirmation extends \TYPO3\CMS\Core\Type\Enumeration {
        /**
         * @var int
         */
-       const TYPE_CHANGE = 1;
+       const TYPE_CHANGE = 0b00000001;
 
        /**
         * @var int
         */
-       const COPY_MOVE_PASTE = 2;
+       const COPY_MOVE_PASTE = 0b00000010;
 
        /**
         * @var int
         */
-       const DELETE = 4;
+       const DELETE = 0b00000100;
 
        /**
         * @var int
         */
-       const FE_EDIT = 8;
+       const FE_EDIT = 0b00001000;
 
        /**
         * @var int
         */
-       const OTHER = 128;
+       const OTHER = 0b10000000;
 }