phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgwapi/inc class.accounts_shared.inc.php,1.48.


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.accounts_shared.inc.php,1.48.2.2,1.48.2.2.2.1 class.accounts_sql.inc.php,1.80.2.8.2.1,1.80.2.8.2.2 class.applications.inc.php,1.45.2.1.2.1,1.45.2.1.2.2
Date: Mon, 31 Mar 2003 20:37:35 -0500

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv17633/phpgwapi/inc

Modified Files:
      Tag: Version-0_9_16-branch
        class.accounts_shared.inc.php class.accounts_sql.inc.php 
        class.applications.inc.php 
Log Message:
Porting some functions over to work with the new xmlrpc.php


Index: class.accounts_shared.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.accounts_shared.inc.php,v
retrieving revision 1.48.2.2
retrieving revision 1.48.2.2.2.1
diff -C2 -r1.48.2.2 -r1.48.2.2.2.1
*** class.accounts_shared.inc.php       18 Dec 2002 00:22:24 -0000      1.48.2.2
--- class.accounts_shared.inc.php       1 Apr 2003 01:37:33 -0000       
1.48.2.2.2.1
***************
*** 73,78 ****
        class accounts extends accounts_
        {
!               var $memberships = Array();
!               var $members = Array();
  
                
/**************************************************************************\
--- 73,79 ----
        class accounts extends accounts_
        {
!               var $memberships    = array();
!               var $members        = array();
!               var $xmlrpc_methods = array();
  
                
/**************************************************************************\
***************
*** 101,104 ****
--- 102,118 ----
                                $this->group_context = 
$GLOBALS['phpgw_info']['server']['ldap_group_context'];
                        }
+ 
+                       $this->xmlrpc_methods[] = array(
+                               'name'        => 'get_list',
+                               'description' => 'Returns a list of accounts 
and/or groups'
+                       );
+                       $this->xmlrpc_methods[] = array(
+                               'name'        => 'name2id',
+                               'description' => 'Cross reference account_lid 
with account_id'
+                       );
+                       $this->xmlrpc_methods[] = array(
+                               'name'        => 'id2name',
+                               'description' => 'Cross reference account_id 
with account_lid'
+                       );
                }
  

Index: class.accounts_sql.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.accounts_sql.inc.php,v
retrieving revision 1.80.2.8.2.1
retrieving revision 1.80.2.8.2.2
diff -C2 -r1.80.2.8.2.1 -r1.80.2.8.2.2
*** class.accounts_sql.inc.php  26 Mar 2003 22:55:48 -0000      1.80.2.8.2.1
--- class.accounts_sql.inc.php  1 Apr 2003 01:37:33 -0000       1.80.2.8.2.2
***************
*** 125,128 ****
--- 125,139 ----
                function get_list($_type='both',$start = '',$sort = '', $order 
= '', $query = '', $offset = '')
                {
+                       // For XML-RPC
+ /*                    if (is_array($_type))
+                       {
+                               $p      = $_type;
+                               $_type  = $p[0]['type'];
+                               $start  = $p[0]['start'];
+                               $order  = $p[0]['order'];
+                               $query  = $p[0]['query'];
+                               $offset = $p[0]['offset'];
+                       }
+ */
                        if (! $sort)
                        {

Index: class.applications.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.applications.inc.php,v
retrieving revision 1.45.2.1.2.1
retrieving revision 1.45.2.1.2.2
diff -C2 -r1.45.2.1.2.1 -r1.45.2.1.2.2
*** class.applications.inc.php  26 Mar 2003 22:55:48 -0000      1.45.2.1.2.1
--- class.applications.inc.php  1 Apr 2003 01:37:33 -0000       1.45.2.1.2.2
***************
*** 36,39 ****
--- 36,40 ----
                        'read'         => True
                );
+               var $xmlrpc_methods = array();
  
                
/**************************************************************************\
***************
*** 50,53 ****
--- 51,59 ----
                        $this->db = $GLOBALS['phpgw']->db;
                        $this->account_id = get_account_id($account_id);
+ 
+                       $this->xmlrpc_methods[] = array(
+                               'name'        => 'read',
+                               'description' => 'Return a list of applications 
the current user has access to'
+                       );
                }
  
***************
*** 330,333 ****
--- 336,340 ----
                        }
                }
+ 
                function id2name($id)
                {





reply via email to

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