Author: chrisk
Date: 2010-02-20 15:11:40 +0100 (Sat, 20 Feb 2010)
New Revision: 28149

Modified:
   
plugins/ckWebServicePlugin/branches/1.3/lib/task/ckWebServiceGenerateWsdlTask.class.php
Log:
[ckWebServicePlugin] applied patch contributed by Iwan van Staveren;

Modified: 
plugins/ckWebServicePlugin/branches/1.3/lib/task/ckWebServiceGenerateWsdlTask.class.php
===================================================================
--- 
plugins/ckWebServicePlugin/branches/1.3/lib/task/ckWebServiceGenerateWsdlTask.class.php
     2010-02-20 14:02:31 UTC (rev 28148)
+++ 
plugins/ckWebServicePlugin/branches/1.3/lib/task/ckWebServiceGenerateWsdlTask.class.php
     2010-02-20 14:11:40 UTC (rev 28149)
@@ -264,6 +264,7 @@
     {
       $this->getFilesystem()->remove($pathname);
     }
+
     $this->getFilesystem()->copy($template, $pathname);
     $this->getFilesystem()->replaceTokens($pathname, '##', '##', array(
       'HND_NAME'   => $handler_name,
@@ -281,13 +282,13 @@
   protected function buildHandlerMethods($methods)
   {
     $result = array();
-    $append_dollar = create_function('&$in', '$in = "$".$in;');
+    $prepend_dollar = create_function('&$in', '$in = "$".$in;');
 
     foreach($methods as $name => $params)
     {
-      array_walk($params['parameter'], $append_dollar);
+      array_walk($params['parameter'], $prepend_dollar);
 
-      $result[] = $this->replaceTokens($this->getHandlerMethodTemplate(), 
array(
+      $result[] = 
$this->replaceTokensInString($this->getHandlerMethodTemplate(), array(
        'NAME'   => $name,
        'MODULE' => $params['module'],
        'ACTION' => $params['action'],
@@ -323,7 +324,7 @@
    *
    * @return string The string with the tokens replaced
    */
-  protected function replaceTokens($str, $tokens, $start_delimiter, 
$end_delimiter)
+  protected function replaceTokensInString($str, $tokens, $start_delimiter, 
$end_delimiter)
   {
     $result = $str;
 

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to