diff --git a/typo3/sysext/scheduler/class.tx_scheduler_module.php b/typo3/sysext/scheduler/class.tx_scheduler_module.php index 2848f6255f86b829f17f1a0f3f676c343fe44173..5d5c8997c50883c71a0e203f63ab420843ab8bde 100644 --- a/typo3/sysext/scheduler/class.tx_scheduler_module.php +++ b/typo3/sysext/scheduler/class.tx_scheduler_module.php @@ -532,6 +532,7 @@ class tx_scheduler_Module extends t3lib_SCbase { $this->addMessage($GLOBALS['LANG']->getLL('msg.maynotDeleteRunningTask'), t3lib_FlashMessage::ERROR); } else { if ($this->scheduler->removeTask($task)) { + $GLOBALS['BE_USER']->writeLog(4, 0, 0, 0, 'Scheduler task "%s" (UID: %s, Class: "%s") was deleted', array($task->getTaskTitle(), $task->getTaskUid(), $task->getTaskClassName())); $this->addMessage($GLOBALS['LANG']->getLL('msg.deleteSuccess')); } else { $this->addMessage($GLOBALS['LANG']->getLL('msg.deleteError'), t3lib_FlashMessage::ERROR); @@ -1273,6 +1274,7 @@ class tx_scheduler_Module extends t3lib_SCbase { // Save to database $result = $this->scheduler->saveTask($task); if ($result) { + $GLOBALS['BE_USER']->writeLog(4, 0, 0, 0, 'Scheduler task "%s" (UID: %s, Class: "%s") was updated', array($task->getTaskTitle(), $task->getTaskUid(), $task->getTaskClassName())); $this->addMessage($GLOBALS['LANG']->getLL('msg.updateSuccess')); } else { $this->addMessage($GLOBALS['LANG']->getLL('msg.updateError'), t3lib_FlashMessage::ERROR); @@ -1306,6 +1308,7 @@ class tx_scheduler_Module extends t3lib_SCbase { // Add to database $result = $this->scheduler->addTask($task); if ($result) { + $GLOBALS['BE_USER']->writeLog(4, 0, 0, 0, 'Scheduler task "%s" (UID: %s, Class: "%s") was added', array($task->getTaskTitle(), $task->getTaskUid(), $task->getTaskClassName())); $this->addMessage($GLOBALS['LANG']->getLL('msg.addSuccess')); } else { $this->addMessage($GLOBALS['LANG']->getLL('msg.addError'), t3lib_FlashMessage::ERROR); diff --git a/typo3/sysext/scheduler/class.tx_scheduler_task.php b/typo3/sysext/scheduler/class.tx_scheduler_task.php index 7a07e99e480c38f7fff179ada9e6e0d065db85ee..caa6832522181b26eaf310661ff3cd0fd7d9fdc2 100755 --- a/typo3/sysext/scheduler/class.tx_scheduler_task.php +++ b/typo3/sysext/scheduler/class.tx_scheduler_task.php @@ -121,6 +121,33 @@ abstract class tx_scheduler_Task { return $this->taskUid; } + /** + * This method returns the title of the scheduler task + * + * @return string + */ + public function getTaskTitle() { + return $GLOBALS['LANG']->sL($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][get_class($this)]['title']); + } + + /** + * This method returns the description of the scheduler task + * + * @return string + */ + public function getTaskDescription() { + return $GLOBALS['LANG']->sL($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][get_class($this)]['description']); + } + + /** + * This method returns the class name of the scheduler task + * + * @return string + */ + public function getTaskClassName() { + return get_class($this); + } + /** * This method returns the disable status of the task *