XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
XoopsGroupPermForm Class Reference
Inheritance diagram for XoopsGroupPermForm:
XoopsForm

Public Member Functions

 __construct ($title, $modid, $permname, $permdesc, $url='')
 
 addItem ($itemId, $itemName, $itemParent=0)
 
 _loadAllChildItemIds ($itemId, &$childIds)
 
 render ()
 
- Public Member Functions inherited from XoopsForm
 XoopsForm ($title, $name, $action, $method='post', $addtoken=false)
 
 getTitle ()
 
 getName ()
 
 getAction ()
 
 getMethod ()
 
 addElement (&$formElement, $required=false)
 
getElements ($recurse=false)
 
 getElementNames ()
 
getElementByName ($name)
 
 setElementValue ($name, $value)
 
 setElementValues ($values)
 
getElementValue ($name)
 
getElementValues ()
 
 setExtra ($extra)
 
getExtra ()
 
 setRequired (&$formElement)
 
getRequired ()
 
 insertBreak ($extra=null)
 
 display ()
 
 renderValidationJS ($withtags=true)
 
 assign (&$tpl)
 

Data Fields

 $_modid
 
 $_itemTree = []
 
 $_permName
 
 $_permDesc
 
- Data Fields inherited from XoopsForm
 $_action
 
 $_method
 
 $_name
 
 $_title
 
 $_elements = []
 
 $_extra
 
 $_required = []
 

Detailed Description

Definition at line 21 of file grouppermform.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( $title,
$modid,
$permname,
$permdesc,
$url = '' )

Constructor

Parameters
$title
$modid
$permname
$permdesc
string$url

Reimplemented from XoopsForm.

Definition at line 56 of file grouppermform.php.

Member Function Documentation

◆ _loadAllChildItemIds()

_loadAllChildItemIds ( $itemId,
& $childIds )

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

Parameters
int$itemId
array$childIds@access private

Definition at line 91 of file grouppermform.php.

◆ addItem()

addItem ( $itemId,
$itemName,
$itemParent = 0 )

Adds an item to which permission will be assigned

Parameters
string$itemName
int$itemId
int$itemParent@access public

Definition at line 76 of file grouppermform.php.

◆ render()

render ( )

Renders the form

Returns
string @access public

Reimplemented from XoopsForm.

Definition at line 113 of file grouppermform.php.

Field Documentation

◆ $_itemTree

$_itemTree = []

Definition at line 34 of file grouppermform.php.

◆ $_modid

$_modid

Definition at line 28 of file grouppermform.php.

◆ $_permDesc

$_permDesc

Definition at line 46 of file grouppermform.php.

◆ $_permName

$_permName

Definition at line 40 of file grouppermform.php.


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