Exemplo n.º 1
0
 public function getUri($controllerName, $methodName = null)
 {
     $req = Request::getInstance(Request::GET);
     // TODO 요 부분 수정 필요
     $class = $req->getParameter('class');
     $method = is_null($methodName) ? $req->getParameter('method') : $methodName;
     return is_null($method) ? $class : $class . "." . $method;
 }
Exemplo n.º 2
0
 private function getRequestData(&$reqMethodType)
 {
     $data = null;
     switch ($reqMethodType) {
         case RequestParam::METHOD_COOKIE:
             $data = Request::getInstance(Request::COOKIE);
             break;
         case RequestParam::METHOD_SESSION:
             $data = Request::getInstance(Request::SESSION);
             break;
         case RequestParam::METHOD_POST:
             $data = Request::getInstance(Request::POST);
             break;
         case RequestParam::METHOD_GET:
             $data = Request::getInstance(Request::GET);
             break;
     }
     return $data;
 }