Ejemplo n.º 1
0
 public function __construct($options = array())
 {
     parent::__construct($options);
     // Set mime type
     $this->_mime = 'application/json';
     // Set document type
     $this->_type = 'json';
 }
Ejemplo n.º 2
0
 public function __construct($options = array())
 {
     parent::__construct($options);
     // Set mime type
     $this->_mime = 'text/html';
     // Set document type
     $this->_type = 'error';
 }
Ejemplo n.º 3
0
 public function __construct($options = array())
 {
     parent::__construct($options);
     // Set document type
     $this->_type = 'html';
     // Set default mime type and document metadata (meta data syncs with mime type by default)
     $this->setMimeEncoding('text/html');
 }
Ejemplo n.º 4
0
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->_mime = 'application/xml';
     $this->_type = 'xml';
 }