XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
formselectgroup.php
Go to the documentation of this file.
1 <?php
21 defined('XOOPS_ROOT_PATH') or die('Restricted access');
22 
27 
32 {
43  function XoopsFormSelectGroup($caption, $name, $include_anon = false, $value = null, $size = 1, $multiple = false)
44  {
45  $this->XoopsFormSelect($caption, $name, $value, $size, $multiple);
46  $member_handler = &xoops_gethandler('member');
47  if (! $include_anon) {
48  $this->addOptionArray($member_handler->getGroupList(new Criteria('groupid', XOOPS_GROUP_ANONYMOUS, '!=')));
49  } else {
50  $this->addOptionArray($member_handler->getGroupList());
51  }
52  }
53 }
54 
55 ?>