예제 #1
0
 function BxBaseCmtsView($sSystem, $iId, $iInit = 1)
 {
     BxDolCmts::BxDolCmts($sSystem, $iId, $iInit);
     if (empty($sSystem) || !$this->_aSystem) {
         return;
     }
     $this->_sJsObjName = 'oCmts' . ucfirst($sSystem) . $iId;
     $this->_oPaginate = new BxDolPaginate(array('page_url' => 'javascript:void(0);', 'start' => 0, 'count' => $this->_oQuery->getObjectCommentsCount($this->getId(), 0), 'per_page' => $this->getPerView(), 'sorting' => $this->_sOrder, 'per_page_step' => 2, 'per_page_interval' => 3, 'on_change_page' => $this->_sJsObjName . '.changePage({start}, {per_page})', 'on_change_per_page' => $this->_sJsObjName . '.changePerPage(this)', 'on_change_sorting' => $this->_sJsObjName . '.changeOrder(this)', 'info' => false));
     $this->_sStylePrefix = isset($this->_aSystem['root_style_prefix']) ? $this->_aSystem['root_style_prefix'] : 'cmt';
     $GLOBALS['oSysTemplate']->addJsTranslation('_sys_txt_cmt_loading');
 }
 function BxBaseCmtsView($sSystem, $iId, $iInit = 1)
 {
     BxDolCmts::BxDolCmts($sSystem, $iId, $iInit);
     $this->_sJsObjName = 'oCmts' . ucfirst($sSystem);
 }