/** * bulkexport * Custom function called by the Bulk action method * @param $items * @return url link */ public function bulkExport($items) { if (is_array($items)) { $fields = "d.domain, d.tld"; $domains = $this->domains->get_domains($items, $fields); $cvs = Shineisp_Commons_Utilities::cvsExport($domains); die(json_encode(array('mex' => '<a href="/public/documents/export.csv">' . $registry->Zend_Translate->translate("Download") . '</a>'))); } die(json_encode(array('mex' => $this->translator->translate("An error occurred during the export.")))); }
/** * bulkexport * Custom function called by the Bulk action method * @param $items * @return url link */ public function bulkExport($items) { if (is_array($items)) { $fields = "d.domain, d.tld"; $service = $this->service->findbyIds($fields, $items); $cvs = Shineisp_Commons_Utilities::cvsExport($service); die(json_encode(array('mex' => '<a href="/public/documents/export.csv">' . $registry->Zend_Translate->translate("download") . '</a>'))); } die(json_encode(array('mex' => $this->translator->translate("There was a problem during the export process")))); }