original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Deletes a file both from database and disk
  @param int|array $file
  @param int $db
  @param int $disk
  @param bool $check
  @return bool
docstring_tokens: Deletes a file both from database and disk