TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Scheduler\Controller\SchedulerModuleController Class Reference
Inheritance diagram for TYPO3\CMS\Scheduler\Controller\SchedulerModuleController:
TYPO3\CMS\Backend\Module\BaseScriptClass

Public Member Functions

 __construct ()
 
 init ()
 
 menuConfig ()
 
 main ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 render ()
 
 checkDate ($string)
 
 addMessage ($message, $severity=FlashMessage::OK)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Module\BaseScriptClass
 init ()
 
 menuConfig ()
 
 mergeExternalItems ($modName, $menuKey, $menuArr)
 
 handleExternalFunctionValue ($MM_key='function', $MS_value=null)
 
 getExternalItemConfig ($modName, $menuKey, $value='')
 
 checkExtObj ()
 
 checkSubExtObj ()
 
 extObjHeader ()
 

Protected Member Functions

 getModuleMenu ()
 
 getModuleContent ()
 
 checkSchedulerUser ()
 
 infoScreenAction ()
 
 renderTaskProgressBar ($progress)
 
 deleteTask ()
 
 stopTask ()
 
 toggleDisableAction ()
 
 executeTasks ()
 
 makeStatusLabel (array $labels)
 
 getRegisteredClasses ()
 
 getRegisteredTaskGroups ()
 
 getTemplateMarkers ()
 
 getButtons ()
 
 getBackendUser ()
 
 getDatabaseConnection ()
 
- Protected Member Functions inherited from TYPO3\CMS\Backend\Module\BaseScriptClass
 getLanguageService ()
 
 getBackendUser ()
 
 getDatabaseConnection ()
 
 getPageRenderer ()
 

Protected Attributes

 $submittedData = []
 
 $messages = []
 
 $cshKey
 
 $scheduler
 
 $backendTemplatePath = ''
 
 $view
 
 $moduleName = 'system_txschedulerM1'
 
 $moduleUri
 
 $moduleTemplate
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Module\BaseScriptClass
 $pageRenderer = null
 

Additional Inherited Members

- Public Attributes inherited from TYPO3\CMS\Backend\Module\BaseScriptClass
 $MCONF = []
 
 $id
 
 $CMD
 
 $perms_clause
 
 $MOD_MENU
 
 $MOD_SETTINGS = []
 
 $modTSconfig
 
 $modMenu_type = ''
 
 $modMenu_dontValidateList = ''
 
 $modMenu_setDefaultList = ''
 
 $extClassConf
 
 $content = ''
 
 $doc
 
 $extObj
 

Detailed Description

Module 'TYPO3 Scheduler administration module' for the 'scheduler' extension.

Definition at line 37 of file SchedulerModuleController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ addMessage()

◆ checkDate()

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::checkDate (   $string)

This method checks whether the given string can be considered a valid date or not Allowed values are anything that matches natural language (see PHP function strtotime()) or TYPO3's date syntax: HH:ii yyyy-mm-dd If the string is a valid date, the corresponding timestamp is returned. Otherwise an exception is thrown

Parameters
string$stringString to check
Returns
int Unix timestamp
Exceptions

Definition at line 1454 of file SchedulerModuleController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ checkSchedulerUser()

◆ deleteTask()

◆ executeTasks()

◆ getBackendUser()

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::getBackendUser ( )
protected

◆ getButtons()

◆ getDatabaseConnection()

◆ getModuleContent()

◆ getModuleMenu()

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::getModuleMenu ( )
protected

Generates the action menu

Definition at line 173 of file SchedulerModuleController.php.

Referenced by TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\main().

◆ getRegisteredClasses()

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::getRegisteredClasses ( )
protected

This method fetches a list of all classes that have been registered with the Scheduler For each item the following information is provided, as an associative array:

['extension'] => Key of the extension which provides the class ['filename'] => Path to the file containing the class ['title'] => String (possibly localized) containing a human-readable name for the class ['provider'] => Name of class that implements the interface for additional fields, if necessary

The name of the class itself is used as the key of the list array

Returns
array List of registered classes

Definition at line 1510 of file SchedulerModuleController.php.

References $GLOBALS, and TYPO3\CMS\Backend\Module\BaseScriptClass\getLanguageService().

Referenced by TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\executeTasks(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\getButtons(), TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\infoScreenAction(), and TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\toggleDisableAction().

◆ getRegisteredTaskGroups()

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::getRegisteredTaskGroups ( )
protected

◆ getTemplateMarkers()

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::getTemplateMarkers ( )
protected

Gets the filled markers that are used in the HTML template.

Returns
array The filled marker array

Definition at line 1567 of file SchedulerModuleController.php.

References TYPO3\CMS\Backend\Module\BaseScriptClass\$content, and TYPO3\CMS\Backend\Module\BaseScriptClass\getLanguageService().

◆ infoScreenAction()

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::infoScreenAction ( )
protected

This method gathers information about all available task classes and displays it

Returns
string html

Definition at line 485 of file SchedulerModuleController.php.

References TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\getRegisteredClasses().

Referenced by TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\getModuleContent().

◆ init()

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::init ( )

Initializes the backend module

Returns
void

Definition at line 119 of file SchedulerModuleController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\mainAction().

◆ main()

◆ mainAction()

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Injects the request object for the current request or subrequest Simply calls main() and init() and outputs the content

Parameters
ServerRequestInterface$requestthe current request
ResponseInterface$response
Returns
ResponseInterface the response with the content

Definition at line 307 of file SchedulerModuleController.php.

References $GLOBALS, TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\init(), and TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\main().

◆ makeStatusLabel()

◆ menuConfig()

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::menuConfig ( )

Adds items to the ->MOD_MENU array. Used for the function menu selector.

Returns
void

Definition at line 132 of file SchedulerModuleController.php.

References TYPO3\CMS\Backend\Module\BaseScriptClass\getLanguageService().

◆ render()

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::render ( )

This method actually prints out the module's HTML content

Returns
void
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8

Definition at line 324 of file SchedulerModuleController.php.

References TYPO3\CMS\Backend\Module\BaseScriptClass\$content, and TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().

◆ renderTaskProgressBar()

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::renderTaskProgressBar (   $progress)
protected

Renders the task progress bar.

Parameters
float$progressTask progress
Returns
string Progress bar markup

Definition at line 506 of file SchedulerModuleController.php.

References TYPO3\CMS\Backend\Module\BaseScriptClass\getLanguageService().

Referenced by TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\executeTasks().

◆ stopTask()

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::stopTask ( )
protected

Clears the registered running executions from the task Note that this doesn't actually stop the running script. It just unmarks all executions.

Todo:
find a way to really kill the running task
Returns
void

Definition at line 557 of file SchedulerModuleController.php.

References TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\addMessage(), TYPO3\CMS\Core\Messaging\AbstractMessage\ERROR, TYPO3\CMS\Backend\Module\BaseScriptClass\getLanguageService(), and TYPO3\CMS\Core\Messaging\AbstractMessage\WARNING.

Referenced by TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\getModuleContent().

◆ toggleDisableAction()

Member Data Documentation

◆ $backendTemplatePath

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::$backendTemplatePath = ''
protected

Definition at line 67 of file SchedulerModuleController.php.

◆ $cshKey

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::$cshKey
protected

Definition at line 57 of file SchedulerModuleController.php.

◆ $messages

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::$messages = []
protected

Definition at line 52 of file SchedulerModuleController.php.

◆ $moduleName

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::$moduleName = 'system_txschedulerM1'
protected

◆ $moduleTemplate

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::$moduleTemplate
protected

Definition at line 91 of file SchedulerModuleController.php.

◆ $moduleUri

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::$moduleUri
protected

Definition at line 84 of file SchedulerModuleController.php.

◆ $scheduler

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::$scheduler
protected

Definition at line 62 of file SchedulerModuleController.php.

◆ $submittedData

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::$submittedData = []
protected

Definition at line 44 of file SchedulerModuleController.php.

◆ $view

TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::$view
protected

Definition at line 72 of file SchedulerModuleController.php.