1: <?php
2:
3: if (!defined('XOOPS_ROOT_PATH')) exit();
4:
5: class LegacyRenderBannerfinishObject extends XoopsSimpleObject
6: {
7: var $mClient = null;
8: var $_mClientLoadedFlag = false;
9:
10: function LegacyRenderBannerfinishObject()
11: {
12: $this->initVar('bid', XOBJ_DTYPE_INT, '', false);
13: $this->initVar('cid', XOBJ_DTYPE_INT, '0', true);
14: $this->initVar('impressions', XOBJ_DTYPE_INT, '0', true);
15: $this->initVar('clicks', XOBJ_DTYPE_INT, '0', true);
16: $this->initVar('datestart', XOBJ_DTYPE_INT, '0', true);
17: $this->initVar('dateend', XOBJ_DTYPE_INT, '0', true);
18: }
19:
20: function loadBannerclient()
21: {
22: if ($this->_mClientLoadedFlag == false) {
23: $handler =& xoops_getmodulehandler('bannerclient', 'legacyRender');
24: $this->mClient =& $handler->get($this->get('cid'));
25: $this->_mClientLoadedFlag = true;
26: }
27: }
28: }
29:
30: class LegacyRenderBannerfinishHandler extends XoopsObjectGenericHandler
31: {
32: var $mTable = "bannerfinish";
33: var $mPrimary = "bid";
34: var $mClass = "LegacyRenderBannerfinishObject";
35: }
36:
37: ?>
38: