示例#1
0
 public static function delete($id)
 {
     return SqlObject::deleteById($id, self::$tbl_name, 'id');
 }
示例#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);
 }
示例#3
0
 public static function remove($id)
 {
     return SqlObject::deleteById($id, self::$tbl_name);
 }