server->str('REQUEST_METHOD')) == 'post') { $newaction = 'redirect'; } else { $newaction = 'show'; } } $this->newaction = $newaction; } /** * Returns the action to use next * * @return string */ public function getNewAction() { return $this->newaction; } /** * Should this Exception's message be shown to the user? * * @param null|bool $set when null is given, the current setting is not changed * @return bool */ public function displayToUser($set = null) { if (!is_null($set)) $this->displayToUser = $set; return $set; } }