Пример #1
0
 public function getImage($id)
 {
     $oBDD = new classBDD();
     $image = $oBDD->selectByParam($this->table, array('idImage' => $id));
     if (empty($image)) {
         return NULL;
     }
     $this->idImage = $image['idImage'];
     $this->nomImage = $image['nomImage'];
     $this->captionImage = $image['captionImage'];
     $this->real_Path = DIR_IMG . $image['real_path'];
     $this->created_on = $image['created_on'];
     return 1;
 }
Пример #2
0
 public function createUser()
 {
     //$classVars = get_class_vars(__CLASS__);
     $classVars = get_object_vars($this);
     unset($classVars['table']);
     $objBDD = new classBDD();
     $objBDD->insertDB($this->table, $classVars);
     //var_dump($classVars);
 }