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 Template Set File
27: *
28: * @category Xoops\Core\Kernel\Handlers\XoopsTplSet
29: * @package Xoops\Core\Kernel
30: * @author Kazumi Ono <onokazu@xoops.org>
31: * @copyright 2000-2015 XOOPS Project (http://xoops.org)
32: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
33: * @link http://xoops.org
34: */
35: class XoopsTplSet extends XoopsObject
36: {
37: /**
38: * constructor
39: **/
40: public function __construct()
41: {
42: $this->initVar('tplset_id', Dtype::TYPE_INTEGER, null, false);
43: $this->initVar('tplset_name', Dtype::TYPE_OTHER, null, false);
44: $this->initVar('tplset_desc', Dtype::TYPE_TEXT_BOX, null, false, 255);
45: $this->initVar('tplset_credits', Dtype::TYPE_TEXT_AREA, null, false);
46: $this->initVar('tplset_created', Dtype::TYPE_INTEGER, 0, false);
47: }
48:
49: /**
50: * getter
51: *
52: * @param string $format Dtype::FORMAT_xxxx constant
53: *
54: * @return mixed
55: */
56: public function id($format = 'n')
57: {
58: return $this->getVar('tplset_id', $format);
59: }
60:
61: /**
62: * getter
63: *
64: * @param string $format Dtype::FORMAT_xxxx constant
65: *
66: * @return mixed
67: */
68: public function tplset_id($format = '')
69: {
70: return $this->getVar('tplset_id', $format);
71: }
72:
73: /**
74: * getter
75: *
76: * @param string $format Dtype::FORMAT_xxxx constant
77: *
78: * @return mixed
79: */
80: public function tplset_name($format = '')
81: {
82: return $this->getVar('tplset_name', $format);
83: }
84:
85: /**
86: * getter
87: *
88: * @param string $format Dtype::FORMAT_xxxx constant
89: *
90: * @return mixed
91: */
92: public function tplset_desc($format = '')
93: {
94: return $this->getVar('tplset_desc', $format);
95: }
96:
97: /**
98: * getter
99: *
100: * @param string $format Dtype::FORMAT_xxxx constant
101: *
102: * @return mixed
103: */
104: public function tplset_credits($format = '')
105: {
106: return $this->getVar('tplset_credits', $format);
107: }
108:
109: /**
110: * getter
111: *
112: * @param string $format Dtype::FORMAT_xxxx constant
113: *
114: * @return mixed
115: */
116: public function tplset_created($format = '')
117: {
118: return $this->getVar('tplset_created', $format);
119: }
120: }
121: