public function __construct($param = array()) { parent::__construct($param); if (!@$this->param['reverse']) { $this->param['reverse'] = preg_replace('/\\(.*?\\)/i', '%s', $this->param['url']); } }
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); } } }