예제 #1
0
 public function getUrl(Gpf_Ui_Page $controller)
 {
     $url = new Gpf_Ui_Controller_Url();
     $pathString = '';
     if ($controller->getKeyword() != '') {
         $pathString = $controller->getKeyword() . '_';
     }
     foreach ($controller->getParams() as $name => $value) {
         $pathString .= $name . $value . '_';
     }
     $pathString .= $controller->getCode() . $controller->getValue();
     $url->setPathString($pathString);
     $query = '';
     foreach ($controller->getQueryParams() as $name => $value) {
         $query .= $name . '=' . urlencode($value) . '&';
     }
     $query = rtrim($query, '&');
     $url->setQuery($query);
     return $url;
 }
예제 #2
0
 public function toText()
 {
     self::$currentController = $this->createController();
     return self::$currentController->render();
 }
예제 #3
0
 protected function forward(Gpf_Ui_Page $controller)
 {
     $controller->setAction($this->action);
     $controller->processPage();
     $this->outputController = $controller->getOutputController();
 }