cvs: phd /formats xhtml.php /themes/php phpdotnet.php

From: Date: Sun, 16 Sep 2007 18:58:32 +0000
Subject: cvs: phd /formats xhtml.php /themes/php phpdotnet.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-25@lists.php.net to get a copy of this message
bjori Sun Sep 16 18:58:32 2007 UTC Modified files: /phd/formats xhtml.php /phd/themes/php phpdotnet.php Log: Implement fieldsynopsis, modifier and void elements http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.21&r2=1.22&diff_format=u Index: phd/formats/xhtml.php diff -u phd/formats/xhtml.php:1.21 phd/formats/xhtml.php:1.22 --- phd/formats/xhtml.php:1.21 Thu Aug 30 13:56:43 2007 +++ phd/formats/xhtml.php Sun Sep 16 18:58:32 2007 @@ -1,5 +1,5 @@ <?php -/* $Id: xhtml.php,v 1.21 2007/08/30 13:56:43 bjori Exp $ */ +/* $Id: xhtml.php,v 1.22 2007/09/16 18:58:32 bjori Exp $ */ class XHTMLPhDFormat extends PhDFormat { protected $elementmap = array( /* {{{ */ @@ -56,6 +56,7 @@ ), 'envar' => 'span', 'example' => 'div', + 'fieldsynopsis' => 'format_fieldsynopsis', 'filename' => 'var', 'glossterm' => 'span', 'holder' => 'span', @@ -79,6 +80,7 @@ 'methodsynopsis' => 'format_methodsynopsis', 'methodname' => 'format_methodname', 'member' => 'li', + 'modifier' => 'span', 'note' => 'format_note', 'ooclass' => array( /* DEFAULT */ 'span', @@ -157,7 +159,11 @@ 'userinput' => 'format_userinput', 'variablelist' => 'format_variablelist', 'varlistentry' => 'format_varlistentry', - 'varname' => 'var', + 'varname' => array( + /* DEFAULT */ 'var', + 'fieldsynopsis' => 'format_varname', + ), + 'void' => 'format_void', 'warning' => 'div', 'year' => 'span', ); /* }}} */ @@ -235,6 +241,12 @@ return "}</div>"; } + public function format_fieldsynopsis($open, $name, $attrs) { + if ($open) { + return '<div class="'.$name.'">'; + } + return ";</div>\n"; + } public function format_methodsynopsis($open, $name, $attrs) { if ($open) { $this->params = array("count" => 0, "opt" => 0, "content" => ""); @@ -270,6 +282,9 @@ return "</tt></i>\n"; } + public function format_void($open, $name, $attrs) { + return ' ( <span class="methodparam">void</span>'; + } public function format_methodparam($open, $name, $attrs) { if ($open) { $content = ''; @@ -299,6 +314,12 @@ return '</b></span>'; } + public function format_varname($open, $name, $attrs) { + if ($open) { + return '<var>$'; + } + return "</var>\n"; + } public function format_variablelist($open, $name, $attrs) { if ($open) { return "<dl>\n"; http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.13&r2=1.14&diff_format=u Index: phd/themes/php/phpdotnet.php diff -u phd/themes/php/phpdotnet.php:1.13 phd/themes/php/phpdotnet.php:1.14 --- phd/themes/php/phpdotnet.php:1.13 Thu Aug 30 13:55:44 2007 +++ phd/themes/php/phpdotnet.php Sun Sep 16 18:58:32 2007 @@ -1,5 +1,5 @@ <?php -/* $Id: phpdotnet.php,v 1.13 2007/08/30 13:55:44 bjori Exp $ */ +/* $Id: phpdotnet.php,v 1.14 2007/09/16 18:58:32 bjori Exp $ */ class phpdotnet extends PhDHelper { protected $elementmap = array( @@ -10,6 +10,7 @@ 'titleabbrev' => 'format_suppressed_tags', 'type' => array( /* DEFAULT */ 'format_suppressed_tags', + 'fieldsynopsis' => false, 'methodparam' => false, 'methodsynopsis' => false, ), @@ -58,6 +59,7 @@ 'function' => 'format_function_text', 'type' => array( /* DEFAULT */ 'format_type_text', + 'fieldsynopsis' => false, 'methodparam' => false, 'methodsynopsis' => false, ),

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