public function export() { if (!$this->user->hasPermission('modify', 'module/journal2')) { throw new Exception('You do not have permissions to modify Journal2 module'); } if (!defined('J2ENV')) { throw new Exception('You shouldn\'t be here!'); } Journal2Skin::exportAll($this->db); }