Esempio n. 1
0
 public final function translateDocument(Zoombi_Document &$a_doc)
 {
     $a_doc->bodySet($this->translateText($a_doc->body()));
 }
Esempio n. 2
0
 /**
  * Constructor
  */
 public function __construct($a_type = self::DOCTYPE_TEXT, $a_mime = 'text/plain')
 {
     parent::__construct($a_type, $a_mime);
     $this->m_data = '';
 }
Esempio n. 3
0
 public function setDocument(Zoombi_Document &$a_document)
 {
     $this->setContentType($a_document->getMime());
     $this->setContent($a_document->compile());
     $this->setEncoding($a_document->getCharset());
 }
Esempio n. 4
0
 protected function after()
 {
     $this->setOutput($this->document->compile());
     Zoombi_Response::getInstance()->setContentType($this->document->getMime())->setContentCharset($this->document->getCharset());
 }