SC_mod_web_perm_ajax Class Reference

List of all members.

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 = '../../../'

Detailed Description

Definition at line 64 of file class.sc_mod_web_perm_ajax.php.


Constructor & Destructor Documentation

SC_mod_web_perm_ajax::__construct (  ) 

The constructor of this class

Returns:
Void

Definition at line 80 of file class.sc_mod_web_perm_ajax.php.

References t3lib_div::_POST(), t3lib_BEfunc::getGroupNames(), and t3lib_BEfunc::getUserNames().


Member Function Documentation

SC_mod_web_perm_ajax::dispatch ( params = array(),
TYPO3AJAX &$  ajaxObj = null 
)

The main dispatcher function. Collect data and prepare HTML output.

Parameters:
array $params: array of parameters from the AJAX interface, currently unused
TYPO3AJAX $ajaxObj: object of type TYPO3AJAX
Returns:
Void

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

Parameters:
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
Returns:
String The new group wrapped in HTML

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

Parameters:
Integer $page: The page id to change the user for
Integer $groupUid: The page group uid
String $username: The username to display
Returns:
String The html select element

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

Parameters:
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
Returns:
String The new group wrapped in HTML

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

Parameters:
integer Permission integer (bits)
Integer $page: The TYPO3 page id
String $who: The scope (user, group or everybody)
Returns:
string HTML marked up x/* indications.

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

Parameters:
Integer $page: The TYPO3 page id
String $editlockstate: The state of the TYPO3 page (locked, unlocked)
Returns:
String The new edit lock string wrapped in HTML

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

Parameters:
Integer $page: The page id to change the user for
Integer $ownerUid: The page owner uid
String $username: The username to display
Returns:
String The html select element

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().


Member Data Documentation

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.


The documentation for this class was generated from the following file:
Generated on Sat Nov 29 04:23:33 2008 for TYPO3 API by  doxygen 1.4.7