phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/inc class.ofphpgwapi.inc.php,1.3


From: fipsfuchs
Subject: [Phpgroupware-cvs] phpgwapi/inc class.ofphpgwapi.inc.php,1.3
Date: Thu, 19 May 2005 12:05:00 +0200

Update of phpgwapi/inc

Modified Files:
     Branch: MAIN
            class.ofphpgwapi.inc.php lines: +5 -5

Log Message:
create a account object with a constructor _and_ params

====================================================
Index: phpgwapi/inc/class.ofphpgwapi.inc.php
diff -u phpgwapi/inc/class.ofphpgwapi.inc.php:1.2 
phpgwapi/inc/class.ofphpgwapi.inc.php:1.3
--- phpgwapi/inc/class.ofphpgwapi.inc.php:1.2   Mon May  2 08:01:17 2005
+++ phpgwapi/inc/class.ofphpgwapi.inc.php       Thu May 19 10:05:27 2005
@@ -106,7 +106,7 @@
                        }
                }

-               function CreateAccountObject()
+               function CreateAccountObject($account_id, $account_type)
                {
                        
include_once(PHPGW_API_INC.'/accounts/class.accounts_.inc.php');

@@ -114,17 +114,17 @@
                        {
                                case 'ldap':
                                include_once(PHPGW_API_INC . 
'/accounts/class.accounts_ldap.inc.php');
-                               return new Accounts_LDAP ($account_id, 
$account_type);
+                               return new Accounts_LDAP($account_id, 
$account_type);
                                break;

                                case 'sqlldap':
                                include_once(PHPGW_API_INC . 
'/accounts/class.accounts_SQLLDAP.inc.php');
-                               return new Accounts_SQLLDAP ($account_id, 
$account_type);
+                               return new Accounts_SQLLDAP($account_id, 
$account_type);
                                break;

                                default:
                                include_once(PHPGW_API_INC . 
'/accounts/class.accounts_sql.inc.php');
-                               return new Accounts_sql ($account_id, 
$account_type);
+                               return new Accounts_sql($account_id, 
$account_type);
                        }
                }







reply via email to

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