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 Images
20: * @author
21: * @version $Id$
22: */
23:
24: class ImagesImagebody extends XoopsObject
25: {
26: /**
27: * Constructor
28: */
29: public function __construct()
30: {
31: $this->initVar('image_id', XOBJ_DTYPE_INT, null, false, 8);
32: $this->initVar('image_body', XOBJ_DTYPE_SOURCE, null, true);
33: }
34: }
35:
36: class ImagesImagebodyHandler extends XoopsPersistableObjectHandler
37: {
38: /**
39: * Constructor
40: *
41: * @param Connection|null $db {@link Connection}
42: */
43: public function __construct(Connection $db = null)
44: {
45: parent::__construct($db, 'imagebody', 'ImagesImagebody', 'image_id', 'image_body');
46: }
47: }
48: