/** * export/download player log into pdf * role: administrator */ public function get_player_logging() { if (Authenticate::is_authorized()) { $model_logging = Log::getInstance(); $id = $this->framework->url->url_part(3); $model_report = ReportGenerator::getInstance(); $model_report->get_report_player_log($model_logging->get_log($id)); $model_report->print_report(); } else { transport("administrator"); } }