XoopsGroupPermForm
XoopsGroupPermForm renders a form for setting module-specific group permissions

Definition

1
class XoopsGroupPermForm extends XoopsForm
2
{
3
/**
4
* Module ID
5
*
6
* @var int
7
*/
8
public $_modid;
9
/**
10
* Tree structure of items
11
*
12
* @var array
13
*/
14
public $_itemTree = array();
15
/**
16
* Name of permission
17
*
18
* @var string
19
*/
20
public $_permName;
21
/**
22
* Description of permission
23
*
24
* @var string
25
*/
26
public $_permDesc;
27
​
28
/**
29
* Whether to include anonymous users
30
*
31
* @var bool
32
*/
33
public $_showAnonymous;
34
​
35
/**
36
* Constructor
37
* @param $title
38
* @param $modid
39
* @param $permname
40
* @param $permdesc
41
* @param string $url
42
* @param bool $anonymous
43
*/
44
public function __construct($title, $modid, $permname, $permdesc, $url = '', $anonymous = true)
45
{
46
parent::__construct($title, 'groupperm_form', XOOPS_URL . '/modules/system/admin/groupperm.php', 'post');
47
$this->_modid = (int)$modid;
48
$this->_permName = $permname;
49
$this->_permDesc = $permdesc;
50
$this->addElement(new XoopsFormHidden('modid', $this->_modid));
51
$this->addElement(new XoopsFormHiddenToken($permname));
52
if ($url != '') {
53
$this->addElement(new XoopsFormHidden('redirect_url', $url));
54
}
55
$this->_showAnonymous = $anonymous;
56
}
Copied!
Last modified 9mo ago
Copy link
Contents
Definition