TYPO3
7.6
|
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 BaseScriptClass | |
init () | |
menuConfig () | |
mergeExternalItems ($modName, $menuKey, $menuArr) | |
handleExternalFunctionValue ($MM_key= 'function', $MS_value=null) | |
getExternalItemConfig ($modName, $menuKey, $value= '') | |
checkExtObj () | |
checkSubExtObj () | |
extObjHeader () | |
extObjContent () | |
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 BaseScriptClass | |
getLanguageService () | |
getBackendUser () | |
getDatabaseConnection () | |
getPageRenderer () | |
Protected Attributes | |
$submittedData = array() | |
$messages = array() | |
$cshKey | |
$scheduler | |
$backendTemplatePath = '' | |
$view | |
$moduleName = 'system_txschedulerM1' | |
$moduleUri | |
$moduleTemplate | |
Protected Attributes inherited from BaseScriptClass | |
$pageRenderer = null | |
Additional Inherited Members | |
Public Attributes inherited from BaseScriptClass | |
$MCONF = array() | |
$id | |
$CMD | |
$perms_clause | |
$MOD_MENU | |
$MOD_SETTINGS = array() | |
$modTSconfig | |
$modMenu_type = '' | |
$modMenu_dontValidateList = '' | |
$modMenu_setDefaultList = '' | |
$extClassConf | |
$content = '' | |
$doc | |
$extObj | |
Module 'TYPO3 Scheduler administration module' for the 'scheduler' extension.
Definition at line 37 of file SchedulerModuleController.php.
__construct | ( | ) |
Definition at line 96 of file SchedulerModuleController.php.
References SchedulerModuleController\$moduleName, BaseScriptClass\$pageRenderer, ExtensionManagementUtility\extPath(), BaseScriptClass\getLanguageService(), and GeneralUtility\makeInstance().
addMessage | ( | $message, | |
$severity = FlashMessage::OK |
|||
) |
This method is used to add a message to the internal queue
string | $message | The message itself |
int | $severity | Message level (according to FlashMessage class constants) |
Definition at line 1483 of file SchedulerModuleController.php.
Referenced by CleanerFieldProvider\checkTcaIsNotEmpty(), CleanerFieldProvider\checkTcaIsValid(), SchedulerModuleController\deleteTask(), SchedulerModuleController\executeTasks(), SchedulerModuleController\getModuleContent(), SchedulerModuleController\stopTask(), CleanerFieldProvider\validateAdditionalFieldPeriod(), and ValidatorTaskAdditionalFieldProvider\validateAdditionalFields().
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
string | $string | String to check |
\InvalidArgumentException |
Definition at line 1445 of file SchedulerModuleController.php.
References GeneralUtility\logDeprecatedFunction(), and GeneralUtility\trimExplode().
|
protected |
This method checks the status of the '_cli_scheduler' user It will differentiate between a non-existing user and an existing, but disabled user (as per enable fields)
Definition at line 337 of file SchedulerModuleController.php.
References BackendUtility\BEenableFields(), BackendUtility\deleteClause(), and SchedulerModuleController\getDatabaseConnection().
|
protected |
Delete a task from the execution queue
Definition at line 519 of file SchedulerModuleController.php.
References SchedulerModuleController\addMessage(), AbstractMessage\ERROR, SchedulerModuleController\getBackendUser(), SchedulerModuleController\getDatabaseConnection(), and BaseScriptClass\getLanguageService().
Referenced by SchedulerModuleController\getModuleContent().
|
protected |
Execute all selected tasks
Definition at line 895 of file SchedulerModuleController.php.
References GeneralUtility\_POST(), SchedulerModuleController\addMessage(), AbstractMessage\ERROR, BaseScriptClass\getLanguageService(), and SchedulerModuleController\getRegisteredClasses().
Referenced by SchedulerModuleController\getModuleContent().
|
protected |
Returns the global BackendUserAuthentication object.
Definition at line 1648 of file SchedulerModuleController.php.
References $GLOBALS.
Referenced by SchedulerModuleController\deleteTask(), and SchedulerModuleController\main().
|
protected |
Create the panel of buttons for submitting the form or otherwise perform operations.
Definition at line 1568 of file SchedulerModuleController.php.
References ButtonBar\BUTTON_POSITION_LEFT, ButtonBar\BUTTON_POSITION_RIGHT, BaseScriptClass\getLanguageService(), SchedulerModuleController\getRegisteredClasses(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.
Referenced by SchedulerModuleController\main().
|
protected |
Returns the database connection
Definition at line 1658 of file SchedulerModuleController.php.
References $GLOBALS.
Referenced by SchedulerModuleController\checkSchedulerUser(), SchedulerModuleController\deleteTask(), and SchedulerModuleController\getRegisteredTaskGroups().
|
protected |
Generate the module's content
Definition at line 206 of file SchedulerModuleController.php.
References BaseScriptClass\$content, GeneralUtility\_GP(), GeneralUtility\_GPmerged(), SchedulerModuleController\addMessage(), SchedulerModuleController\deleteTask(), elseif, AbstractMessage\ERROR, SchedulerModuleController\executeTasks(), BaseScriptClass\getLanguageService(), SchedulerModuleController\infoScreenAction(), SchedulerModuleController\stopTask(), and SchedulerModuleController\toggleDisableAction().
Referenced by SchedulerModuleController\main().
|
protected |
Generates the action menu
Definition at line 173 of file SchedulerModuleController.php.
Referenced by SchedulerModuleController\main().
|
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
Definition at line 1501 of file SchedulerModuleController.php.
References $GLOBALS, $list, and BaseScriptClass\getLanguageService().
Referenced by SchedulerModuleController\executeTasks(), SchedulerModuleController\getButtons(), and SchedulerModuleController\infoScreenAction().
|
protected |
This method fetches list of all group that have been registered with the Scheduler
Definition at line 1524 of file SchedulerModuleController.php.
References $list, BackendUtility\BEenableFields(), BackendUtility\deleteClause(), and SchedulerModuleController\getDatabaseConnection().
|
protected |
Gets the filled markers that are used in the HTML template.
Definition at line 1557 of file SchedulerModuleController.php.
References BaseScriptClass\getLanguageService().
|
protected |
This method gathers information about all available task classes and displays it
Definition at line 485 of file SchedulerModuleController.php.
References SchedulerModuleController\getRegisteredClasses().
Referenced by SchedulerModuleController\getModuleContent().
init | ( | ) |
Initializes the backend module
Definition at line 119 of file SchedulerModuleController.php.
References GeneralUtility\makeInstance().
Referenced by SchedulerModuleController\mainAction().
main | ( | ) |
Main function of the module. Write the content to $this->content
Definition at line 149 of file SchedulerModuleController.php.
References SchedulerModuleController\getBackendUser(), SchedulerModuleController\getButtons(), BaseScriptClass\getLanguageService(), SchedulerModuleController\getModuleContent(), and SchedulerModuleController\getModuleMenu().
Referenced by SchedulerModuleController\mainAction().
mainAction | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Injects the request object for the current request or subrequest Simply calls main() and init() and outputs the content
ServerRequestInterface | $request | the current request |
ResponseInterface | $response |
Definition at line 307 of file SchedulerModuleController.php.
References $GLOBALS, $response, MessageInterface\getBody(), SchedulerModuleController\init(), and SchedulerModuleController\main().
|
protected |
Generates bootstrap labels containing the label statuses
array | $labels |
Definition at line 1230 of file SchedulerModuleController.php.
menuConfig | ( | ) |
Adds items to the ->MOD_MENU array. Used for the function menu selector.
Definition at line 132 of file SchedulerModuleController.php.
References BaseScriptClass\getLanguageService().
render | ( | ) |
This method actually prints out the module's HTML content
Definition at line 324 of file SchedulerModuleController.php.
References BaseScriptClass\$content, and GeneralUtility\logDeprecatedFunction().
|
protected |
Renders the task progress bar.
float | $progress | Task progress |
Definition at line 506 of file SchedulerModuleController.php.
References BaseScriptClass\getLanguageService().
|
protected |
Clears the registered running executions from the task Note that this doesn't actually stop the running script. It just unmarks all executions.
Definition at line 557 of file SchedulerModuleController.php.
References SchedulerModuleController\addMessage(), AbstractMessage\ERROR, BaseScriptClass\getLanguageService(), and AbstractMessage\WARNING.
Referenced by SchedulerModuleController\getModuleContent().
|
protected |
Toggles the disabled state of the submitted task
Definition at line 585 of file SchedulerModuleController.php.
Referenced by SchedulerModuleController\getModuleContent().
|
protected |
Definition at line 67 of file SchedulerModuleController.php.
|
protected |
Definition at line 57 of file SchedulerModuleController.php.
|
protected |
Definition at line 52 of file SchedulerModuleController.php.
|
protected |
Definition at line 79 of file SchedulerModuleController.php.
Referenced by SchedulerModuleController\__construct().
|
protected |
Definition at line 91 of file SchedulerModuleController.php.
|
protected |
Definition at line 84 of file SchedulerModuleController.php.
|
protected |
Definition at line 62 of file SchedulerModuleController.php.
|
protected |
Definition at line 44 of file SchedulerModuleController.php.
|
protected |
Definition at line 72 of file SchedulerModuleController.php.