TYPO3
7.6
|
Public Member Functions | |
__construct (\TYPO3\CMS\Taskcenter\Controller\TaskModuleController $taskObject) | |
getTask () | |
getOverview () | |
Protected Member Functions | |
getActions () | |
renderActionList () | |
viewNewBackendUser ($record) | |
deleteUser ($userId, $actionId) | |
isCreatedByUser ($id, $action) | |
getCreatedUsers ($action, $selectedUser) | |
action_linkUserName ($username, $realName, $sysActionUid, $userId) | |
saveNewBackendUser ($record, $vars) | |
fixUsername ($username, $prefix) | |
fixUserGroup ($appliedUsergroups, $actionRecord) | |
fixDbMount ($appliedDbMounts) | |
checkRootline ($pageId) | |
action_createDir ($uid) | |
action_getUserMainDir () | |
getUsergroups ($record, $vars) | |
viewNewRecord ($record) | |
viewEditRecord ($record) | |
viewSqlQuery ($record) | |
viewRecordList ($record) | |
getLanguageService () | |
getBackendUser () | |
getDatabaseConnection () | |
Protected Attributes | |
$taskObject | |
$hookObjects = array() | |
$moduleUrl | |
$iconFactory | |
This class provides a task for the taskcenter
Definition at line 26 of file ActionTask.php.
__construct | ( | \TYPO3\CMS\Taskcenter\Controller\TaskModuleController | $taskObject | ) |
Constructor
Definition at line 55 of file ActionTask.php.
References $GLOBALS, ActionTask\$taskObject, ActionTask\getLanguageService(), GeneralUtility\getUserObj(), and GeneralUtility\makeInstance().
|
protected |
Create a user directory if defined
int | $uid | Id of the user record |
Definition at line 601 of file ActionTask.php.
References ActionTask\action_getUserMainDir(), and GeneralUtility\mkdir().
Referenced by ActionTask\saveNewBackendUser().
|
protected |
Get the path to the user home directory which is set in the localconf.php
Definition at line 615 of file ActionTask.php.
References $GLOBALS, and GeneralUtility\isFirstPartOfStr().
Referenced by ActionTask\action_createDir().
|
protected |
Create a link to edit a user
string | $username | Username |
string | $realName | Real name of the user |
int | $sysActionUid | Id of the sys_action record |
int | $userId | Id of the user |
Definition at line 419 of file ActionTask.php.
References ActionTask\getLanguageService(), and Icon\SIZE_SMALL.
Referenced by ActionTask\getCreatedUsers().
|
protected |
Check if a page is inside the rootline the current user can see
int | $pageId | Id of the the page to be checked |
Definition at line 582 of file ActionTask.php.
References BackendUtility\BEgetRootLine(), and ActionTask\getBackendUser().
Referenced by ActionTask\fixDbMount().
|
protected |
Delete a BE user and redirect to the action by its id
int | $userId | Id of the BE user |
int | $actionId | Id of the action |
Definition at line 351 of file ActionTask.php.
References $GLOBALS, and ActionTask\getDatabaseConnection().
Referenced by ActionTask\viewNewBackendUser().
|
protected |
Clean the to be applied DB-Mounts from not allowed ones
string | $appliedDbMounts | List of pages like pages_123,pages456 |
Definition at line 555 of file ActionTask.php.
References ActionTask\checkRootline(), ActionTask\getBackendUser(), BackendUtility\getRecord(), and GeneralUtility\trimExplode().
Referenced by ActionTask\saveNewBackendUser().
|
protected |
Clean the to be applied usergroups from not allowed ones
array | $appliedUsergroups | Array of to be applied user groups |
array | $actionRecord | The action record |
Definition at line 532 of file ActionTask.php.
Referenced by ActionTask\saveNewBackendUser().
|
protected |
Create the username based on the given username and the prefix
string | $username | Username |
string | $prefix | Prefix |
Definition at line 516 of file ActionTask.php.
Referenced by ActionTask\saveNewBackendUser().
|
protected |
Get all actions of an user. Admins can see any action, all others only those which are allowed in sys_action record itself.
Definition at line 158 of file ActionTask.php.
References ActionTask\getBackendUser(), ActionTask\getDatabaseConnection(), GeneralUtility\getIndpEnv(), ActionTask\getLanguageService(), and Icon\SIZE_SMALL.
Referenced by ActionTask\getOverview(), and ActionTask\renderActionList().
|
protected |
Returns the current BE user.
Definition at line 921 of file ActionTask.php.
References $GLOBALS.
Referenced by ActionTask\checkRootline(), ActionTask\fixDbMount(), ActionTask\getActions(), ActionTask\getCreatedUsers(), ActionTask\isCreatedByUser(), ActionTask\renderActionList(), ActionTask\saveNewBackendUser(), ActionTask\viewRecordList(), and ActionTask\viewSqlQuery().
|
protected |
Render all users who are created by the current BE user including a link to edit the record
array | $action | sys_action record. |
int | $selectedUser | Id of a selected user |
Definition at line 386 of file ActionTask.php.
References ActionTask\action_linkUserName(), BackendUtility\deleteClause(), ActionTask\getBackendUser(), ActionTask\getDatabaseConnection(), ActionTask\getLanguageService(), and Icon\SIZE_SMALL.
Referenced by ActionTask\viewNewBackendUser().
|
protected |
Returns the database connection
Definition at line 931 of file ActionTask.php.
References $GLOBALS.
Referenced by ActionTask\deleteUser(), ActionTask\getActions(), ActionTask\getCreatedUsers(), and ActionTask\viewSqlQuery().
|
protected |
Returns LanguageService
Definition at line 911 of file ActionTask.php.
References $GLOBALS.
Referenced by ActionTask\__construct(), ActionTask\action_linkUserName(), ActionTask\getActions(), ActionTask\getCreatedUsers(), ActionTask\getOverview(), ActionTask\getTask(), ActionTask\renderActionList(), ActionTask\viewEditRecord(), ActionTask\viewNewBackendUser(), ActionTask\viewRecordList(), and ActionTask\viewSqlQuery().
getOverview | ( | ) |
General overview over the task in the taskcenter menu
Implements TaskInterface.
Definition at line 133 of file ActionTask.php.
References GeneralUtility\_GP(), ActionTask\getActions(), and ActionTask\getLanguageService().
getTask | ( | ) |
This method renders the task
Implements TaskInterface.
Definition at line 73 of file ActionTask.php.
References GeneralUtility\_GP(), ActionTask\getLanguageService(), BackendUtility\getRecord(), GeneralUtility\makeInstance(), ActionTask\renderActionList(), ActionTask\viewEditRecord(), ActionTask\viewNewBackendUser(), ActionTask\viewNewRecord(), ActionTask\viewRecordList(), and ActionTask\viewSqlQuery().
|
protected |
Get all allowed usergroups which can be applied to a user record
array | $record | sys_action record |
array | $vars | Selected be_user record |
Definition at line 631 of file ActionTask.php.
References BackendUtility\getRecord(), GeneralUtility\inList(), and GeneralUtility\trimExplode().
Referenced by ActionTask\viewNewBackendUser().
|
protected |
Check if a BE user is created by the current user
int | $id | Id of the BE user |
array | $action | sys_action record. |
Definition at line 369 of file ActionTask.php.
References ActionTask\getBackendUser(), and BackendUtility\getRecord().
Referenced by ActionTask\viewNewBackendUser().
|
protected |
Render the menu of sys_actions
Definition at line 204 of file ActionTask.php.
References ActionTask\getActions(), ActionTask\getBackendUser(), ActionTask\getLanguageService(), GeneralUtility\makeInstance(), and Icon\SIZE_SMALL.
Referenced by ActionTask\getTask().
|
protected |
Save/Update a BE user
array | $record | Current action record |
array | $vars | POST vars |
Definition at line 442 of file ActionTask.php.
References $GLOBALS, ActionTask\action_createDir(), ActionTask\fixDbMount(), ActionTask\fixUserGroup(), ActionTask\fixUsername(), ActionTask\getBackendUser(), BackendUtility\getRecord(), if, and GeneralUtility\makeInstance().
Referenced by ActionTask\viewNewBackendUser().
|
protected |
Action to edit records
array | $record | sys_action record |
Definition at line 676 of file ActionTask.php.
References $GLOBALS, BackendUtility\dateTimeAge(), ActionTask\getLanguageService(), BackendUtility\getRecord(), BackendUtility\getRecordPath(), BackendUtility\getRecordTitle(), GeneralUtility\makeInstance(), and Icon\SIZE_SMALL.
Referenced by ActionTask\getTask().
|
protected |
Action to create a new BE user
array | $record | sys_action record |
Definition at line 242 of file ActionTask.php.
References GeneralUtility\_GP(), GeneralUtility\_POST(), ActionTask\deleteUser(), ActionTask\getCreatedUsers(), ActionTask\getLanguageService(), BackendUtility\getRecord(), ActionTask\getUsergroups(), ActionTask\isCreatedByUser(), GeneralUtility\makeInstance(), ActionTask\saveNewBackendUser(), and GeneralUtility\validEmail().
Referenced by ActionTask\getTask().
|
protected |
Action to create a new record
array | $record | sys_action record |
Definition at line 656 of file ActionTask.php.
Referenced by ActionTask\getTask().
|
protected |
Action to create a list of records of a specific table and pid
array | $record | sys_action record |
Definition at line 794 of file ActionTask.php.
References $GLOBALS, GeneralUtility\_GP(), ActionTask\getBackendUser(), GeneralUtility\getIndpEnv(), ActionTask\getLanguageService(), if, GeneralUtility\makeInstance(), GeneralUtility\quoteJSvalue(), and BackendUtility\readPageAccess().
Referenced by ActionTask\getTask().
|
protected |
Action to view the result of a SQL query
array | $record | sys_action record |
Definition at line 722 of file ActionTask.php.
References $GLOBALS, ActionTask\getBackendUser(), ActionTask\getDatabaseConnection(), GeneralUtility\getIndpEnv(), ActionTask\getLanguageService(), GeneralUtility\makeInstance(), and Icon\SIZE_SMALL.
Referenced by ActionTask\getTask().
|
protected |
Definition at line 38 of file ActionTask.php.
|
protected |
Definition at line 50 of file ActionTask.php.
|
protected |
Definition at line 45 of file ActionTask.php.
|
protected |
Definition at line 31 of file ActionTask.php.
Referenced by ActionTask\__construct().