[limb-svn] r6999 - 3.x/trunk/limb/core/src

svn at limb-project.com svn at limb-project.com
Sun May 11 12:05:43 MSD 2008


Author: pachanga
Date: 2008-05-11 12:05:43 +0400 (Sun, 11 May 2008)
New Revision: 6999
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6999

Modified:
   3.x/trunk/limb/core/src/lmbDecorator.class.php
   3.x/trunk/limb/core/src/lmbDecoratorGenerator.class.php
Log:
-- removing ___invoke - a duplicate of __call method

Modified: 3.x/trunk/limb/core/src/lmbDecorator.class.php
===================================================================
--- 3.x/trunk/limb/core/src/lmbDecorator.class.php	2008-05-11 06:24:20 UTC (rev 6998)
+++ 3.x/trunk/limb/core/src/lmbDecorator.class.php	2008-05-11 08:05:43 UTC (rev 6999)
@@ -31,11 +31,6 @@
 
   function __call($method, $args = array())
   {
-    return $this->___invoke($method, $args);
-  }
-  
-  protected function ___invoke($method, $args = array())
-  {
     return call_user_func_array(array($this->original, $method), $args);
   }
 }

Modified: 3.x/trunk/limb/core/src/lmbDecoratorGenerator.class.php
===================================================================
--- 3.x/trunk/limb/core/src/lmbDecoratorGenerator.class.php	2008-05-11 06:24:20 UTC (rev 6998)
+++ 3.x/trunk/limb/core/src/lmbDecoratorGenerator.class.php	2008-05-11 08:05:43 UTC (rev 6999)
@@ -74,7 +74,7 @@
 
       $code .= "    " . lmbReflectionHelper :: getSignature($this->_class, $method) . " {\n";
       $code .= "        \$args = func_get_args();\n";
-      $code .= "        return \$this->___invoke(\"$method\", \$args);\n";
+      $code .= "        return \$this->__call(\"$method\", \$args);\n";
       $code .= "    }\n";
     }
     return $code;



More information about the limb-svn mailing list