Public Member Functions | |
| __construct () | |
| dispatch ($params=array(), TYPO3AJAX &$ajaxObj=null) | |
| renderOwnername ($page, $ownerUid, $username, $validUser=true) | |
| renderGroupname ($page, $groupUid, $groupname, $validGroup=true) | |
| renderPermissions ($int, $pageId=0, $who= 'user') | |
Protected Member Functions | |
| renderUserSelector ($page, $ownerUid, $username= '') | |
| renderGroupSelector ($page, $groupUid, $groupname= '') | |
| renderToggleEditLock ($page, $editLockState) | |
Protected Attributes | |
| $conf = array() | |
| $backPath = '../../../' | |
Definition at line 64 of file class.sc_mod_web_perm_ajax.php.
| SC_mod_web_perm_ajax::__construct | ( | ) |
The constructor of this class
Definition at line 80 of file class.sc_mod_web_perm_ajax.php.
References t3lib_div::_POST(), t3lib_BEfunc::getGroupNames(), and t3lib_BEfunc::getUserNames().
| SC_mod_web_perm_ajax::dispatch | ( | $ | params = array(), |
|
| TYPO3AJAX &$ | ajaxObj = null | |||
| ) |
The main dispatcher function. Collect data and prepare HTML output.
| array | $params: array of parameters from the AJAX interface, currently unused | |
| TYPO3AJAX | $ajaxObj: object of type TYPO3AJAX |
Definition at line 130 of file class.sc_mod_web_perm_ajax.php.
References $ajaxObj, $content, t3lib_div::makeInstance(), renderGroupname(), renderGroupSelector(), renderOwnername(), renderPermissions(), renderToggleEditLock(), and renderUserSelector().
| SC_mod_web_perm_ajax::renderGroupname | ( | $ | page, | |
| $ | groupUid, | |||
| $ | groupname, | |||
| $ | validGroup = true | |||
| ) |
Print the string with the new group of a page record
| Integer | $page: The TYPO3 page id | |
| Integer | $groupUid: The new page group uid | |
| String | $groupname: The TYPO3 BE groupname (used to display in the element) | |
| Boolean | $validGroup: Must be set to FALSE, if the group has no name or is deleted |
Definition at line 344 of file class.sc_mod_web_perm_ajax.php.
References $GLOBALS, and t3lib_div::fixed_lgd_cs().
Referenced by dispatch(), and SC_mod_web_perm_index::notEdit().
| SC_mod_web_perm_ajax::renderGroupSelector | ( | $ | page, | |
| $ | groupUid, | |||
| $ | groupname = '' | |||
| ) | [protected] |
Generate the group selector element
| Integer | $page: The page id to change the user for | |
| Integer | $groupUid: The page group uid | |
| String | $username: The username to display |
Definition at line 277 of file class.sc_mod_web_perm_ajax.php.
References $GLOBALS, $row, t3lib_BEfunc::blindGroupNames(), t3lib_BEfunc::getGroupNames(), and t3lib_BEfunc::getListGroupNames().
Referenced by dispatch().
| SC_mod_web_perm_ajax::renderOwnername | ( | $ | page, | |
| $ | ownerUid, | |||
| $ | username, | |||
| $ | validUser = true | |||
| ) |
Print the string with the new owner of a page record
| Integer | $page: The TYPO3 page id | |
| Integer | $ownerUid: The new page user uid | |
| String | $username: The TYPO3 BE username (used to display in the element) | |
| Boolean | $validUser: Must be set to FALSE, if the user has no name or is deleted |
Definition at line 328 of file class.sc_mod_web_perm_ajax.php.
References $GLOBALS, and t3lib_div::fixed_lgd_cs().
Referenced by dispatch(), and SC_mod_web_perm_index::notEdit().
| SC_mod_web_perm_ajax::renderPermissions | ( | $ | int, | |
| $ | pageId = 0, |
|||
| $ | who = 'user' | |||
| ) |
Print a set of permissions. Also used in index.php
| integer | Permission integer (bits) | |
| Integer | $page: The TYPO3 page id | |
| String | $who: The scope (user, group or everybody) |
Definition at line 376 of file class.sc_mod_web_perm_ajax.php.
Referenced by dispatch(), and SC_mod_web_perm_index::notEdit().
| SC_mod_web_perm_ajax::renderToggleEditLock | ( | $ | page, | |
| $ | editLockState | |||
| ) | [protected] |
Print the string with the new edit lock state of a page record
| Integer | $page: The TYPO3 page id | |
| String | $editlockstate: The state of the TYPO3 page (locked, unlocked) |
Definition at line 358 of file class.sc_mod_web_perm_ajax.php.
Referenced by dispatch().
| SC_mod_web_perm_ajax::renderUserSelector | ( | $ | page, | |
| $ | ownerUid, | |||
| $ | username = '' | |||
| ) | [protected] |
Generate the user selector element
| Integer | $page: The page id to change the user for | |
| Integer | $ownerUid: The page owner uid | |
| String | $username: The username to display |
Definition at line 239 of file class.sc_mod_web_perm_ajax.php.
References $GLOBALS, $row, t3lib_BEfunc::blindUserNames(), and t3lib_BEfunc::getUserNames().
Referenced by dispatch().
SC_mod_web_perm_ajax::$backPath = '../../../' [protected] |
Definition at line 67 of file class.sc_mod_web_perm_ajax.php.
SC_mod_web_perm_ajax::$conf = array() [protected] |
Definition at line 66 of file class.sc_mod_web_perm_ajax.php.
1.4.7