XOOPS  2.6.0
Xoops\Form\GroupPermissionForm Class Reference
Inheritance diagram for Xoops\Form\GroupPermissionForm:
Inheritance graph

Public Member Functions

 __construct ($title, $modid, $permname, $permdesc, $url= '', $anonymous=true)
 
 addItem ($itemId, $itemName, $itemParent=0)
 
 render ()
 
- Public Member Functions inherited from Xoops\Form\Form
 __construct ($title, $name, $action, $method= 'post', $addtoken=false, $display= '')
 
 addElement (Element $formElement, $required=false)
 
 assign (\XoopsTpl $tpl)
 
 display ()
 
 getAction ($encode=true)
 
 getDisplay ($encode=false)
 
 getElementByName ($name)
 
 getElementNames ()
 
 getElements ($recurse=false)
 
 getElementValue ($name, $encode=false)
 
 getElementValues ($encode=false)
 
 getExtra ()
 
 getMethod ()
 
 getName ($encode=true)
 
 getRequired ()
 
 getTitle ($encode=false)
 
 render ()
 
 renderValidationJS ($withtags=true)
 
 setAction ($value= '')
 
 setElementValue ($name, $value)
 
 setElementValues ($values)
 
 setExtra ($extra)
 
 setRequired (Element $formElement)
 
 setSummary ($summary)
 
 setTitle ($title)
 

Private Member Functions

 loadAllChildItemIds ($itemId, &$childIds)
 

Private Attributes

 $itemTree = array()
 
 $modid
 
 $permDesc
 
 $permName
 
 $showAnonymous
 

Detailed Description

Definition at line 27 of file GroupPermissionForm.php.

Constructor & Destructor Documentation

Xoops\Form\GroupPermissionForm::__construct (   $title,
  $modid,
  $permname,
  $permdesc,
  $url = '',
  $anonymous = true 
)

Constructor

Parameters
string$titleform title
integer$modidmodule id
string$permnamepermission name
string$permdescpermission description
string$urlredirect url
boolean$anonymoustrue to include anonymous group

Definition at line 74 of file GroupPermissionForm.php.

References Xoops\Form\GroupPermissionForm\$modid, Xoops\Form\Form\$title, $url, and Xoops\Form\Form\addElement().

Here is the call graph for this function:

Member Function Documentation

Xoops\Form\GroupPermissionForm::addItem (   $itemId,
  $itemName,
  $itemParent = 0 
)

Adds an item to which permission will be assigned

Parameters
integer$itemIditem id
string$itemNameitem name
integer$itemParentitem parent
Returns
void

Definition at line 97 of file GroupPermissionForm.php.

Xoops\Form\GroupPermissionForm::loadAllChildItemIds (   $itemId,
$childIds 
)
private

Loads all child ids for an item to be used in javascript

Parameters
int$itemIditem id
array&$childIdschild ids
Returns
void

Definition at line 113 of file GroupPermissionForm.php.

Referenced by Xoops\Form\GroupPermissionForm\render().

Here is the caller graph for this function:

Member Data Documentation

Xoops\Form\GroupPermissionForm::$itemTree = array()
private

Definition at line 41 of file GroupPermissionForm.php.

Xoops\Form\GroupPermissionForm::$modid
private

Definition at line 34 of file GroupPermissionForm.php.

Referenced by Xoops\Form\GroupPermissionForm\__construct().

Xoops\Form\GroupPermissionForm::$permDesc
private

Definition at line 55 of file GroupPermissionForm.php.

Xoops\Form\GroupPermissionForm::$permName
private

Definition at line 48 of file GroupPermissionForm.php.

Xoops\Form\GroupPermissionForm::$showAnonymous
private

Definition at line 62 of file GroupPermissionForm.php.


The documentation for this class was generated from the following file: