XoopsGroupFormCheckBox
XoopsGroupFormCheckBox renders checkbox options for a group permission form

Definition

1
class XoopsGroupFormCheckBox extends XoopsFormElement
2
{
3
/**
4
* Pre-selected value(s)
5
*
6
* @var array ;
7
*/
8
public $_value = array();
9
/**
10
* Group ID
11
*
12
* @var int
13
*/
14
public $_groupId;
15
/**
16
* Option tree
17
*
18
* @var array
19
*/
20
public $_optionTree = array();
21
​
22
/**
23
* Constructor
24
* @param $caption
25
* @param $name
26
* @param $groupId
27
* @param null $values
28
*/
29
public function __construct($caption, $name, $groupId, $values = null)
30
{
31
$this->setCaption($caption);
32
$this->setName($name);
33
if (isset($values)) {
34
$this->setValue($values);
35
}
36
$this->_groupId = $groupId;
37
}
Copied!
Last modified 10mo ago
Copy link
Contents
Definition