Beispiel #1
0
 /**
  * Sets the page title/description.
  */
 protected function _setPageTitle()
 {
     $is_unique = $this->getController()->getState()->isUnique();
     if (!$is_unique) {
         parent::_setPageTitle();
     }
 }
Beispiel #2
0
 /**
  * (non-PHPdoc)
  * @see ComBaseDispatcher::_actionDispatch()
  */
 protected function _actionDispatch(KCommandContext $context)
 {
     if ($this->action == 'confirm' && $this->token) {
         $context->data->append(array('_action' => 'confirm', 'token' => $this->token));
         return $this->execute('post', $context);
     }
     return parent::_actionDispatch($context);
 }
Beispiel #3
0
 /**
  * If session throws LibBaseControllerExceptionUnauthorized exception
  * that means the user has entere wrong credentials. In that case
  * let the application handle the error.
  *
  * (non-PHPdoc)
  *
  * @see ComBaseDispatcherDefault::_actionException()
  */
 protected function _actionException(KCommandContext $context)
 {
     if ($context->data instanceof LibBaseControllerExceptionUnauthorized && $this->getController() instanceof ComPeopleControllerSession) {
         $context->response->send();
         exit(0);
     } else {
         parent::_actionException($context);
     }
 }