/** * @desc Update the number of downloads of a file. * @param string[] $downloadfile : DownloadFile to update */ public static function update_number_downloads(DownloadFile $downloadfile) { self::$db_querier->update(DownloadSetup::$download_table, array('number_downloads' => $downloadfile->get_number_downloads()), 'WHERE id=:id', array('id' => $downloadfile->get_id())); }