getMain(); $aEntry = $oMain->_oDb->getEntryById($this->getId()); if(empty($aEntry) || !is_array($aEntry)) return ''; return BX_DOL_URL_ROOT . $oMain->_oConfig->getBaseUri() . 'view/' . $aEntry['EntryUri']; } function isPostReplyAllowed () { if (!parent::isPostReplyAllowed()) return false; $oMain = $this->getMain(); $aEvent = $oMain->_oDb->getEntryByIdAndOwner($this->getId (), 0, true); return $oMain->isAllowedComments($aEvent); } function isEditAllowedAll () { $oMain = $this->getMain(); $aEvent = $oMain->_oDb->getEntryByIdAndOwner($this->getId (), 0, true); if ($oMain->isAllowedCreatorCommentsDeleteAndEdit ($aEvent)) return true; return parent::isEditAllowedAll (); } function isRemoveAllowedAll () { $oMain = $this->getMain(); $aEvent = $oMain->_oDb->getEntryByIdAndOwner($this->getId (), 0, true); if ($oMain->isAllowedCreatorCommentsDeleteAndEdit ($aEvent)) return true; return parent::isRemoveAllowedAll (); } }