public function deleteAll($file, &$db = 0, &$disk = 0, $check = true)
    {
        if (!is_array($file)) {
            $file = $this->get($file);
        }

        if (!isset($file['file_id'])) {
            return false;
        }

        if (!$this->delete($file['file_id'], $check)) {
            return false;
        }

        $db++;

        if (!$this->deleteFromDisk($file)) {
            return false;
        }

        $disk++;
        return true;
    }
public function deleteAll($file, &$db = 0, &$disk = 0, $check = true)
    {
        if (!is_array($file)) {
            $file = $this->get($file);
        }

        if (!isset($file['file_id'])) {
            return false;
        }

        if (!$this->delete($file['file_id'], $check)) {
            return false;
        }

        $db++;

        if (!$this->deleteFromDisk($file)) {
            return false;
        }

        $disk++;
        return true;
    }
public function deleteAll ( $ file , & $ db = 0 , & $ disk = 0 , $ check = true ) { if ( ! is_array ( $ file ) ) { $ file = $ this -> get ( $ file ) ; } if ( ! isset ( $ file [ 'file_id' ] ) ) { return false ; } if ( ! $ this -> delete ( $ file [ 'file_id' ] , $ check ) ) { return false ; } $ db ++ ; if ( ! $ this -> deleteFromDisk ( $ file ) ) { return false ; } $ disk ++ ; return true ; }
Deletes a file both from database and disk
@param int|array $file
@param int $db
@param int $disk
@param bool $check
@return bool
Deletes a file both from database and disk