Пример #1
0
 public function __destruct()
 {
     parent::__destruct();
     if ($this->m_session) {
         $_SESSION = $this->m_session->toArray();
     }
     unset($this->m_router, $this->m_session, $this->m_database);
 }
Пример #2
0
 /**
  * Get route pathway segments
  * @return array
  */
 public function getSegments()
 {
     return array_merge($this->m_path->toArray(), $this->m_param->toArray());
 }