[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-gtk-doc
Subject:    [PHP-GTK-DOC] cvs: php-gtk-doc /updater updateMethods.php
From:       "Christian Weiske" <cweiske () php ! net>
Date:       2006-05-29 16:10:34
Message-ID: cvscweiske1148919034 () cvsserver
[Download RAW message or body]

cweiske		Mon May 29 16:10:34 2006 UTC

  Modified files:              
    /php-gtk-doc/updater	updateMethods.php 
  Log:
  Fixed alternative constructors function name
  
  
http://cvs.php.net/viewcvs.cgi/php-gtk-doc/updater/updateMethods.php?r1=1.9&r2=1.10&diff_format=u
Index: php-gtk-doc/updater/updateMethods.php
diff -u php-gtk-doc/updater/updateMethods.php:1.9 php-gtk-doc/updater/updateMethods.php:1.10
--- php-gtk-doc/updater/updateMethods.php:1.9	Mon May 29 14:10:22 2006
+++ php-gtk-doc/updater/updateMethods.php	Mon May 29 16:10:34 2006
@@ -115,7 +115,12 @@
             $xmlSynopsis = $doc->createElement('funcsynopsis', "\n    ");
             $xmlPrototype = $doc->createElement('funcprototype', "\n     ");
             $xmlFuncdef = $doc->createElement('funcdef', " ");
-            $xmlFunction = $doc->createElement('function', $daMethod);
+            if ($ismethod || $methodName == "__construct") {
+                $xmlFunction = $doc->createElement('function', $daMethod);
+            } else {
+                //alternative constructors need Classname::new_* as funcname
+                $xmlFunction = $doc->createElement('function', $classname . '::' . $daMethod);
+            }
 
             $xmlFuncdef->appendChild($xmlFunction);
             $xmlParamDefs = array();

-- 
PHP-GTK Documentation Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic