cvs: pear /PhpDocumentor package.xml package2.xml /PhpDocumentor/phpDocumentor IntermediateParser.inc ParserDocBlock.inc /PhpDocumentor/scripts
create_package.xml.php
| From: | Greg Beaver | Date: | Sat, 25 Feb 2006 04:53:09 +0000 |
| Subject: | cvs: pear /PhpDocumentor package.xml package2.xml /PhpDocumentor/phpDocumentor IntermediateParser.inc ParserDocBlock.inc /PhpDocumentor/scripts create_package.xml.php |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38577@lists.php.net to get a copy of this message | ||
cellog Sat Feb 25 04:53:09 2006 UTC
Modified files:
/pear/PhpDocumentor package.xml package2.xml
/pear/PhpDocumentor/phpDocumentor IntermediateParser.inc
ParserDocBlock.inc
/pear/PhpDocumentor/scripts create_package.xml.php
Log:
fix sourceforge bug
[ 1016927 ] no highlight for paramtype in header of function
http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/package.xml?r1=1.26&r2=1.27&diff_format=u
Index: pear/PhpDocumentor/package.xml
diff -u pear/PhpDocumentor/package.xml:1.26 pear/PhpDocumentor/package.xml:1.27
--- pear/PhpDocumentor/package.xml:1.26 Sat Feb 25 03:59:44 2006
+++ pear/PhpDocumentor/package.xml Sat Feb 25 04:53:08 2006
@@ -141,6 +141,7 @@
[ 962319 ] Define : don't show the assigned value
[ 977674 ] Parser error
[ 989258 ] wrong interfaces parsing
+ [ 1016927 ] no highlight for paramtype in header of function
[ 1108018 ] Bad source code after /**#@-*/
[ 1145403 ] Call to a member function on a non-object
[ 1150809 ] Infinite loop when class extends itself
@@ -2438,6 +2439,7 @@
[ 962319 ] Define : don't show the assigned value
[ 977674 ] Parser error
[ 989258 ] wrong interfaces parsing
+ [ 1016927 ] no highlight for paramtype in header of function
[ 1108018 ] Bad source code after /**#@-*/
[ 1145403 ] Call to a member function on a non-object
[ 1150809 ] Infinite loop when class extends itself
http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/package2.xml?r1=1.18&r2=1.19&diff_format=u
Index: pear/PhpDocumentor/package2.xml
diff -u pear/PhpDocumentor/package2.xml:1.18 pear/PhpDocumentor/package2.xml:1.19
--- pear/PhpDocumentor/package2.xml:1.18 Sat Feb 25 03:59:44 2006
+++ pear/PhpDocumentor/package2.xml Sat Feb 25 04:53:08 2006
@@ -64,7 +64,7 @@
<active>yes</active>
</developer>
<date>2006-02-24</date>
- <time>21:59:08</time>
+ <time>22:52:33</time>
<version>
<release>1.3.0RC6</release>
<api>1.3.0</api>
@@ -144,6 +144,7 @@
[ 962319 ] Define : don't show the assigned value
[ 977674 ] Parser error
[ 989258 ] wrong interfaces parsing
+ [ 1016927 ] no highlight for paramtype in header of function
[ 1108018 ] Bad source code after /**#@-*/
[ 1145403 ] Call to a member function on a non-object
[ 1150809 ] Infinite loop when class extends itself
@@ -2603,6 +2604,7 @@
[ 962319 ] Define : don't show the assigned value
[ 977674 ] Parser error
[ 989258 ] wrong interfaces parsing
+ [ 1016927 ] no highlight for paramtype in header of function
[ 1108018 ] Bad source code after /**#@-*/
[ 1145403 ] Call to a member function on a non-object
[ 1150809 ] Infinite loop when class extends itself
http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/IntermediateParser.inc?r1=1.2&r2=1.3&diff_format=u
Index: pear/PhpDocumentor/phpDocumentor/IntermediateParser.inc
diff -u pear/PhpDocumentor/phpDocumentor/IntermediateParser.inc:1.2
pear/PhpDocumentor/phpDocumentor/IntermediateParser.inc:1.3
--- pear/PhpDocumentor/phpDocumentor/IntermediateParser.inc:1.2 Sun Nov 20 19:26:12 2005
+++ pear/PhpDocumentor/phpDocumentor/IntermediateParser.inc Sat Feb 25 04:53:08 2006
@@ -22,7 +22,7 @@
* The Intermediary Data Parser (intermediate between Parse and Converter)
*
* @author Gregory Beaver
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
* @copyright 2002 Gregory Beaver
* @package phpDocumentor
*/
@@ -42,7 +42,7 @@
* $docblock parameter of the parserElement
* descendant object.
* @author Gregory Beaver
- * @version $Id: IntermediateParser.inc,v 1.2 2005/11/20 19:26:12 cellog Exp $
+ * @version $Id: IntermediateParser.inc,v 1.3 2006/02/25 04:53:08 cellog Exp $
* @copyright 2002 Gregory Beaver
* @package phpDocumentor
*/
@@ -650,7 +650,7 @@
}
foreach($data->listParams() as $param)
{
- $update_params[] = $param[0];
+ $update_params[] = $param;
}
foreach($data->listGlobals() as $param)
{
@@ -751,7 +751,7 @@
foreach($data->listParams() as $param)
{
- $update_params[] = $param[0];
+ $update_params[] = $param;
}
foreach($data->listGlobals() as $param)
{
http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/ParserDocBlock.inc?r1=1.2&r2=1.3&diff_format=u
Index: pear/PhpDocumentor/phpDocumentor/ParserDocBlock.inc
diff -u pear/PhpDocumentor/phpDocumentor/ParserDocBlock.inc:1.2
pear/PhpDocumentor/phpDocumentor/ParserDocBlock.inc:1.3
--- pear/PhpDocumentor/phpDocumentor/ParserDocBlock.inc:1.2 Fri Feb 24 03:47:19 2006
+++ pear/PhpDocumentor/phpDocumentor/ParserDocBlock.inc Sat Feb 25 04:53:08 2006
@@ -28,7 +28,7 @@
* @subpackage ParserDocBlock
* @author Greg Beaver <cellog@users.sourceforge.net>
* @since 1.0rc1
- * @version $Id: ParserDocBlock.inc,v 1.2 2006/02/24 03:47:19 cellog Exp $
+ * @version $Id: ParserDocBlock.inc,v 1.3 2006/02/25 04:53:08 cellog Exp $
*/
class parserDesc extends parserStringWithInlineTags
{
@@ -110,7 +110,7 @@
* @subpackage ParserDocBlock
* @author Greg Beaver <cellog@users.sourceforge.net>
* @since 1.0rc1
- * @version $Id: ParserDocBlock.inc,v 1.2 2006/02/24 03:47:19 cellog Exp $
+ * @version $Id: ParserDocBlock.inc,v 1.3 2006/02/25 04:53:08 cellog Exp $
*/
class parserDocBlock
{
@@ -506,12 +506,17 @@
else
$this->params[$paramVar] = new parserParamTag($paramType,$value);
}
-
+
+ function resetParams()
+ {
+ $this->params = array();
+ }
/**
* @param integer $index index of parameter in the {@link $params} array
* @param string $name name of the parameter to set in the $params array
+ * @param string|null $type type of the parameter
*/
- function changeParam($index,$name)
+ function changeParam($index, $name, $type)
{
$this->params[$name] = $this->params[$index];
unset($this->params[$index]);
@@ -519,17 +524,36 @@
/**
* replaces nameless parameters in the {@link $params} array with their names
- * @param array $params Format: array(parameter index => parameter name,...)
+ * add @param tags for params in the function with no entry
+ * @param array $params Format: array(parameter key =>
+ * array(0 => parameter name[,1 => default value][,2 => type
hint]),...)
*/
function updateParams($params)
{
- for($i=0;$i<count($params);$i++)
+ $countparams = array_values($params);
+ reset($params);
+ for($i=0;$i<count($countparams);$i++, next($params))
{
if (isset($this->params[$i]))
{
- $this->changeParam($i,$params[$i]);
+ $info = current($params);
+ $type = isset($info[2]) ? $info[2] : null;
+ $this->changeParam($i, key($params), $type);
+ $params[key($params)] = false;
}
}
+ $blank = new parserStringWithInlineTags;
+ foreach ($params as $key => $info) {
+ if (!$info) {
+ continue;
+ }
+ $type = isset($info[2]) ? $info[2] : null;
+ if (!isset($this->params[$info[0]])) {
+ $this->addParam($info[0], $type, $blank);
+ }
+ }
+ reset($params);
+
if (isset($this->tags))
unset($this->tags['param']);
}
http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/scripts/create_package.xml.php?r1=1.27&r2=1.28&diff_format=u
Index: pear/PhpDocumentor/scripts/create_package.xml.php
diff -u pear/PhpDocumentor/scripts/create_package.xml.php:1.27
pear/PhpDocumentor/scripts/create_package.xml.php:1.28
--- pear/PhpDocumentor/scripts/create_package.xml.php:1.27 Sat Feb 25 03:59:45 2006
+++ pear/PhpDocumentor/scripts/create_package.xml.php Sat Feb 25 04:53:09 2006
@@ -76,6 +76,7 @@
[ 962319 ] Define : don\'t show the assigned value
[ 977674 ] Parser error
[ 989258 ] wrong interfaces parsing
+ [ 1016927 ] no highlight for paramtype in header of function
[ 1108018 ] Bad source code after /**#@-*/
[ 1145403 ] Call to a member function on a non-object
[ 1150809 ] Infinite loop when class extends itself