Minahito
minah****@users*****
2006年 4月 24日 (月) 19:57:58 JST
Index: xoops2jp/html/modules/legacyRender/class/bannerclient.php diff -u xoops2jp/html/modules/legacyRender/class/bannerclient.php:1.1.2.1 xoops2jp/html/modules/legacyRender/class/bannerclient.php:1.1.2.2 --- xoops2jp/html/modules/legacyRender/class/bannerclient.php:1.1.2.1 Mon Apr 24 16:31:08 2006 +++ xoops2jp/html/modules/legacyRender/class/bannerclient.php Mon Apr 24 19:57:57 2006 @@ -6,8 +6,15 @@ { var $mBanners = array(); var $_mBannersLoadedFlag = false; + var $mFinishBanners = array(); var $_mFinishBannersLoadedFlag = false; + + var $mBannerCount = null; + var $_mBannerCountLoadedFlag = false; + + var $mFinishBannerCount = null; + var $_mFinishBannerCountLoadedFlag = false; function LegacyRenderBannerclientObject() { @@ -29,6 +36,15 @@ } } + function loadBannerCount() + { + if ($this->_mBannerCountLoadedFlag == false) { + $handler =& xoops_getmodulehandler('banner'); + $this->mBannerCount = $handler->getCount(new Criteria('cid', $this->get('cid'))); + $this->_mBannerCountLoadedFlag = true; + } + } + function &createBanner() { $handler =& xoops_getmodulehandler('banner'); @@ -39,10 +55,19 @@ function loadBannerfinish() { - if ($this->_mFinishBannersLoadedFlag == false) { + if ($this->_mBannerfinishCountFlag == false) { $handler =& xoops_getmodulehandler('bannerfinish'); $this->mFinishBanners =& $handler->getObjects(new Criteria('cid', $this->get('cid'))); - $this->_mFinishBannersLoadedFlag = true; + $this->_mBannerfinishCountLoadedFlag = true; + } + } + + function loadFinishBannerCount() + { + if ($this->_mFinishBannerCountLoadedFlag == false) { + $handler =& xoops_getmodulehandler('bannerfinish'); + $this->mFinishBannerCount = $handler->getCount(new Criteria('cid', $this->get('cid'))); + $this->_mFinishBannerCountLoadedFlag = true; } }