/** * Use the export action to get an instance of the Exporter. Use that to * manually generate the workspace for upload, then clean it up. * * @access private * @since 0.6.0 */ private function generate_article() { $export_action = new Export($this->settings, $this->id); $this->exporter = $export_action->fetch_exporter(); $this->exporter->generate(); return array($this->exporter->get_json(), $this->exporter->get_bundles()); }