コード例 #1
0
ファイル: xml.php プロジェクト: BGCX261/zoombi-svn-to-git
 /**
  * Constructor
  * @param string $a_type Document type
  * @param string $a_mime Document mime
  */
 public function __construct($a_type = self::DOCTYPE_XML, $a_mime = 'text/xml')
 {
     parent::__construct($a_type, $a_mime);
     $this->setDoctype('xml')->setVersion('1.0')->setCharset(parent::getCharset());
 }
コード例 #2
0
ファイル: json.php プロジェクト: BGCX261/zoombi-svn-to-git
 public function __construct()
 {
     parent::__construct(self::DOCTYPE_JSON, 'application/json');
 }