Example #1
0
 public function __construct(Container $container)
 {
     parent::__construct($container);
     $this->mimeType = 'application/json';
 }
Example #2
0
 public function __construct(Container $container)
 {
     parent::__construct($container);
     $this->mimeType = 'text/plain';
 }
Example #3
0
 /**
  * Creates and returns the document object
  *
  * @return  Document  The document for this application's output
  */
 public function getDocument()
 {
     static $instance = null;
     if (is_null($instance)) {
         $type = $this->getContainer()->input->getCmd('format', 'html');
         $instance = Document::getInstance($type, $this->container);
     }
     return $instance;
 }