XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
group.php
Go to the documentation of this file.
1
<?php
20
use
Xoops\Core\Database\Connection
;
21
use
Xoops\Core\Kernel\XoopsObject
;
22
use
Xoops\Core\Kernel\XoopsPersistableObjectHandler
;
23
31
class
XoopsGroup
extends
XoopsObject
32
{
36
public
function
__construct
()
37
{
38
$this->
initVar
(
'groupid'
,
XOBJ_DTYPE_INT
, null,
false
);
39
$this->
initVar
(
'name'
,
XOBJ_DTYPE_TXTBOX
, null,
true
, 100);
40
$this->
initVar
(
'description'
,
XOBJ_DTYPE_TXTAREA
, null,
false
);
41
$this->
initVar
(
'group_type'
,
XOBJ_DTYPE_OTHER
, null,
false
);
42
}
43
48
public
function
id
($format =
'n'
)
49
{
50
return
$this->
getVar
(
'groupid'
, $format);
51
}
52
57
public
function
groupid
($format =
''
)
58
{
59
return
$this->
getVar
(
'groupid'
, $format);
60
}
61
66
public
function
name
($format =
''
)
67
{
68
return
$this->
getVar
(
'name'
, $format);
69
}
70
75
public
function
description
($format =
''
)
76
{
77
return
$this->
getVar
(
'description'
, $format);
78
}
79
84
public
function
group_type
($format =
''
)
85
{
86
return
$this->
getVar
(
'group_type'
, $format);
87
}
88
89
}
90
100
class
XoopsGroupHandler
extends
XoopsPersistableObjectHandler
101
{
107
public
function
__construct
(
Connection
$db = null)
108
{
109
parent::__construct($db,
'groups'
,
'XoopsGroup'
,
'groupid'
,
'name'
);
110
}
111
}
XoopsGroup\__construct
__construct()
Definition:
group.php:36
Xoops\Core\Kernel\XoopsPersistableObjectHandler
Definition:
XoopsPersistableObjectHandler.php:30
XoopsObject
Xoops\Core\Kernel\XOBJ_DTYPE_INT
const XOBJ_DTYPE_INT
Definition:
XoopsObject.php:22
Xoops\Core\Kernel\XoopsObject\getVar
getVar($key, $format= 's')
Definition:
XoopsObject.php:342
Connection
XoopsGroup\name
name($format= '')
Definition:
group.php:66
Xoops\Core\Kernel\XOBJ_DTYPE_TXTBOX
const XOBJ_DTYPE_TXTBOX
Definition:
XoopsObject.php:20
XoopsGroupHandler
Definition:
group.php:100
Connection
XoopsGroup\description
description($format= '')
Definition:
group.php:75
Xoops\Core\Kernel\XOBJ_DTYPE_TXTAREA
const XOBJ_DTYPE_TXTAREA
Definition:
XoopsObject.php:21
XoopsPersistableObjectHandler
XoopsGroupHandler\__construct
__construct(Connection $db=null)
Definition:
group.php:107
XoopsGroup\groupid
groupid($format= '')
Definition:
group.php:57
Xoops\Core\Kernel\XoopsObject
Definition:
XoopsObject.php:47
XoopsGroup\id
id($format= 'n')
Definition:
group.php:48
XoopsGroup
Definition:
group.php:31
Xoops\Core\Kernel\XoopsObject\initVar
initVar($key, $data_type, $value=null, $required=false, $maxlength=null, $options= '')
Definition:
XoopsObject.php:172
Xoops\Core\Kernel\XOBJ_DTYPE_OTHER
const XOBJ_DTYPE_OTHER
Definition:
XoopsObject.php:26
XoopsGroup\group_type
group_type($format= '')
Definition:
group.php:84
usr64
htdocs
kernel
group.php
Generated on Fri May 22 2015 03:07:02 for XOOPS by
1.8.9.1