Ejemplo n.º 1
0
 public function getUrlQuery(Gpf_Ui_Controller_Url $url)
 {
     $string = '';
     if (strlen($url->getQuery())) {
         $string = $url->getQuery();
     }
     if (strlen($url->getFragment())) {
         $string .= '#' . $url->getFragment();
     }
     return $string;
 }
Ejemplo n.º 2
0
 /**
  *
  * keyword1-keywordN_param1_paramN_ACTIONVALUE?qParam1=qValue1&qParamN=qValueN
  *
  * @param unknown_type $url
  */
 public function parse($url)
 {
     $urlParser = new Gpf_Ui_Controller_UrlParser();
     $this->url = $urlParser->parse($url);
     $this->action = new Gpf_Ui_Controller_Action();
     $this->parseAction();
     parse_str($this->url->getQuery(), $params);
     foreach ($params as $name => $value) {
         $this->action->setQueryParam($name, $value);
     }
 }