/** * write_id3_for_song * Write id3 metadata to the file for the excepted song id * @param int $song_id */ public static function write_id3_for_song($song_id) { $song = new Song($song_id); if ($song->id) { $song->format(); $song->write_id3(); } }