コード例 #1
0
ファイル: Query.php プロジェクト: fresnostate-library/xerxes
 /**
  * Return an md5 hash of the request uri
  */
 public function getUrlHash()
 {
     if (!$this->request instanceof Request) {
         throw new \Exception("No Request object set");
     }
     return md5($this->request->getRequestUri());
 }
コード例 #2
0
 /**
  * Redirect user to login page
  */
 public function redirectToLogin()
 {
     $params = array('controller' => 'authenticate', 'action' => 'login', 'return' => $this->request->getRequestUri());
     return $this->redirectTo($params);
 }