Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
8319aefb
Commit
8319aefb
authored
Feb 10, 2017
by
Andreas Wolf
Browse files
[BUGFIX] Scheduler tasks must conform to namespaced interfaces
parent
0c6520a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
data/typo3/html/typo3conf/ext/ter/task/class.tx_ter_updateExtensionIndexTask.php
View file @
8319aefb
...
...
@@ -25,7 +25,7 @@ require_once ExtensionManagementUtility::extPath('ter') . 'class.tx_ter_helper.p
* @package TYPO3
* @subpackage tx_ter
*/
class
tx_ter_updateExtensionIndexTask
extends
tx_scheduler_
Task
class
tx_ter_updateExtensionIndexTask
extends
TYPO3\CMS\Scheduler\Task\Abstract
Task
{
/**
...
...
data/typo3/html/typo3conf/ext/ter/task/class.tx_ter_updateExtensionIndexTask_additionalFieldProvider.php
View file @
8319aefb
...
...
@@ -22,7 +22,7 @@
* @package TYPO3
* @subpackage tx_ter
*/
class
tx_ter_updateExtensionIndexTask_additionalFieldProvider
implements
tx_s
cheduler
_
AdditionalFieldProvider
class
tx_ter_updateExtensionIndexTask_additionalFieldProvider
implements
\
TYPO3\CMS\S
cheduler
\
AdditionalFieldProvider
Interface
{
/**
...
...
@@ -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)
* @return array Array containg all the information pertaining to the additional fields
*/
public
function
getAdditionalFields
(
array
&
$taskInfo
,
$task
,
tx_s
cheduler
_
Module
$parentObject
)
public
function
getAdditionalFields
(
array
&
$taskInfo
,
$task
,
\
TYPO3\CMS\Scheduler\Controller\S
chedulerModule
Controller
$parentObject
)
{
// Initialize selected fields
if
(
empty
(
$taskInfo
[
$this
->
fieldName
]))
{
...
...
@@ -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)
* @return boolean TRUE if validation was ok (or selected class is not relevant), FALSE otherwise
*/
public
function
validateAdditionalFields
(
array
&
$submittedData
,
tx_s
cheduler
_
Module
$parentObject
)
public
function
validateAdditionalFields
(
array
&
$submittedData
,
\
TYPO3\CMS\Scheduler\Controller\S
chedulerModule
Controller
$parentObject
)
{
$value
=
str_replace
([
','
,
' '
],
''
,
$submittedData
[
$this
->
fieldName
]);
...
...
@@ -92,7 +92,7 @@ class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements tx_sche
* @param tx_scheduler_Task Reference to the current task object
* @return void
*/
public
function
saveAdditionalFields
(
array
$submittedData
,
tx_scheduler_
Task
$task
)
public
function
saveAdditionalFields
(
array
$submittedData
,
\
TYPO3\CMS\Scheduler\Task\Abstract
Task
$task
)
{
$task
->
clearCachePages
=
$submittedData
[
$this
->
fieldName
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment