/** * @return string */ public function toCSV() { $settings = JBModelConfig::model()->getGroup('export.categories'); if ($settings->category_settings) { $arrayParams = array(); $params = $this->_category->getParams()->get('template.'); foreach ($params as $key => $value) { if (preg_match('/^category*/', $key) && $key !== 'lastmodified') { $arrayParams[$key] = $value; } } $result = $this->_packToLine($arrayParams); return $result; } else { return parent::toCSV(); } }
/** * @return string */ public function toCSV() { $settings = JBModelConfig::model()->getGroup('export.categories'); if ($settings->config_category_settings) { $arrayParams = array(); $params = $this->_category->getParams()->get('config.'); foreach ($params as $key => $value) { if ($key == 'show_feed_link') { $arrayParams[$key] = $value; } } $result = $this->_packToLine($arrayParams); return $result; } else { return parent::toCSV(); } }
/** * @return string */ public function toCSV() { $settings = JBModelConfig::model()->getGroup('export.categories'); if ($settings->config_items_order_settings) { $result = ''; $arrayParams = array(); $params = $this->_category->getParams()->get('config.'); foreach ($params as $key => $value) { if ($key == 'item_order') { $arrayParams = $value; } } $result = $this->_packToLine($arrayParams, true); return $result; } else { return parent::toCSV(); } }
/** * @return string */ public function toCSV() { $settings = JBModelConfig::model()->getGroup('export.categories'); if ($settings->config_others_settings) { $arrayParams = array(); $paramsConfig = $this->_category->getParams()->get('config.'); $paramsTemplate = $this->_category->getParams()->get('template.'); $params = array_merge($paramsConfig, $paramsTemplate); $others = array('alpha_index', 'alpha_chars', 'show_alpha_index'); foreach ($params as $key => $value) { if (in_array($key, $others)) { $arrayParams[$key] = $value; } } $result = $this->_packToLine($arrayParams); return $result; } else { return parent::toCSV(); } }