XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
formselectcheckgroup.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  You may not change or alter any portion of this comment or credits
5  of supporting developers from this source code or any supporting source code
6  which is considered copyrighted (c) material of the original comment or credit authors.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 */
12 
24 defined('XOOPS_ROOT_PATH') or die('Restricted access');
25 
36 class XoopsFormSelectCheckGroup extends XoopsFormCheckBox
37 {
48  function XoopsFormSelectCheckGroup($caption, $name, $value = null, $size = 1, $multiple = false)
49  {
50  $member_handler = &xoops_gethandler('member');
51  $this->userGroups = $member_handler->getGroupList();
52  $this->XoopsFormCheckBox($caption, $name, $value, '', true);
53  $this->columns = 3;
54  foreach($this->userGroups as $group_id => $group_name) {
55  $this->addOption($group_id, $group_name);
56  }
57  }
58 }
59 
60 ?>