private function userExists() { Assert::isTrue(isset($_SESSION['user_id'])); try { $this->getDaoFactory()->getUserDao()->getById($_SESSION['user_id']); } catch (ObjectNotFoundException $e) { return false; } return true; }
public function getPostParameter($parameterName) { Assert::isTrue($this->hasPostParameter($parameterName)); return $this->postParams[$parameterName]; }
public function getValue($parameterName) { Assert::isTrue($this->has($parameterName)); return $this->requestParameters[$parameterName]; }