XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
banner.php
1<?php
2
3if (!defined('XOOPS_ROOT_PATH')) {
4 exit();
5}
6
8{
9 public $mClient = null;
10 public $_mClientLoadedFlag = false;
11
12 public function __construct()
13 {
14 static $initVars;
15 if (isset($initVars)) {
16 $this->mVars = $initVars;
17 return;
18 }
19 $this->initVar('bid', XOBJ_DTYPE_INT, '', false);
20 $this->initVar('cid', XOBJ_DTYPE_INT, '0', true);
21 $this->initVar('imptotal', XOBJ_DTYPE_INT, '0', true);
22 $this->initVar('impmade', XOBJ_DTYPE_INT, '0', true);
23 $this->initVar('clicks', XOBJ_DTYPE_INT, '0', true);
24 $this->initVar('imageurl', XOBJ_DTYPE_STRING, '', true, 191);
25 $this->initVar('clickurl', XOBJ_DTYPE_STRING, '', true, 191);
26 $this->initVar('date', XOBJ_DTYPE_INT, time(), true);
27 $this->initVar('htmlbanner', XOBJ_DTYPE_BOOL, '0', true);
28 $this->initVar('htmlcode', XOBJ_DTYPE_TEXT, '', true);
29 $initVars=$this->mVars;
30 }
31
32 public function loadBannerclient()
33 {
34 if (false == $this->_mClientLoadedFlag) {
35 $handler =& xoops_getmodulehandler('bannerclient', 'legacyRender');
36 $this->mClient =& $handler->get($this->get('cid'));
37 $this->_mClientLoadedFlag = true;
38 }
39 }
40}
41
43{
44 public $mTable = 'banner';
45 public $mPrimary = 'bid';
46 public $mClass = 'LegacyRenderBannerObject';
47}