Exemplo n.º 1
0
 public static function delete($id)
 {
     return SqlObject::deleteById($id, self::$tbl_name, 'id');
 }
Exemplo n.º 2
0
 /** permanently deletes the file from disk */
 public static function unlink($id)
 {
     SqlObject::deleteById($id, self::$tbl_name, 'id');
     $path = self::getUploadPath($id);
     unlink($path);
 }
Exemplo n.º 3
0
 public static function remove($id)
 {
     return SqlObject::deleteById($id, self::$tbl_name);
 }