예제 #1
0
 public function __construct($param = array())
 {
     parent::__construct($param);
     if (!@$this->param['reverse']) {
         $this->param['reverse'] = preg_replace('/\\(.*?\\)/i', '%s', $this->param['url']);
     }
 }
예제 #2
0
파일: chain.php 프로젝트: s-kalaus/ekernel
 public function __construct($param = array())
 {
     parent::__construct($param);
     if (count($this->param->part)) {
         foreach ($this->param->part as $k => $v) {
             $class = 'route_' . $v->type;
             $this->param->part->{$k} = class_exists($class) ? new $class($v->param) : new data($v->param);
         }
     }
 }