Example #1
0
 /**
  * @access public
  * @static
  * xmlInstance class
  */
 public static function xmlInstance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new magixcjquery_xml_xml();
     }
     return self::$_instance;
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 /**
  * Toggle indentation on/off (implement indent)
  * @param $indent = true/false
  * @return void
  */
 function indentRSS($indent = true)
 {
     magixcjquery_xml_xml::xmlInstance()->indent($indent);
 }