/** * 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()); }
public function __construct() { parent::__construct(self::DOCTYPE_JSON, 'application/json'); }