function getInfo() { if ($this->oDocument->getIsCheckedOut()) { return null; } return parent::getInfo(); }
function check() { $res = parent::check(); if ($res !== true) { return $res; } if ($this->oDocument->getIsCheckedOut()) { $_SESSION['KTErrorMessage'][] = _kt('This document can\'t be made immutable because it is checked out'); controllerRedirect('viewDocument', 'fDocumentId=' . $this->oDocument->getId()); exit(0); } return true; }
function check() { $res = parent::check(); if ($res !== true) { return $res; } if ($this->oDocument->getIsCheckedOut()) { $_SESSION["KTErrorMessage"][] = _kt("This document can't be renamed because it is checked out"); controllerRedirect('viewDocument', 'fDocumentId=' . $this->oDocument->getId()); exit(0); } return true; }
function check() { $res = parent::check(); if ($res !== true) { return $res; } return true; }
function getInfo() { $aInfo = parent::getInfo(); if (!Subscription::exists($this->oUser->getID(), $this->oDocument->getID(), SubscriptionEvent::subTypes('Document'))) { $aInfo['active'] = 'no'; } return $aInfo; }
function JavascriptDocumentAction($oDocument = null, $oUser = null, $oPlugin = null) { parent::KTDocumentAction($oDocument, $oUser, $oPlugin); $this->js_initialise(); }
function DocumentIndexAction($oDocument = null, $oUser = null, $oPlugin = null) { parent::KTDocumentAction($oDocument, $oUser, $oPlugin); $this->sDisplayName = _kt('Schedule Indexing'); }
function getInfo() { $oConfig =& KTConfig::getSingleton(); $sEmailServer = $oConfig->get('email/emailServer'); if ($sEmailServer == 'none') { return null; } if (empty($sEmailServer)) { return null; } return parent::getInfo(); }
function KTDocumentDiscussionAction($oDocument = null, $oUser = null, $oPlugin = null) { $this->aStateNames = array(DISCUSSION_OPEN => _kt('Under discussion'), DISCUSSION_CONCLUSION => _kt('Conclusion'), DISCUSSION_CLOSED => _kt('Closed')); parent::KTDocumentAction($oDocument, $oUser, $oPlugin); }