cvs: phd / config.php /themes/pear peartheme.php /themes/php phpdotnet.php phpkdevelop.php phppdf.php

From: Date: Wed, 23 Jul 2008 19:21:31 +0000
Subject: cvs: phd / config.php /themes/pear peartheme.php /themes/php phpdotnet.php phpkdevelop.php phppdf.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-1907@lists.php.net to get a copy of this message
bjori Wed Jul 23 19:21:31 2008 UTC Modified files: /phd config.php /phd/themes/pear peartheme.php /phd/themes/php phpdotnet.php phpkdevelop.php phppdf.php Log: MFB: Add support for phpdoc:exception http://cvs.php.net/viewvc.cgi/phd/config.php?r1=1.51&r2=1.52&diff_format=u Index: phd/config.php diff -u phd/config.php:1.51 phd/config.php:1.52 --- phd/config.php:1.51 Fri Jul 18 13:18:22 2008 +++ phd/config.php Wed Jul 23 19:21:31 2008 @@ -1,5 +1,5 @@ <?php -/* $Id: config.php,v 1.51 2008/07/18 13:18:22 loudi Exp $ */ +/* $Id: config.php,v 1.52 2008/07/23 19:21:31 bjori Exp $ */ require $ROOT . "/include/PhDErrors.php"; @@ -34,6 +34,7 @@ ), 'chunk_extra' => array( "legalnotice" => true, + "phpdoc:exception" => true, ), 'index' => true, 'xml_root' => '.', http://cvs.php.net/viewvc.cgi/phd/themes/pear/peartheme.php?r1=1.1&r2=1.2&diff_format=u Index: phd/themes/pear/peartheme.php diff -u phd/themes/pear/peartheme.php:1.1 phd/themes/pear/peartheme.php:1.2 --- phd/themes/pear/peartheme.php:1.1 Tue Jun 24 14:54:06 2008 +++ phd/themes/pear/peartheme.php Wed Jul 23 19:21:31 2008 @@ -98,6 +98,7 @@ 'replaceable' => 'format_replaceable', 'refentry' => 'format_chunk', 'reference' => 'format_container_chunk', + 'phpdoc:reference' => 'format_exception_chunk', 'refname' => 'h1', 'refnamediv' => 'format_suppressed_tags', 'refpurpose' => 'format_refpurpose', @@ -270,6 +271,10 @@ } return "</div>\n"; } + + public function format_exception_chunk($open, $name, $attrs, $props) { + return $this->format_container_chunk($open, "reference", $attrs, $props); + } public function format_root_chunk($open, $name, $attrs, $props) { $this->CURRENT_ID = $id = $attrs[PhDReader::XMLNS_XML]["id"]; http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.53&r2=1.54&diff_format=u Index: phd/themes/php/phpdotnet.php diff -u phd/themes/php/phpdotnet.php:1.53 phd/themes/php/phpdotnet.php:1.54 --- phd/themes/php/phpdotnet.php:1.53 Sun May 4 00:36:55 2008 +++ phd/themes/php/phpdotnet.php Wed Jul 23 19:21:31 2008 @@ -1,5 +1,5 @@ <?php -/* $Id: phpdotnet.php,v 1.53 2008/05/04 00:36:55 bjori Exp $ */ +/* $Id: phpdotnet.php,v 1.54 2008/07/23 19:21:31 bjori Exp $ */ abstract class phpdotnet extends PhDTheme { protected $elementmap = array( @@ -68,6 +68,7 @@ 'preface' => 'format_chunk', 'refentry' => 'format_chunk', 'reference' => 'format_container_chunk', + 'phpdoc:exception' => 'format_exception_chunk', 'sect1' => 'format_chunk', 'sect2' => 'format_chunk', 'sect3' => 'format_chunk', @@ -406,6 +407,10 @@ return $content; } + public function format_exception_chunk($open, $name, $attrs, $props) { + return $this->format_container_chunk($open, "reference", $attrs, $props); + } + public function format_container_chunk_title($open, $name, $attrs) { if ($open) { return "<h1>"; http://cvs.php.net/viewvc.cgi/phd/themes/php/phpkdevelop.php?r1=1.1&r2=1.2&diff_format=u Index: phd/themes/php/phpkdevelop.php diff -u phd/themes/php/phpkdevelop.php:1.1 phd/themes/php/phpkdevelop.php:1.2 --- phd/themes/php/phpkdevelop.php:1.1 Mon Jul 21 18:26:34 2008 +++ phd/themes/php/phpkdevelop.php Wed Jul 23 19:21:31 2008 @@ -47,6 +47,10 @@ /* DEFAULT */ false, 'book' => 'format_tocsect2', ), + 'phpdoc:exception' => array( + /* DEFAULT */ false, + 'book' => 'format_tocsect2', + ), 'refentry' => 'format_refentry', 'refname' => 'format_suppressed_tags', 'refpurpose' => 'format_suppressed_tags', http://cvs.php.net/viewvc.cgi/phd/themes/php/phppdf.php?r1=1.2&r2=1.3&diff_format=u Index: phd/themes/php/phppdf.php diff -u phd/themes/php/phppdf.php:1.2 phd/themes/php/phppdf.php:1.3 --- phd/themes/php/phppdf.php:1.2 Sun Jul 20 18:00:00 2008 +++ phd/themes/php/phppdf.php Wed Jul 23 19:21:31 2008 @@ -31,6 +31,7 @@ 'preface' => 'format_tocnode_newpage', 'refentry' => 'format_tocnode_newpage', 'reference' => 'format_tocnode_newpage', + 'phpdoc:exception' => 'format_exception_chunk', 'sect1' => 'format_tocnode', 'sect2' => 'format_tocnode', 'sect3' => 'format_tocnode', @@ -141,7 +142,10 @@ public function format_tocnode_newpage($open, $name, $attrs, $props) { return $this->format_tocnode($open, $name, $attrs, $props, true); - } + } + public function format_exception_chunk($open, $name, $attrs, $props) { + return $this->format_tocnode_newpage($open, "reference", $attrs, $props); + } // Convert the function name to a Unix valid filename protected function toValidName($functionName) {

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