Beispiel #1
0
 /**
  * basic delete specified by $id
  *
  * @param int $id
  * @param bool [optional] erase dir on filesystem?
  * @return DibiResult
  */
 public function delete($id)
 {
     if (func_num_args() > 1) {
         $rmDir = func_get_arg(1);
         if (!empty($rmDir)) {
             Basic::rmdir(static::PATH . $id, true);
         }
     }
     return dibi::delete(static::TABLE)->where('id=%i', $id)->execute();
 }