XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
SelectGroup.php
Go to the documentation of this file.
1
<?php
2
/*
3
You may not change or alter any portion of this comment or credits
4
of supporting developers from this source code or any supporting source code
5
which is considered copyrighted (c) material of the original comment or credit authors.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
12
namespace
Xoops\Form
;
13
14
use
Xoops\Core\Kernel\Criteria
;
15
use
Xoops\Core\FixedGroups
;
16
28
class
SelectGroup
extends
Select
29
{
40
public
function
__construct
(
$caption
,
$name
, $include_anon =
false
,
$value
= null, $size = 1, $multiple =
false
)
41
{
42
parent::__construct(
$caption
,
$name
,
$value
, $size, $multiple);
43
$member_handler
=
\Xoops::getInstance
()->getHandlerMember();
44
if
(!$include_anon) {
45
$this->
addOptionArray
(
$member_handler
->getGroupList(
new
Criteria
(
'groupid'
, FixedGroups::ANONYMOUS,
'!='
)));
46
}
else
{
47
$this->
addOptionArray
(
$member_handler
->getGroupList());
48
}
49
}
50
}
$member_handler
if($uname== ''||$pass== '') $member_handler
Definition:
checklogin.php:44
Xoops\Form\SelectGroup\__construct
__construct($caption, $name, $include_anon=false, $value=null, $size=1, $multiple=false)
Definition:
SelectGroup.php:40
Xoops\getInstance
static getInstance()
Definition:
Xoops.php:160
Xoops\Form
Definition:
BlockForm.php:12
Xoops\Core\Kernel\Criteria
Definition:
Criteria.php:30
Xoops\Form\Select\$value
$value
Definition:
Select.php:54
Xoops\Form\Select\addOptionArray
addOptionArray($options)
Definition:
Select.php:129
Xoops\Form\SelectGroup
Definition:
SelectGroup.php:28
Xoops\Form\Element\$caption
$caption
Definition:
Element.php:55
Criteria
FixedGroups
$name
$name
Definition:
force_download.php:15
Xoops\Form\Select
Definition:
Select.php:26
usr64
htdocs
xoops_lib
Xoops
Form
SelectGroup.php
Generated on Fri May 22 2015 03:07:05 for XOOPS by
1.8.9.1