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.0 or later (https://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: | //PHP 8.2 Dynamic properties deprecated |
30: | public $bid; |
31: | public $cid; |
32: | public $impressions; |
33: | public $clicks; |
34: | public $datestart; |
35: | public $dateend; |
36: | |
37: | /** |
38: | * |
39: | */ |
40: | public function __construct() |
41: | { |
42: | parent::__construct(); |
43: | $this->initVar('bid', XOBJ_DTYPE_INT, null, false, 5); |
44: | $this->initVar('cid', XOBJ_DTYPE_INT, null, false, 5); |
45: | $this->initVar('impressions', XOBJ_DTYPE_INT, null, false, 8); |
46: | $this->initVar('clicks', XOBJ_DTYPE_INT, null, false, 8); |
47: | $this->initVar('datestart', XOBJ_DTYPE_INT, null, false, 10); |
48: | $this->initVar('dateend', XOBJ_DTYPE_INT, null, false, 10); |
49: | } |
50: | } |
51: | |
52: | /** |
53: | * System banner finish handler class. (Singelton) |
54: | * |
55: | * This class is responsible for providing data access mechanisms to the data source |
56: | * of XOOPS block class objects. |
57: | * |
58: | * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org) |
59: | * @package system |
60: | * @subpackage banner |
61: | */ |
62: | class SystemBannerfinishHandler extends XoopsPersistableObjectHandler |
63: | { |
64: | /** |
65: | * @param null|XoopsDatabase $db |
66: | */ |
67: | public function __construct(XoopsDatabase $db) |
68: | { |
69: | parent::__construct($db, 'bannerfinish', 'SystemBannerFinish', 'bid', 'cid'); |
70: | } |
71: | } |
72: |