[TASK] Add "Abstract" prefix to abstract task class
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 8 Nov 2012 21:57:03 +0000 (22:57 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Thu, 8 Nov 2012 21:58:43 +0000 (22:58 +0100)
All abstract classes should be start with an Abstract
prefix in the class name.
Adjust the abstract task class to this naming convention.

Resolves: #42803
Releases: 6.0

Change-Id: If0b62d4ff61d9aa7ce44f61a15457faeabeab2d7
Reviewed-on: http://review.typo3.org/16331
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/extbase/Classes/Scheduler/FieldProvider.php
typo3/sysext/extbase/Classes/Scheduler/Task.php

index 377906a..e05029a 100644 (file)
@@ -65,7 +65,7 @@ class FieldProvider implements \TYPO3\CMS\Scheduler\AdditionalFieldProviderInter
         * Render additional information fields within the scheduler backend.
         *
         * @param array $taskInfo Array information of task to return
-        * @param mixed $task \TYPO3\CMS\Scheduler\Task or tx_scheduler_Execution instance
+        * @param mixed $task \TYPO3\CMS\Scheduler\Task\AbstractTask or tx_scheduler_Execution instance
         * @param \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $schedulerModule Reference to the calling object (BE module of the Scheduler)
         * @return array Additional fields
         * @see \TYPO3\CMS\Scheduler\AdditionalFieldProvider#getAdditionalFields($taskInfo, $task, $schedulerModule)
@@ -102,10 +102,10 @@ class FieldProvider implements \TYPO3\CMS\Scheduler\AdditionalFieldProviderInter
         * Saves additional field values
         *
         * @param array $submittedData
-        * @param \TYPO3\CMS\Scheduler\Task $task
+        * @param \TYPO3\CMS\Scheduler\Task\AbstractTask $task
         * @return boolean
         */
-       public function saveAdditionalFields(array $submittedData, \TYPO3\CMS\Scheduler\Task $task) {
+       public function saveAdditionalFields(array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task) {
                $task->setCommandIdentifier($submittedData['task_extbase']['action']);
                $task->setArguments($submittedData['task_extbase']['arguments']);
                return TRUE;
index 4b08da8..eab9f27 100644 (file)
@@ -26,7 +26,7 @@ namespace TYPO3\CMS\Extbase\Scheduler;
 /**
  * Scheduler task to execute CommandController commands
  */
-class Task extends \TYPO3\CMS\Scheduler\Task {
+class Task extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
 
        /**
         * @var string