/** * Run CSV Export * * @param string $exportType The export type */ public function exportCSV($exportType) { $authorizeObj = new authorize($_SESSION['empID'], $_SESSION['isAdmin']); if ($authorizeObj->isAdmin()) { $csvExport = new CSVExport(); $csvExport->exportData($exportType); } }