[TASK] Refactor core usages of testInt, calcPriority, calcParenthesis
authorSusanne Moog <typo3@susannemoog.de>
Mon, 11 Jul 2011 20:38:47 +0000 (22:38 +0200)
committerOliver Hader <oliver@typo3.org>
Tue, 12 Jul 2011 15:30:13 +0000 (17:30 +0200)
As testInt, calcPriority and calcParenthesis were moved and renamed to
t3lib_utility_Math we have to change the core usages, too.

Change-Id: Ife5b6919ab647672e16605cf62fdd5e3de147d78
Depends: #28064
Resolves: #28097

typo3/sysext/workspaces/Classes/Service/Stages.php

index 9fee5dd..4aeb25a 100644 (file)
@@ -254,7 +254,7 @@ class Tx_Workspaces_Service_Stages {
         * @return integer The next stage Id
         */
        public function getNextStage($stageId) {
-               if (!t3lib_div::testInt($stageId)) {
+               if (!t3lib_utility_Math::canBeInterpretedAsInteger($stageId)) {
                        throw new InvalidArgumentException(
                                $GLOBALS['LANG']->sL('LLL:EXT:workspaces/Resources/Private/Language/locallang.xml:error.stageId.integer'),
                                1291109987
@@ -329,7 +329,7 @@ class Tx_Workspaces_Service_Stages {
         */
        public function getPrevStage($stageid) {
 
-               if (!t3lib_div::testInt($stageid)) {
+               if (!t3lib_utility_Math::canBeInterpretedAsInteger($stageid)) {
                        throw new InvalidArgumentException($GLOBALS['LANG']->sL('LLL:EXT:workspaces/Resources/Private/Language/locallang.xml:error.stageId.integer'));
                }
 
@@ -564,7 +564,7 @@ class Tx_Workspaces_Service_Stages {
        public function getPropertyOfCurrentWorkspaceStage($stageId, $property) {
                $result = NULL;
 
-               if (!t3lib_div::testInt($stageId)) {
+               if (!t3lib_utility_Math::canBeInterpretedAsInteger($stageId)) {
                        throw new InvalidArgumentException($GLOBALS['LANG']->sL('LLL:EXT:workspaces/Resources/Private/Language/locallang.xml:error.stageId.integer'));
                }