function createExportExcel() { global $rbacsystem; if ($rbacsystem->checkAccess("write", $_GET['ref_id'])) { include_once "./Modules/TestQuestionPool/classes/class.ilQuestionpoolExport.php"; $question_ids =& $this->object->getAllQuestionIds(); $qpl_exp = new ilQuestionpoolExport($this->object, 'xls', $question_ids); $qpl_exp->buildExportFile(); $this->ctrl->redirectByClass("ilquestionpoolexportgui", ""); } }