예제 #1
0
파일: Router.php 프로젝트: solve/router
 public function getRoute($routeName)
 {
     $route = null;
     if ($this->_routes->has($routeName)) {
         $info = $this->_routes->get($routeName);
         $route = new Route($routeName, $info['pattern'], $info);
     }
     return $route;
 }
예제 #2
0
파일: View.php 프로젝트: solve/solve
 public function getCombinedVars($format = null)
 {
     if (!$format) {
         $format = $this->_responseFormat;
     }
     $combinedVars = new ArrayStorage($this->_vars);
     if ($this->_formatVars->has($format)) {
         $combinedVars->extendDeepValue($this->_formatVars->get($format));
     }
     if ($format == View::FORMAT_HTML) {
         $combinedVars['_baseUri'] = DC::getRouter()->getBaseUri();
     }
     return $combinedVars;
 }
예제 #3
0
 public function has($name)
 {
     return $this->_storage->has($name);
 }