/** * Handles an export action. * * @param int $id * @access private */ private function export_action($id) { $action = new Apple_Actions\Index\Export($this->settings, $id); try { $json = $action->perform(); $this->download_json($json, $id); } catch (Apple_Actions\Action_Exception $e) { $this->notice_error($e->getMessage()); } }