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: /**
13: * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
14: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
15: * @author Gregory Mage (AKA Mage)
16: * @package system
17: */
18:
19: // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
20:
21: /**
22: * System Banner Finish
23: *
24: * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
25: * @package system
26: */
27: class SystemBannerFinish extends XoopsObject
28: {
29: /**
30: *
31: */
32: public function __construct()
33: {
34: parent::__construct();
35: $this->initVar('bid', XOBJ_DTYPE_INT, null, false, 5);
36: $this->initVar('cid', XOBJ_DTYPE_INT, null, false, 5);
37: $this->initVar('impressions', XOBJ_DTYPE_INT, null, false, 8);
38: $this->initVar('clicks', XOBJ_DTYPE_INT, null, false, 8);
39: $this->initVar('datestart', XOBJ_DTYPE_INT, null, false, 10);
40: $this->initVar('dateend', XOBJ_DTYPE_INT, null, false, 10);
41: }
42: }
43:
44: /**
45: * System banner finish handler class. (Singelton)
46: *
47: * This class is responsible for providing data access mechanisms to the data source
48: * of XOOPS block class objects.
49: *
50: * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
51: * @package system
52: * @subpackage banner
53: */
54: class SystemBannerfinishHandler extends XoopsPersistableObjectHandler
55: {
56: /**
57: * @param null|XoopsDatabase $db
58: */
59: public function __construct(XoopsDatabase $db)
60: {
61: parent::__construct($db, 'bannerfinish', 'SystemBannerFinish', 'bid', 'cid');
62: }
63: }
64: