/** * @access public * @static * xmlInstance class */ public static function xmlInstance() { if (is_null(self::$_instance)) { self::$_instance = new magixcjquery_xml_xml(); } return self::$_instance; }
/** * Create GZ file from sitemap.xml * @param $file * @param $data * @return void */ public function createGZ($fpath, $file, $data) { $this->makeFile(magixcjquery_xml_xml::xmlInstance()->folder_path($fpath) . $file, magixcjquery_xml_xml::xmlInstance()->folder_path($fpath) . $data); }
/** * Toggle indentation on/off (implement indent) * @param $indent = true/false * @return void */ function indentRSS($indent = true) { magixcjquery_xml_xml::xmlInstance()->indent($indent); }