function check() { if (!parent::check()) { return false; } $this->persistParams(array('fDocumentId')); return true; }
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(); }
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(); }
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')); }
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(); }
function DashboardDispatcher() { $this->aBreadcrumbs = array(array('action' => 'dashboard', 'name' => _kt('Dashboard'))); return parent::KTStandardDispatcher(); }
function BooleanSearchDispatcher() { $this->aBreadcrumbs = array(array('action' => 'browse', 'name' => _kt('Browse'))); return parent::KTStandardDispatcher(); }
function HelpDispatcher() { $this->aBreadcrumbs[] = array('action' => 'dashboard', 'name' => _kt('Dashboard')); $this->aBreadcrumbs[] = array('name' => _kt('Help')); parent::KTStandardDispatcher(); }
function KTErrorDispatcher($oError) { parent::KTStandardDispatcher(); $this->oError =& $oError; }
function KTInterceptor() { return parent::KTStandardDispatcher(); }
public function __construct() { parent::KTStandardDispatcher(); $this->curUserId = $_SESSION['userID']; $this->sysAdmin = Permission::userIsSystemAdministrator(); if (array_key_exists('fSavedSearchId', $_GET)) { $this->savedSearchId = sanitizeForSQL($_GET['fSavedSearchId']); } }
/** * 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(); }