1: <?php
2: /**
3: * XOOPS Kernel Class
4: *
5: * You may not change or alter any portion of this comment or credits
6: * of supporting developers from this source code or any supporting source code
7: * which is considered copyrighted (c) material of the original comment or credit authors.
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: * @copyright XOOPS Project (http://xoops.org)
13: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
14: * @package kernel
15: * @since 2.0.0
16: * @author Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/
17: * @version $Id$
18: */
19:
20: namespace Xoops\Core\Kernel\Handlers;
21:
22: use Xoops\Core\Kernel\Dtype;
23: use Xoops\Core\Kernel\XoopsObject;
24:
25: /**
26: * A group permission
27: *
28: * These permissions are managed through a XoopsGroupPermHandler object
29: *
30: * @category Xoops\Core\Kernel\Handlers\XoopsGroupPerm
31: * @package Xoops\Core\Kernel
32: * @author Kazumi Ono <onokazu@xoops.org>
33: * @copyright 2000-2015 XOOPS Project (http://xoops.org)
34: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
35: * @link http://xoops.org
36: */
37: class XoopsGroupPerm extends XoopsObject
38: {
39: /**
40: * Constructor
41: */
42: public function __construct()
43: {
44: $this->initVar('gperm_id', Dtype::TYPE_INTEGER, null, false);
45: $this->initVar('gperm_groupid', Dtype::TYPE_INTEGER, null, false);
46: $this->initVar('gperm_itemid', Dtype::TYPE_INTEGER, null, false);
47: $this->initVar('gperm_modid', Dtype::TYPE_INTEGER, 0, false);
48: $this->initVar('gperm_name', Dtype::TYPE_OTHER, null, false);
49: }
50:
51: /**
52: * getter
53: *
54: * @param string $format Dtype::FORMAT_xxxx constant
55: *
56: * @return mixed
57: */
58: public function id($format = Dtype::FORMAT_NONE)
59: {
60: return $this->getVar('gperm_id', $format);
61: }
62:
63: /**
64: * getter
65: *
66: * @param string $format Dtype::FORMAT_xxxx constant
67: *
68: * @return mixed
69: */
70: public function gperm_id($format = '')
71: {
72: return $this->getVar('gperm_id', $format);
73: }
74:
75: /**
76: * getter
77: *
78: * @param string $format Dtype::FORMAT_xxxx constant
79: *
80: * @return mixed
81: */
82: public function gperm_groupid($format = '')
83: {
84: return $this->getVar('gperm_groupid', $format);
85: }
86:
87: /**
88: * getter
89: *
90: * @param string $format Dtype::FORMAT_xxxx constant
91: *
92: * @return mixed
93: */
94: public function gperm_itemid($format = '')
95: {
96: return $this->getVar('gperm_itemid', $format);
97: }
98:
99: /**
100: * getter
101: *
102: * @param string $format Dtype::FORMAT_xxxx constant
103: *
104: * @return mixed
105: */
106: public function gperm_modid($format = '')
107: {
108: return $this->getVar('gperm_modid', $format);
109: }
110:
111: /**
112: * getter
113: *
114: * @param string $format Dtype::FORMAT_xxxx constant
115: *
116: * @return mixed
117: */
118: public function gperm_name($format = '')
119: {
120: return $this->getVar('gperm_name', $format);
121: }
122: }
123: