phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: infolog/inc class.boinfolog.inc.php,1.14.2.3.2.


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] CVS: infolog/inc class.boinfolog.inc.php,1.14.2.3.2.3,1.14.2.3.2.4 class.soinfolog.inc.php,1.10.2.1.2.2,1.10.2.1.2.3
Date: Tue, 01 Apr 2003 20:45:17 -0500

Update of /cvsroot/phpgroupware/infolog/inc
In directory subversions:/tmp/cvs-serv7961/infolog/inc

Modified Files:
      Tag: Version-0_9_16-branch
        class.boinfolog.inc.php class.soinfolog.inc.php 
Log Message:
More updates porting functions over for XML-RPC


Index: class.boinfolog.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/infolog/inc/class.boinfolog.inc.php,v
retrieving revision 1.14.2.3.2.3
retrieving revision 1.14.2.3.2.4
diff -C2 -r1.14.2.3.2.3 -r1.14.2.3.2.4
*** class.boinfolog.inc.php     1 Apr 2003 02:17:00 -0000       1.14.2.3.2.3
--- class.boinfolog.inc.php     2 Apr 2003 01:45:14 -0000       1.14.2.3.2.4
***************
*** 142,145 ****
--- 142,154 ----
                                'description' => 'Returns the values of the id 
number passed'
                        );
+ 
+                       $this->xmlrpc_methods[] = array(
+                               'name'        => 'delete',
+                               'description' => 'Delete a record'
+                       );
+                       $this->xmlrpc_methods[] = array(
+                               'name'        => 'write',
+                               'description' => 'Create or update a record'
+                       );
                }
  
***************
*** 260,264 ****
                        $this->delete_attached($info_id);
  
!                       $this->so->delete($info_id);
                }
  
--- 269,273 ----
                        $this->delete_attached($info_id);
  
!                       return $this->so->delete($info_id);
                }
  
***************
*** 283,287 ****
                                $values['from'] = $this->addr2name( 
$this->readAddr( $values['addr_id'] ));
                        }
!                       $this->so->write($values);
                }
  
--- 292,297 ----
                                $values['from'] = $this->addr2name( 
$this->readAddr( $values['addr_id'] ));
                        }
! 
!                       return $this->so->write($values);
                }
  

Index: class.soinfolog.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/infolog/inc/class.soinfolog.inc.php,v
retrieving revision 1.10.2.1.2.2
retrieving revision 1.10.2.1.2.3
diff -C2 -r1.10.2.1.2.2 -r1.10.2.1.2.3
*** class.soinfolog.inc.php     1 Apr 2003 01:52:56 -0000       1.10.2.1.2.2
--- class.soinfolog.inc.php     2 Apr 2003 01:45:14 -0000       1.10.2.1.2.3
***************
*** 191,194 ****
--- 191,196 ----
                                $this->init( );
                        }
+ 
+                       return ($this->db->affected_rows() ? True : False);
                }
  
***************
*** 228,231 ****
--- 230,234 ----
                                }
                        }
+ 
                        if ($values['info_id'])
                        {
***************
*** 233,236 ****
--- 236,241 ----
                                $this->db->query($query,__LINE__,__FILE__);     
    
                                $this->data['info_id'] = $values['info_id'];
+ 
+                               return (int)$values['info_id'];
                        }
                        else
***************
*** 239,242 ****
--- 244,248 ----
                                $this->db->query($query,__LINE__,__FILE__);
                                
$this->data['info_id']=$this->db->get_last_insert_id('phpgw_infolog','info_id');
+                               return 
(int)$this->db->get_last_insert_id('phpgw_infolog','info_id');
                        }
                }





reply via email to

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