svn: /phd/branches/PHD_ENTERPRISE/ include/PhDIndex.class.php packages/PHP/xhtml.php
| From: | Moacir de Oliveira Miranda Júnior | Date: | Thu, 06 Aug 2009 05:09:44 +0000 |
| Subject: | svn: /phd/branches/PHD_ENTERPRISE/ include/PhDIndex.class.php packages/PHP/xhtml.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4618@lists.php.net to get a copy of this message | ||
moacir Thu, 06 Aug 2009 05:09:44 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=286867
Log:
fixing bug #49120
Bug: http://bugs.php.net/49120 (Assigned) Chunking problem
Changed paths:
U phd/branches/PHD_ENTERPRISE/include/PhDIndex.class.php
U phd/branches/PHD_ENTERPRISE/packages/PHP/xhtml.php
Modified: phd/branches/PHD_ENTERPRISE/include/PhDIndex.class.php
===================================================================
--- phd/branches/PHD_ENTERPRISE/include/PhDIndex.class.php 2009-08-06 04:40:15 UTC (rev 286866)
+++ phd/branches/PHD_ENTERPRISE/include/PhDIndex.class.php 2009-08-06 05:09:44 UTC (rev 286867)
@@ -28,6 +28,9 @@
'legalnotice' => 'format_legalnotice_chunk',
'part' => 'format_container_chunk',
'phpdoc:exception' => 'format_container_chunk',
+ 'phpdoc:exceptionref' => 'format_container_chunk',
+ 'phpdoc:classref' => 'format_container_chunk',
+ 'phpdoc:varentry' => 'format_container_chunk',
'preface' => 'format_chunk',
'refentry' => 'format_chunk',
'reference' => 'format_container_chunk',
Modified: phd/branches/PHD_ENTERPRISE/packages/PHP/xhtml.php
===================================================================
--- phd/branches/PHD_ENTERPRISE/packages/PHP/xhtml.php 2009-08-06 04:40:15 UTC (rev 286866)
+++ phd/branches/PHD_ENTERPRISE/packages/PHP/xhtml.php 2009-08-06 05:09:44 UTC (rev 286867)
@@ -178,6 +178,9 @@
'personname' => 'format_personname',
'personblurb' => 'div',
'phrase' => 'span',
+ 'phpdoc:classref' => 'format_class_chunk',
+ 'phpdoc:exceptionref' => 'format_exception_chunk',
+ 'phpdoc:varentry' => 'format_varentry_chunk',
'preface' => 'format_chunk',
'primaryie' => 'format_suppressed_tags',
'procedure' => 'format_procedure',
@@ -342,6 +345,21 @@
'classsynopsis' =>
'format_classsynopsis_ooclass_classname_text',
),
),
+ 'methodname' => array(
+ /* DEFAULT */ false,
+ 'constructorsynopsis' => array(
+ /* DEFAULT */ false,
+ 'classsynopsis' =>
'format_classsynopsis_methodsynopsis_methodname_text',
+ ),
+ 'methodsynopsis' => array(
+ /* DEFAULT */ false,
+ 'classsynopsis' =>
'format_classsynopsis_methodsynopsis_methodname_text',
+ ),
+ 'destructorsynopsis' => array(
+ /* DEFAULT */ false,
+ 'classsynopsis' =>
'format_classsynopsis_methodsynopsis_methodname_text',
+ ),
+ ),
'para' => array(
/* DEFAULT */ false,
'footnote' => 'format_footnote_para_text',
@@ -856,7 +874,14 @@
}
public function format_exception_chunk($open, $name, $attrs, $props) {
return $this->format_container_chunk_below($open, "reference", $attrs,
$props);
+ }
+ public function format_varentry_chunk($open, $name, $attrs, $props) {
+ return $this->format_container_chunk_below($open, "refentry", $attrs, $props);
}
+ public function format_class_chunk($open, $name, $attrs, $props) {
+ return $this->format_container_chunk_below($open, "reference", $attrs,
$props);
+ }
+
public function format_section_chunk($open, $name, $attrs, $props) {
static $a = array();
if ($open) {
@@ -1075,7 +1100,26 @@
}
return '</b></span>';
}
+ public function format_classsynopsis_methodsynopsis_methodname_text($value, $tag) {
+ $value = $this->TEXT($value);
+ if ($this->cchunk["classsynopsis"]["classname"] === false) {
+ return $value;
+ }
+ if (strpos($value, '::')) {
+ $explode = '::';
+ } elseif (strpos($value, '->')) {
+ $explode = '->';
+ } else {
+ return $value;
+ }
+ list($class, $method) = explode($explode, $value);
+ if ($class !== $this->cchunk["classsynopsis"]["classname"]) {
+ return $value;
+ }
+ return $method;
+ }
+
public function format_varname($open, $name, $attrs) {
if ($open) {
return '<var class="'.$name.'">$';