svn: /phd/trunk/phpdotnet/phd/ Format.php Package/PHP/XHTML.php
| From: | Moacir de Oliveira Miranda Júnior | Date: | Fri, 09 Oct 2009 02:27:32 +0000 |
| Subject: | svn: /phd/trunk/phpdotnet/phd/ Format.php Package/PHP/XHTML.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5111@lists.php.net to get a copy of this message | ||
moacir Fri, 09 Oct 2009 02:27:32 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=289395
Log:
Fixing bug #45071.
Added methods in the Format class to extend the index information:
- addRefname
- addClassname
- addVarname
Bug: http://bugs.php.net/45071 (Closed) Links to
require/include(_once) not rendered
Changed paths:
U phd/trunk/phpdotnet/phd/Format.php
U phd/trunk/phpdotnet/phd/Package/PHP/XHTML.php
Modified: phd/trunk/phpdotnet/phd/Format.php
===================================================================
--- phd/trunk/phpdotnet/phd/Format.php 2009-10-09 02:15:22 UTC (rev 289394)
+++ phd/trunk/phpdotnet/phd/Format.php 2009-10-09 02:27:32 UTC (rev 289395)
@@ -170,6 +170,15 @@
return array_pop($this->fp);
}
+ public function addRefname($id, $ref) {
+ $this->refs[$ref] = $id;
+ }
+ public function addClassname($id, $class) {
+ $this->classes[$class] = $id;
+ }
+ public function addVarname($id, $var) {
+ $this->vars[$var] = $id;
+ }
public function getRefnameLink($ref) {
return isset($this->refs[$ref]) ? $this->refs[$ref] : null;
}
Modified: phd/trunk/phpdotnet/phd/Package/PHP/XHTML.php
===================================================================
--- phd/trunk/phpdotnet/phd/Package/PHP/XHTML.php 2009-10-09 02:15:22 UTC (rev 289394)
+++ phd/trunk/phpdotnet/phd/Package/PHP/XHTML.php 2009-10-09 02:27:32 UTC (rev 289395)
@@ -135,6 +135,7 @@
$this->myelementmap = array_merge(parent::getDefaultElementMap(),
static::getDefaultElementMap());
$this->mytextmap = array_merge(parent::getDefaultTextMap(),
static::getDefaultTextMap());
$this->dchunk = array_merge(parent::getDefaultChunkInfo(),
static::getDefaultChunkInfo());
+ $this->extraIndexInformation();
}
public function getDefaultElementMap() {
@@ -149,6 +150,14 @@
return $this->dchunk;
}
+ public function extraIndexInformation() {
+ $this->addRefname("function.include", "include");
+ $this->addRefname("function.include-once", "include-once");
+ $this->addRefname("function.require", "require");
+ $this->addRefname("function.require-once", "require-once");
+ $this->addRefname("function.return", "return");
+ }
+
public function loadVersionAcronymInfo() {
$this->versions = self::generateVersionInfo(Config::phpweb_version_filename());
$this->acronyms = self::generateAcronymInfo(Config::phpweb_acronym_filename());