phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgroupware xmlrpc.php,1.11.4.2,1.11.4.3


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgroupware xmlrpc.php,1.11.4.2,1.11.4.3
Date: Mon, 31 Mar 2003 18:18:22 -0500

Update of /cvsroot/phpgroupware/phpgroupware
In directory subversions:/tmp/cvs-serv5349

Modified Files:
      Tag: Version-0_9_16-branch
        xmlrpc.php 
Log Message:
- Calling a method will now accept multiable parameters
- If you are passing only 1 parameters, its sent as the orginal type, not 
casted as an array,
but arrays will still work as intended


Index: xmlrpc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/xmlrpc.php,v
retrieving revision 1.11.4.2
retrieving revision 1.11.4.3
diff -C2 -r1.11.4.2 -r1.11.4.3
*** xmlrpc.php  31 Mar 2003 22:35:26 -0000      1.11.4.2
--- xmlrpc.php  31 Mar 2003 23:18:19 -0000      1.11.4.3
***************
*** 55,59 ****
                        list($app,$class,$func) = explode('.',$method);
  
!                       if ($method == 'system.logout' || 
$GLOBALS['phpgw_info']['user']['apps'][$app])
                        {
                                $GLOBALS['obj'] = CreateObject($app . '.' . 
$class);
--- 55,59 ----
                        list($app,$class,$func) = explode('.',$method);
  
!                       if ($method == 'system.logout' || 
$GLOBALS['phpgw_info']['user']['apps'][$app] || $app == 'phpgwapi')
                        {
                                $GLOBALS['obj'] = CreateObject($app . '.' . 
$class);
***************
*** 170,174 ****
                $a = explode('.',$method_name);
  
!               $return = $GLOBALS['obj']->$a[2]($parameters);
  
                // This needs to be expanded and more fully tested
--- 170,185 ----
                $a = explode('.',$method_name);
  
!               if (count($parameters) == 1)
!               {
!                       $return = $GLOBALS['obj']->$a[2]($parameters[0]);
!               }
!               else
!               {
!                       for ($i=0; $i<count($parameters); $i++)
!                       {
!                               $p[] = '$parameters[' . $i . ']';
!                       }
!                       eval('$return = $GLOBALS[\'obj\']->$a[2](' . 
implode(',',$p) . ');');
!               }
  
                // This needs to be expanded and more fully tested





reply via email to

[Prev in Thread] Current Thread [Next in Thread]