function getInfo() { global $default; if ($default->disableBulkImport) { return null; } if (!Permission::userIsSystemAdministrator($this->oUser->getId())) { return null; } return parent::getInfo(); }
function check() { $res = parent::check(); if (empty($res)) { return $res; } $postExpected = KTUtil::arrayGet($_REQUEST, "postExpected"); $postReceived = KTUtil::arrayGet($_REQUEST, "postReceived"); if (!empty($postExpected)) { $aErrorOptions = array('redirect_to' => array('main', sprintf('fFolderId=%d', $this->oFolder->getId())), 'message' => _kt('Upload larger than maximum POST size (post_max_size variable in .htaccess or php.ini)')); $this->oValidator->notEmpty($postReceived, $aErrorOptions); } return true; }
function getInfo() { return parent::getInfo(); }
function getInfo() { $aInfo = parent::getInfo(); if (!Subscription::exists($this->oUser->getID(), $this->oFolder->getID(), SubscriptionEvent::subTypes('Folder'))) { $aInfo['active'] = 'no'; } return $aInfo; }
function FolderIndexAction($oDocument = null, $oUser = null, $oPlugin = null) { parent::KTFolderAction($oDocument, $oUser, $oPlugin); $this->sDisplayName = _kt('Schedule Indexing'); }
function JavascriptFolderAction($oFolder = null, $oUser = null, $oPlugin = null) { parent::KTFolderAction($oFolder, $oUser, $oPlugin); $this->js_initialise(); }