svn: /phd/trunk/phpdotnet/phd/Package/PHP/ HowTo.php

From: Date: Mon, 26 Oct 2009 22:18:01 +0000
Subject: svn: /phd/trunk/phpdotnet/phd/Package/PHP/ HowTo.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5219@lists.php.net to get a copy of this message
moacir Mon, 26 Oct 2009 22:18:01 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=289960 Log: Fixing the problems caused by the method loadVersionAcronymInfo(), not necessary for this format. Fixing the included file. Changed paths: U phd/trunk/phpdotnet/phd/Package/PHP/HowTo.php Modified: phd/trunk/phpdotnet/phd/Package/PHP/HowTo.php =================================================================== --- phd/trunk/phpdotnet/phd/Package/PHP/HowTo.php 2009-10-26 22:02:24 UTC (rev 289959) +++ phd/trunk/phpdotnet/phd/Package/PHP/HowTo.php 2009-10-26 22:18:01 UTC (rev 289960) @@ -14,6 +14,32 @@ parent::__destruct(); } + public function update($event, $val = null) { + switch($event) { + case Render::CHUNK: + case Render::STANDALONE: + case Render::VERBOSE: + parent::update($event, $val); + break; + case Render::INIT: + $this->setOutputDir(Config::output_dir() . strtolower($this->getFormatName()) . '/'); + $this->postConstruct(); + if (file_exists($this->getOutputDir())) { + if (!is_dir($this->getOutputDir())) { + v("Output directory is a file?", E_USER_ERROR); + } + } else { + if (!mkdir($this->getOutputDir())) { + v("Can't create output directory", E_USER_ERROR); + } + } + if (Config::css()) { + $this->fetchStylesheet(); + } + break; + } + } + public function header($id) { $title = Format::getShortDescription($id); $parent = Format::getParent($id); @@ -42,10 +68,8 @@ <div class="up"><a href="{$up[0]}">{$up[1]}</a></div> </div> NAV; -/* + return "<?php include_once '../include/init.inc.php'; echo site_header('$title');?>\n" . $this->nav . "<hr />\n"; -*/ - return "<?php include_once '../include/shared-manual.inc'; echo site_header('$title');?>\n" . $this->nav . "<hr />\n"; } public function footer($id) {

« previous php.doc.cvs (#5219) next »