API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsGroupPermForm Class Reference
Inheritance diagram for XoopsGroupPermForm:
Collaboration diagram for XoopsGroupPermForm:

Public Member Functions

 __construct ($title, $modid, $permname, $permdesc, $url='', $anonymous=true)
 
 addItem ($itemId, $itemName, $itemParent=0)
 
 _loadAllChildItemIds ($itemId, &$childIds)
 
 render ()
 
- Public Member Functions inherited from XoopsForm
 __construct ($title, $name, $action, $method='post', $addtoken=false, $summary='')
 
 XoopsForm ()
 
 getObjectID ($object, $hashinfo='sha1')
 
 getArrayID ($value, $key, $ret, $hashinfo='sha1')
 
 getSummary ($encode=false)
 
 getTitle ($encode=false)
 
 getName ($encode=true)
 
 getAction ($encode=true)
 
 getMethod ()
 
 addElement ($formElement, $required=false)
 
getElements ($recurse=false)
 
 getElementNames ()
 
getElementByName ($name)
 
 setElementValue ($name, $value)
 
 setElementValues ($values)
 
 getElementValue ($name, $encode=false)
 
 getElementValues ($encode=false)
 
 setClass ($class)
 
 setExtra ($extra)
 
 setSummary ($summary)
 
getClass ()
 
getExtra ()
 
 setRequired (XoopsFormElement $formElement)
 
getRequired ()
 
 insertBreak ($extra=null)
 
 render ()
 
 display ()
 
 renderValidationJS ($withtags=true)
 
 assign (XoopsTpl $tpl)
 

Data Fields

 $_modid
 
 $_itemTree = array()
 
 $_permName
 
 $_permDesc
 
 $_showAnonymous
 
- Data Fields inherited from XoopsForm
 $_action
 
 $_method
 
 $_name
 
 $_title
 
 $_summary = ''
 
 $_elements = array()
 
 $_class = array()
 
 $_extra = array()
 
 $_required = array()
 
 $_objid = 'da39a3ee5e6b4b0d3255bfef95601890afd80709'
 

Detailed Description

Renders a form for setting module specific group permissions

Constructor & Destructor Documentation

◆ __construct()

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

Constructor

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

Reimplemented from XoopsForm.

Here is the call graph for this function:

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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addItem()

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

Adds an item to which permission will be assigned

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

◆ render()

render ( )

Renders the form

Returns
string @access public

Reimplemented from XoopsForm.

Here is the call graph for this function:

Field Documentation

◆ $_itemTree

$_itemTree = array()

◆ $_modid

$_modid

◆ $_permDesc

$_permDesc

◆ $_permName

$_permName

◆ $_showAnonymous

$_showAnonymous

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