get = wp_parse_args($url); $this->page = reset($this->get); array_shift($this->get); } /** * Get value from $_GET * * @param string $key - Array key * * @return mixed - Return value by get key */ public function get($key = false) { if (!$key) { if (!empty($this->get)) { return $this->get; } else { return array(); } } else { if (isset($this->get[$key])) { return $this->get[$key]; } else { return null; } } } /** * Get current page * * @return string - Current page */ public function get_page() { return $this->page; } }