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