svn: /phd/trunk/phpdotnet/phd/Package/IDE/ Functions.php

From: Date: Wed, 11 Nov 2009 03:14:13 +0000
Subject: svn: /phd/trunk/phpdotnet/phd/Package/IDE/ Functions.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5315@lists.php.net to get a copy of this message
moacir Wed, 11 Nov 2009 03:14:13 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290497 Log: Reads the content of returnvalues without the title 'Return Values' Changed paths: U phd/trunk/phpdotnet/phd/Package/IDE/Functions.php Modified: phd/trunk/phpdotnet/phd/Package/IDE/Functions.php =================================================================== --- phd/trunk/phpdotnet/phd/Package/IDE/Functions.php 2009-11-11 01:50:41 UTC (rev 290496) +++ phd/trunk/phpdotnet/phd/Package/IDE/Functions.php 2009-11-11 03:14:13 UTC (rev 290497) @@ -398,11 +398,19 @@ $content = "\n\n<return>\n"; $content .= "<type>" . $this->cchunk["return"]["type"] . "</type>\n"; $content .= "<description>"; - + //Read the description + $reader = ReaderKeeper::getReader(); + do { + $reader->read(); + //Skipping the title + if ($reader->nodeType === \XMLReader::ELEMENT && $reader->name != 'title') { + $content .= trim($reader->readContent()); + } + } while ($reader->name != 'refsect1'); + $content .= "</description>\n</return>\n"; + $this->cchunk["return"] = $this->dchunk["return"]; return $content; } - $this->cchunk["return"] = $this->dchunk["return"]; - return "</description>\n</return>\n"; } public function format_errors($open, $name, $attrs, $props) {

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