| @@ 30-105 (lines=76) @@ | ||
| 27 | * @author Kazumi Ono <[email protected]> |
|
| 28 | * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org) |
|
| 29 | */ |
|
| 30 | class XoopsGroupPerm extends XoopsObject |
|
| 31 | { |
|
| 32 | /** |
|
| 33 | * Constructor |
|
| 34 | * |
|
| 35 | */ |
|
| 36 | public function __construct() |
|
| 37 | { |
|
| 38 | parent::__construct(); |
|
| 39 | $this->initVar('gperm_id', XOBJ_DTYPE_INT, null, false); |
|
| 40 | $this->initVar('gperm_groupid', XOBJ_DTYPE_INT, null, false); |
|
| 41 | $this->initVar('gperm_itemid', XOBJ_DTYPE_INT, null, false); |
|
| 42 | $this->initVar('gperm_modid', XOBJ_DTYPE_INT, 0, false); |
|
| 43 | $this->initVar('gperm_name', XOBJ_DTYPE_OTHER, null, false); |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * Returns Class Base Variable gperm_id |
|
| 48 | * @param string $format |
|
| 49 | * @return mixed |
|
| 50 | */ |
|
| 51 | public function id($format = 'N') |
|
| 52 | { |
|
| 53 | return $this->getVar('gperm_id', $format); |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * Returns Class Base Variable gperm_id |
|
| 58 | * @param string $format |
|
| 59 | * @return mixed |
|
| 60 | */ |
|
| 61 | public function gperm_id($format = '') |
|
| 62 | { |
|
| 63 | return $this->getVar('gperm_id', $format); |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * Returns Class Base Variable gperm_groupid |
|
| 68 | * @param string $format |
|
| 69 | * @return mixed |
|
| 70 | */ |
|
| 71 | public function gperm_groupid($format = '') |
|
| 72 | { |
|
| 73 | return $this->getVar('gperm_groupid', $format); |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * Returns Class Base Variable gperm_itemid |
|
| 78 | * @param string $format |
|
| 79 | * @return mixed |
|
| 80 | */ |
|
| 81 | public function gperm_itemid($format = '') |
|
| 82 | { |
|
| 83 | return $this->getVar('gperm_itemid', $format); |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * Returns Class Base Variable gperm_modid |
|
| 88 | * @param string $format |
|
| 89 | * @return mixed |
|
| 90 | */ |
|
| 91 | public function gperm_modid($format = '') |
|
| 92 | { |
|
| 93 | return $this->getVar('gperm_modid', $format); |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * Returns Class Base Variable gperm_name |
|
| 98 | * @param string $format |
|
| 99 | * @return mixed |
|
| 100 | */ |
|
| 101 | public function gperm_name($format = '') |
|
| 102 | { |
|
| 103 | return $this->getVar('gperm_name', $format); |
|
| 104 | } |
|
| 105 | } |
|
| 106 | ||
| 107 | /** |
|
| 108 | * XOOPS group permission handler class. |
|
| @@ 29-103 (lines=75) @@ | ||
| 26 | * |
|
| 27 | * @package kernel |
|
| 28 | **/ |
|
| 29 | class XoopsTplset extends XoopsObject |
|
| 30 | { |
|
| 31 | /** |
|
| 32 | * constructor |
|
| 33 | **/ |
|
| 34 | public function __construct() |
|
| 35 | { |
|
| 36 | parent::__construct(); |
|
| 37 | $this->initVar('tplset_id', XOBJ_DTYPE_INT, null, false); |
|
| 38 | $this->initVar('tplset_name', XOBJ_DTYPE_OTHER, null, false); |
|
| 39 | $this->initVar('tplset_desc', XOBJ_DTYPE_TXTBOX, null, false, 255); |
|
| 40 | $this->initVar('tplset_credits', XOBJ_DTYPE_TXTAREA, null, false); |
|
| 41 | $this->initVar('tplset_created', XOBJ_DTYPE_INT, 0, false); |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * Returns Class Base Variable tplset_id |
|
| 46 | * @param string $format |
|
| 47 | * @return mixed |
|
| 48 | */ |
|
| 49 | public function id($format = 'N') |
|
| 50 | { |
|
| 51 | return $this->getVar('tplset_id', $format); |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * Returns Class Base Variable tplset_id |
|
| 56 | * @param string $format |
|
| 57 | * @return mixed |
|
| 58 | */ |
|
| 59 | public function tplset_id($format = '') |
|
| 60 | { |
|
| 61 | return $this->getVar('tplset_id', $format); |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * Returns Class Base Variable tplset_name |
|
| 66 | * @param string $format |
|
| 67 | * @return mixed |
|
| 68 | */ |
|
| 69 | public function tplset_name($format = '') |
|
| 70 | { |
|
| 71 | return $this->getVar('tplset_name', $format); |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * Returns Class Base Variable tplset_desc |
|
| 76 | * @param string $format |
|
| 77 | * @return mixed |
|
| 78 | */ |
|
| 79 | public function tplset_desc($format = '') |
|
| 80 | { |
|
| 81 | return $this->getVar('tplset_desc', $format); |
|
| 82 | } |
|
| 83 | ||
| 84 | /** |
|
| 85 | * Returns Class Base Variable tplset_credits |
|
| 86 | * @param string $format |
|
| 87 | * @return mixed |
|
| 88 | */ |
|
| 89 | public function tplset_credits($format = '') |
|
| 90 | { |
|
| 91 | return $this->getVar('tplset_credits', $format); |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * Returns Class Base Variable tplset_created |
|
| 96 | * @param string $format |
|
| 97 | * @return mixed |
|
| 98 | */ |
|
| 99 | public function tplset_created($format = '') |
|
| 100 | { |
|
| 101 | return $this->getVar('tplset_created', $format); |
|
| 102 | } |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * XOOPS tplset handler class. |
|