function display($tpl = null) { $app = JFactory::getApplication(); $cid = JRequest::getVar('cid'); $ids = explode(",", $cid); $params = JComponentHelper::getParams('com_j2xml'); if (!J2XMLExporter::export(J2XMLExporter::users($ids), $params->get('debug', 0), $params->get('export_gzip', '0'))) { $app->redirect('index.php?option=com_users'); } }
function display($tpl = null) { $app = JFactory::getApplication(); $cid = JRequest::getVar('cid'); $ids = explode(",", $cid); $params = JComponentHelper::getParams('com_j2xml'); $images = array(); $xml = J2XMLExporter::categories($ids, $params->get('export_images', '1'), true, $params->get('export_users', '1'), $images); foreach ($images as $image) { $xml .= $image; } if (!J2XMLExporter::export($xml, $params->get('debug', 0), $params->get('export_gzip', '0'))) { $app->redirect('index.php?option=com_categories&extension=com_content'); } }
function display($tpl = null) { $app = JFactory::getApplication(); $cid = JRequest::getVar('cid'); $ids = explode(",", $cid); $params = JComponentHelper::getParams('com_j2xml'); $options = array(); $options['images'] = $params->get('export_images', '1'); $options['users'] = $params->get('export_users', '1'); $options['categories'] = 1; $options['contacts'] = $params->get('export_contacts', '1'); $j2xml = new J2XMLExporter(); $get_xml = strtolower(str_replace('J2XMLView', '', get_class($this))); $j2xml->{$get_xml}($ids, $xml, $options); $options = array(); $options['debug'] = $params->get('debug', 0); $options['gzip'] = $params->get('export_gzip', '0'); if (!$j2xml->export($xml, $options)) { $app->redirect('index.php?option=com_categories&extension=com_content'); } }