Public bug reported:

if you use <php $aiki->class->method(foo, bar, baz) php>

it call $aiki->class->method("foo, bar, baz")

Sollution:
in php->aiki_function instead of:
$aiki->$class->$function($para);

use:
public function aiki_function($class,$function, $array) {
     ...
     call_user_func_array(array($aiki->$class, $function), $array);
     ...
}
and in php->parser
$php_output = $this->aiki_function($partial[1],
           $partial[2], $partial[3] ? preg_split("/\s*,\s*/", $partial[3]) : 
array());
}

But I don't know how this affect the other code and user extensions:
Are people using them?

** Affects: aikiframework
     Importance: Undecided
     Assignee: Jakub Jankiewicz (jcubic)
         Status: New

** Changed in: aikiframework
     Assignee: (unassigned) => Jakub Jankiewicz (jcubic)

** Description changed:

  if you use <php $aiki->class->method(foo, bar, baz) php>
  
  it call $aiki->class->method("foo, bar, baz")
  
  Sollution:
  in php->aiki_function instead of:
- $aiki->$class->$function($para); 
+ $aiki->$class->$function($para);
  
  use:
  public function aiki_function($class,$function, $array) {
-      ...
-      call_user_func_array(array($aiki->$class, $function), $array);
-      ...
+      ...
+      call_user_func_array(array($aiki->$class, $function), $array);
+      ...
  }
  and in php->parser
  $php_output = $this->aiki_function($partial[1],
-                                                                         
$partial[2], $partial[3] ? preg_split("/\s*,\s*/", $partial[3]) : array());
+            $partial[2], $partial[3] ? preg_split("/\s*,\s*/", $partial[3]) : 
array());
  }
  
  But I don't know how this affect the other code and user extensions:
  Are people using them?

-- 
You received this bug notification because you are a member of Aiki
Framework Developers, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/871905

Title:
  You can't use multiple arguments in calling API from a widget

Status in Aiki Framework:
  New

Bug description:
  if you use <php $aiki->class->method(foo, bar, baz) php>

  it call $aiki->class->method("foo, bar, baz")

  Sollution:
  in php->aiki_function instead of:
  $aiki->$class->$function($para);

  use:
  public function aiki_function($class,$function, $array) {
       ...
       call_user_func_array(array($aiki->$class, $function), $array);
       ...
  }
  and in php->parser
  $php_output = $this->aiki_function($partial[1],
             $partial[2], $partial[3] ? preg_split("/\s*,\s*/", $partial[3]) : 
array());
  }

  But I don't know how this affect the other code and user extensions:
  Are people using them?

To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/871905/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to