예제 #1
0
 function getInfo()
 {
     global $default;
     if ($default->disableBulkImport) {
         return null;
     }
     if (!Permission::userIsSystemAdministrator($this->oUser->getId())) {
         return null;
     }
     return parent::getInfo();
 }
예제 #2
0
 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;
 }
예제 #3
0
 function getInfo()
 {
     return parent::getInfo();
 }
예제 #4
0
 function getInfo()
 {
     $aInfo = parent::getInfo();
     if (!Subscription::exists($this->oUser->getID(), $this->oFolder->getID(), SubscriptionEvent::subTypes('Folder'))) {
         $aInfo['active'] = 'no';
     }
     return $aInfo;
 }
예제 #5
0
 function FolderIndexAction($oDocument = null, $oUser = null, $oPlugin = null)
 {
     parent::KTFolderAction($oDocument, $oUser, $oPlugin);
     $this->sDisplayName = _kt('Schedule Indexing');
 }
예제 #6
0
 function JavascriptFolderAction($oFolder = null, $oUser = null, $oPlugin = null)
 {
     parent::KTFolderAction($oFolder, $oUser, $oPlugin);
     $this->js_initialise();
 }