示例#1
0
    public function generate($close = true)
    {
        $tmp = '<?xml version="1.0" encoding="utf-8"?>
		<!DOCTYPE yml_catalog SYSTEM "shops.dtd">';
        $tmp .= parent::generate($close);
        if ($this->gzip && function_exists('gzencode')) {
            $tmp = gzencode($tmp, 9);
        }
        return $tmp;
    }
示例#2
0
 public function add(ymlElement $comp)
 {
     $this->tagContent .= $comp->generate();
 }