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