Esempio n. 1
0
 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->loadVersionAcronymInfo();
                 $this->postConstruct();
                 if (Config::css()) {
                     $this->fetchStylesheet();
                 }
                 $this->createOutputFile();
             }
             break;
         case Render::VERBOSE:
             v("Starting %s rendering", $this->getFormatName(), VERBOSE_FORMAT_RENDERING);
             break;
     }
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     $this->registerFormatName("PHP-Web");
     $this->setTitle("PHP Manual");
     $this->setChunked(true);
     $this->setExt(Config::ext() === null ? ".php" : Config::ext());
 }