cvs: phd / mktoc.php /themes/php chmsource.php phpdotnet.php
| From: | Rudy Nappée | Date: | Fri, 24 Oct 2008 20:46:29 +0000 |
| Subject: | cvs: phd / mktoc.php /themes/php chmsource.php phpdotnet.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2284@lists.php.net to get a copy of this message | ||
loudi Fri Oct 24 20:46:29 2008 UTC
Modified files:
/phd/themes/php phpdotnet.php chmsource.php
/phd mktoc.php
Log:
* added varlistentries to the CHM index
=> now php.ini directives appears in the CHM index
http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.56&r2=1.57&diff_format=u
Index: phd/themes/php/phpdotnet.php
diff -u phd/themes/php/phpdotnet.php:1.56 phd/themes/php/phpdotnet.php:1.57
--- phd/themes/php/phpdotnet.php:1.56 Sun Oct 19 17:12:19 2008
+++ phd/themes/php/phpdotnet.php Fri Oct 24 20:46:29 2008
@@ -1,5 +1,5 @@
<?php
-/* $Id: phpdotnet.php,v 1.56 2008/10/19 17:12:19 bjori Exp $ */
+/* $Id: phpdotnet.php,v 1.57 2008/10/24 20:46:29 loudi Exp $ */
abstract class phpdotnet extends PhDTheme {
protected $elementmap = array(
@@ -65,6 +65,7 @@
'part' => 'format_chunk',
),
'legalnotice' => 'format_chunk',
+ 'varlistentry' => 'format_varlistentry',
'part' => 'format_container_chunk',
'preface' => 'format_chunk',
'refentry' => 'format_chunk',
@@ -647,7 +648,9 @@
}
return '</strong></dt>';
}
-
+ public function format_varlistentry($open, $name, $attrs) {
+ return false;
+ }
}
/*
http://cvs.php.net/viewvc.cgi/phd/themes/php/chmsource.php?r1=1.7&r2=1.8&diff_format=u
Index: phd/themes/php/chmsource.php
diff -u phd/themes/php/chmsource.php:1.7 phd/themes/php/chmsource.php:1.8
--- phd/themes/php/chmsource.php:1.7 Fri Oct 24 16:38:32 2008
+++ phd/themes/php/chmsource.php Fri Oct 24 20:46:29 2008
@@ -1,5 +1,5 @@
<?php
-/* $Id: chmsource.php,v 1.7 2008/10/24 16:38:32 loudi Exp $ */
+/* $Id: chmsource.php,v 1.8 2008/10/24 20:46:29 loudi Exp $ */
require_once $ROOT . '/themes/php/chunkedhtml.php';
class chmsource extends chunkedhtml {
@@ -296,7 +296,7 @@
public function appendData($data, $isChunk) {
if ($this->lastContent)
$this->appendChm($this->lastContent["name"],
$this->lastContent["reference"],
- $isChunk, $this->lastContent["hasChild"]);
+ $isChunk, $this->lastContent["hasChild"]);
$this->lastContent = null;
return parent::appendData($data, $isChunk);
}
@@ -316,7 +316,15 @@
return parent::format_root_chunk($open, $name, $attrs);
}
-
+ public function format_varlistentry($open, $name, $attrs) {
+ $this->collectContent($attrs);
+ fwrite($this->hhkStream, " <li><object
type=\"text/sitemap\">\n" .
+ " <param name=\"Local\"
value=\"{$this->lastContent["reference"]}\">\n" .
+ " <param name=\"Name\" value=\"" .
htmlentities($this->lastContent["name"], ENT_QUOTES, 'UTF-8') .
"\">\n" .
+ " </object>\n </li>\n");
+ return false;
+ }
+
public function header($id) {
$header = parent::header($id);
// Add CSS link to <head>
http://cvs.php.net/viewvc.cgi/phd/mktoc.php?r1=1.16&r2=1.17&diff_format=u
Index: phd/mktoc.php
diff -u phd/mktoc.php:1.16 phd/mktoc.php:1.17
--- phd/mktoc.php:1.16 Sun Oct 19 16:39:58 2008
+++ phd/mktoc.php Fri Oct 24 20:46:29 2008
@@ -29,7 +29,7 @@
* PhDHelper::getRefnameLink(), and allows easy refname->link resolution.
*
* @package PhD
-* @version CVS: $Id: mktoc.php,v 1.16 2008/10/19 16:39:58 bjori Exp $
+* @version CVS: $Id: mktoc.php,v 1.17 2008/10/24 20:46:29 loudi Exp $
*/
$r = new PhDReader();
@@ -74,7 +74,7 @@
}
}
if (empty($IDs[$lastid]["ldesc"])) {
- if ($name == "title" || $name == "refpurpose") {
+ if ($name == "title" || $name == "refpurpose" || $name ==
"parameter") {
$IDs[$lastid]["ldesc"] = trim($r->readContent($name));
}
}