/** * Make route from object * @param ZRoute $a_route * @return ZRoute */ public function &fromObject($a_route) { $this->clear(); if ($a_route instanceof ZRoute) { $this->m_path = clone $a_route->getPath(); $this->m_param = clone $a_route->getParams(); $this->m_query = clone $a_route->getQuery(); $this->m_mode = $a_route->getMode(); } return $this; }