_oModule = BxDolModule::getInstance($this->MODULE); $this->_iContentId = 0; $this->_aContentInfo = array(); if(bx_get('content_id') !== false) $this->setContentId(bx_get('content_id')); $this->addMarkers(array( 'js_object' => $this->_oModule->_oConfig->getJsObject('manage_tools') )); } public function setContentId($iContentId) { $this->_iContentId = (int)$iContentId; if(!empty($this->_iContentId)) { $this->_aContentInfo = $this->_getContentInfo($this->_iContentId); $this->addMarkers(array( 'content_id' => $this->_iContentId )); } } protected function _getContentInfo($iContentId) { return !empty($this->_oModule) && method_exists($this->_oModule->_oDb, 'getContentInfoById') ? $this->_oModule->_oDb->getContentInfoById($iContentId) : array(); } } /** @} */