function batch_recalculate_scores() { $this->data['subtitle'] = "Batch Recalculate User Scores"; $this->content_view = "admin/batch_recalculate_scores"; $this->data['files'] = Ranked_file::all(array('select' => 'id, title, rate, artist, difficulty_score')); $this->data['scores'] = User_score::get_scores_for_recalculate(); }