Commit 6570e292 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Merge branch '39-scheduler-tasks-cannot-be-created-with-ext-ter-installed' into 'master'

[BUGFIX] Scheduler tasks must conform to namespaced interfaces

Closes #39

See merge request !27
parents 0c6520a9 8319aefb
...@@ -25,7 +25,7 @@ require_once ExtensionManagementUtility::extPath('ter') . 'class.tx_ter_helper.p ...@@ -25,7 +25,7 @@ require_once ExtensionManagementUtility::extPath('ter') . 'class.tx_ter_helper.p
* @package TYPO3 * @package TYPO3
* @subpackage tx_ter * @subpackage tx_ter
*/ */
class tx_ter_updateExtensionIndexTask extends tx_scheduler_Task class tx_ter_updateExtensionIndexTask extends TYPO3\CMS\Scheduler\Task\AbstractTask
{ {
/** /**
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* @package TYPO3 * @package TYPO3
* @subpackage tx_ter * @subpackage tx_ter
*/ */
class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements tx_scheduler_AdditionalFieldProvider class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements \TYPO3\CMS\Scheduler\AdditionalFieldProviderInterface
{ {
/** /**
...@@ -45,7 +45,7 @@ class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements tx_sche ...@@ -45,7 +45,7 @@ class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements tx_sche
* @param tx_scheduler_Module Reference to the calling object (Scheduler's BE module) * @param tx_scheduler_Module Reference to the calling object (Scheduler's BE module)
* @return array Array containg all the information pertaining to the additional fields * @return array Array containg all the information pertaining to the additional fields
*/ */
public function getAdditionalFields(array &$taskInfo, $task, tx_scheduler_Module $parentObject) public function getAdditionalFields(array &$taskInfo, $task, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject)
{ {
// Initialize selected fields // Initialize selected fields
if (empty($taskInfo[$this->fieldName])) { if (empty($taskInfo[$this->fieldName])) {
...@@ -77,7 +77,7 @@ class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements tx_sche ...@@ -77,7 +77,7 @@ class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements tx_sche
* @param tx_scheduler_Module Reference to the calling object (Scheduler's BE module) * @param tx_scheduler_Module Reference to the calling object (Scheduler's BE module)
* @return boolean TRUE if validation was ok (or selected class is not relevant), FALSE otherwise * @return boolean TRUE if validation was ok (or selected class is not relevant), FALSE otherwise
*/ */
public function validateAdditionalFields(array &$submittedData, tx_scheduler_Module $parentObject) public function validateAdditionalFields(array &$submittedData, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject)
{ {
$value = str_replace([',', ' '], '', $submittedData[$this->fieldName]); $value = str_replace([',', ' '], '', $submittedData[$this->fieldName]);
...@@ -92,7 +92,7 @@ class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements tx_sche ...@@ -92,7 +92,7 @@ class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements tx_sche
* @param tx_scheduler_Task Reference to the current task object * @param tx_scheduler_Task Reference to the current task object
* @return void * @return void
*/ */
public function saveAdditionalFields(array $submittedData, tx_scheduler_Task $task) public function saveAdditionalFields(array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task)
{ {
$task->clearCachePages = $submittedData[$this->fieldName]; $task->clearCachePages = $submittedData[$this->fieldName];
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment