public function update($event, $val = null) { switch ($event) { case Render::CHUNK: $this->flags = $val; break; case Render::STANDALONE: if ($val) { $this->registerElementMap(parent::getDefaultElementMap()); $this->registerTextMap(parent::getDefaultTextMap()); } break; case Render::INIT: if ($val) { $this->postConstruct(); if (Config::css()) { $this->fetchStylesheet(); } $this->createOutputFile(); } break; case Render::VERBOSE: v("Starting %s rendering", $this->getFormatName(), VERBOSE_FORMAT_RENDERING); break; } }
public function __construct() { parent::__construct(); $this->registerFormatName("PEAR-Chunked-XHTML"); $this->setTitle("PEAR Manual"); $this->setExt(Config::ext() === null ? ".html" : Config::ext()); $this->setChunked(true); }