__construct() public method

public __construct ( )
示例#1
0
 public function __construct($aObject, $oTemplate)
 {
     parent::__construct($aObject);
     if ($oTemplate) {
         $this->_oTemplate = $oTemplate;
     } else {
         $this->_oTemplate = BxDolTemplate::getInstance();
     }
 }
示例#2
0
 function __construct()
 {
     parent::__construct();
     $this->bGroupInMore = true;
     $this->iElementsCntInLine = (int) getParam('nav_menu_elements_on_line_' . (isLogged() ? 'usr' : 'gst'));
     $this->sSiteUrl = BX_DOL_URL_ROOT;
     $this->iJumpedMenuID = 0;
     $this->sCustomSubIconUrl = '';
     $this->sCustomSubHeader = '';
     $this->sCustomSubHeaderUrl = '';
     $this->sCustomActions = '';
     $this->sBreadCrumb = '';
     $this->bDebugMode = false;
     $this->sWidth = $GLOBALS['oSysTemplate']->getPageWidth();
 }