| @@ 27-90 (lines=64) @@ | ||
| 24 | * @author Kazumi Ono <[email protected]> |
|
| 25 | * @package kernel |
|
| 26 | */ |
|
| 27 | class XoopsGroup extends XoopsObject |
|
| 28 | { |
|
| 29 | /** |
|
| 30 | * constructor |
|
| 31 | */ |
|
| 32 | public function __construct() |
|
| 33 | { |
|
| 34 | parent::__construct(); |
|
| 35 | $this->initVar('groupid', XOBJ_DTYPE_INT, null, false); |
|
| 36 | $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, true, 100); |
|
| 37 | $this->initVar('description', XOBJ_DTYPE_TXTAREA, null, false); |
|
| 38 | $this->initVar('group_type', XOBJ_DTYPE_OTHER, null, false); |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * Returns Class Base Variable groupid |
|
| 43 | * @param string $format |
|
| 44 | * @return mixed |
|
| 45 | */ |
|
| 46 | public function id($format = 'N') |
|
| 47 | { |
|
| 48 | return $this->getVar('groupid', $format); |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * Returns Class Base Variable groupid |
|
| 53 | * @param string $format |
|
| 54 | * @return mixed |
|
| 55 | */ |
|
| 56 | public function groupid($format = '') |
|
| 57 | { |
|
| 58 | return $this->getVar('groupid', $format); |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * Returns Class Base Variable name |
|
| 63 | * @param string $format |
|
| 64 | * @return mixed |
|
| 65 | */ |
|
| 66 | public function name($format = '') |
|
| 67 | { |
|
| 68 | return $this->getVar('name', $format); |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| 72 | * Returns Class Base Variable description |
|
| 73 | * @param string $format |
|
| 74 | * @return mixed |
|
| 75 | */ |
|
| 76 | public function description($format = '') |
|
| 77 | { |
|
| 78 | return $this->getVar('description', $format); |
|
| 79 | } |
|
| 80 | ||
| 81 | /** |
|
| 82 | * Returns Class Base Variable group_type |
|
| 83 | * @param string $format |
|
| 84 | * @return mixed |
|
| 85 | */ |
|
| 86 | public function group_type($format = '') |
|
| 87 | { |
|
| 88 | return $this->getVar('group_type', $format); |
|
| 89 | } |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * XOOPS group handler class. |
|
| @@ 27-90 (lines=64) @@ | ||
| 24 | * @author Kazumi Ono <[email protected]> |
|
| 25 | * @copyright (c) 2000-2016 XOOPS Project - www.xoops.org |
|
| 26 | */ |
|
| 27 | class XoopsImagesetimg extends XoopsObject |
|
| 28 | { |
|
| 29 | /** |
|
| 30 | * Constructor |
|
| 31 | */ |
|
| 32 | public function __construct() |
|
| 33 | { |
|
| 34 | parent::__construct(); |
|
| 35 | $this->initVar('imgsetimg_id', XOBJ_DTYPE_INT, null, false); |
|
| 36 | $this->initVar('imgsetimg_file', XOBJ_DTYPE_OTHER, null, false); |
|
| 37 | $this->initVar('imgsetimg_body', XOBJ_DTYPE_SOURCE, null, false); |
|
| 38 | $this->initVar('imgsetimg_imgset', XOBJ_DTYPE_INT, null, false); |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * Returns Class Base Variable imgsetimg_id with default format N |
|
| 43 | * @param string $format |
|
| 44 | * @return mixed |
|
| 45 | */ |
|
| 46 | public function id($format = 'N') |
|
| 47 | { |
|
| 48 | return $this->getVar('imgsetimg_id', $format); |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * Returns Class Base Variable imgsetimg_id |
|
| 53 | * @param string $format |
|
| 54 | * @return mixed |
|
| 55 | */ |
|
| 56 | public function imgsetimg_id($format = '') |
|
| 57 | { |
|
| 58 | return $this->getVar('imgsetimg_id', $format); |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * Returns Class Base Variable imgsetimg_file |
|
| 63 | * @param string $format |
|
| 64 | * @return mixed |
|
| 65 | */ |
|
| 66 | public function imgsetimg_file($format = '') |
|
| 67 | { |
|
| 68 | return $this->getVar('imgsetimg_file', $format); |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| 72 | * Returns Class Base Variable imgsetimg_body |
|
| 73 | * @param string $format |
|
| 74 | * @return mixed |
|
| 75 | */ |
|
| 76 | public function imgsetimg_body($format = '') |
|
| 77 | { |
|
| 78 | return $this->getVar('imgsetimg_body', $format); |
|
| 79 | } |
|
| 80 | ||
| 81 | /** |
|
| 82 | * Returns Class Base Variable imgsetimg_imgset |
|
| 83 | * @param string $format |
|
| 84 | * @return mixed |
|
| 85 | */ |
|
| 86 | public function imgsetimg_imgset($format = '') |
|
| 87 | { |
|
| 88 | return $this->getVar('imgsetimg_imgset', $format); |
|
| 89 | } |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * XOOPS imageset image handler class. |
|