Пример #1
0
 function check()
 {
     if (!parent::check()) {
         return false;
     }
     $this->persistParams(array('fDocumentId'));
     return true;
 }
Пример #2
0
 function KTDocumentAction($oDocument = null, $oUser = null, $oPlugin = null)
 {
     $this->oDocument =& $oDocument;
     $this->oUser =& $oUser;
     $this->oPlugin =& $oPlugin;
     $this->aBreadcrumbs = array(array('action' => 'browse', 'name' => _kt('Browse')));
     $this->persistParams('fDocumentId');
     parent::KTStandardDispatcher();
 }
Пример #3
0
 function check()
 {
     $oConfig =& KTConfig::getSingleton();
     if ($this->oUser->getId() == -2 || $oConfig->get('user_prefs/restrictPreferences', false) && !Permission::userIsSystemAdministrator($this->oUser->getId())) {
         return false;
     }
     $this->aBreadcrumbs = array(array('action' => 'preferences', 'name' => _kt('Preferences')));
     return parent::check();
 }
Пример #4
0
 function KTFolderAction($oFolder = null, $oUser = null, $oPlugin = null)
 {
     parent::KTStandardDispatcher();
     $this->oFolder =& $oFolder;
     $this->oUser =& $oUser;
     $this->oPlugin =& $oPlugin;
     $this->aBreadcrumbs = array(array('action' => 'browse', 'name' => _kt('Browse')));
     $this->persistParams(array('fFolderId'));
 }
Пример #5
0
 function KTBulkAction($oUser = null, $oPlugin = null)
 {
     $this->oEntityList = null;
     $this->oActiveEntityList = null;
     $this->oUser =& $oUser;
     $this->oPlugin =& $oPlugin;
     $this->aBreadcrumbs = array(array('action' => 'browse', 'name' => _kt('Browse')));
     $this->persistParams('fEntityListCode');
     parent::KTStandardDispatcher();
 }
Пример #6
0
 function DashboardDispatcher()
 {
     $this->aBreadcrumbs = array(array('action' => 'dashboard', 'name' => _kt('Dashboard')));
     return parent::KTStandardDispatcher();
 }
Пример #7
0
 function BooleanSearchDispatcher()
 {
     $this->aBreadcrumbs = array(array('action' => 'browse', 'name' => _kt('Browse')));
     return parent::KTStandardDispatcher();
 }
Пример #8
0
 function HelpDispatcher()
 {
     $this->aBreadcrumbs[] = array('action' => 'dashboard', 'name' => _kt('Dashboard'));
     $this->aBreadcrumbs[] = array('name' => _kt('Help'));
     parent::KTStandardDispatcher();
 }
Пример #9
0
 function KTErrorDispatcher($oError)
 {
     parent::KTStandardDispatcher();
     $this->oError =& $oError;
 }
Пример #10
0
 function KTInterceptor()
 {
     return parent::KTStandardDispatcher();
 }
Пример #11
0
 public function __construct()
 {
     parent::KTStandardDispatcher();
     $this->curUserId = $_SESSION['userID'];
     $this->sysAdmin = Permission::userIsSystemAdministrator();
     if (array_key_exists('fSavedSearchId', $_GET)) {
         $this->savedSearchId = sanitizeForSQL($_GET['fSavedSearchId']);
     }
 }
Пример #12
0
 /**
  * Handle output from this dispatcher.
  *
  * If there's an error in _this_ dispatcher, use the standard
  * surroundings.  If not, don't put anything around the output - the
  * chained dispatcher will take care of that.
  */
 function handleOutput($data)
 {
     if ($this->bJSONMode || $this->error) {
         parent::handleOutput($data);
     } else {
         print $data;
     }
 }
 function KTAuthenticationProvider()
 {
     return parent::KTStandardDispatcher();
 }