1: <?php
2: /*
3: You may not change or alter any portion of this comment or credits
4: of supporting developers from this source code or any supporting source code
5: which is considered copyrighted (c) material of the original comment or credit authors.
6:
7: This program is distributed in the hope that it will be useful,
8: but WITHOUT ANY WARRANTY; without even the implied warranty of
9: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: */
11:
12: use Xoops\Core\Database\Connection;
13: use Xoops\Core\Kernel\XoopsObject;
14: use Xoops\Core\Kernel\XoopsPersistableObjectHandler;
15:
16: /**
17: * @copyright XOOPS Project (http://xoops.org)
18: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
19: * @package Menus
20: * @since 1.0
21: * @author trabis <lusopoemas@gmail.com>
22: * @version $Id$
23: */
24:
25: class MenusMenus extends XoopsObject
26: {
27: /**
28: * constructor
29: */
30: public function __construct()
31: {
32: $this->initVar("id", XOBJ_DTYPE_INT);
33: $this->initVar('title', XOBJ_DTYPE_TXTBOX);
34: }
35: }
36:
37: class MenusMenusHandler extends XoopsPersistableObjectHandler
38: {
39: /**
40: * @param Connection $db database
41: */
42: public function __construct(Connection $db = null)
43: {
44: parent::__construct($db, 'menus_menus', 'MenusMenus', 'id', 'title');
45: }
46: }
47: