public function __construct($url) { parent::__construct($url); if (empty($url[2]) || !is_numeric($url[2])) { $this->id = false; } else { $this->id = $url[2]; } }
protected function get_data() { $data = parent::get_data(); $data['user'] = $this->user; return $data; }