Ejemplo n.º 1
0
 /**
  * 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());
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct(self::DOCTYPE_JSON, 'application/json');
 }