Example #1
0
 /**
  * [Migrate description]
  * @param [type] $file [description]
  */
 public function Migrate($file)
 {
     $sql = file_get_contents($file);
     $instance = Config::GetDb()->db_open()->exec($sql);
 }
Example #2
0
 /**
  * Effacement d'une ligne de table
  * @param  mixed(array or int) $id
  */
 public function delete($id)
 {
     if (is_array($id)) {
         return Config::GetDb()->db_delete($this->table, '', $id);
     } else {
         return Config::GetDb()->db_delete($this->table, '', ['id' => $id]);
     }
 }