phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgwapi/inc common_functions.inc.php,1.16.2.2,


From: Dave Hall <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc common_functions.inc.php,1.16.2.2,1.16.2.3
Date: Fri, 27 Jun 2003 02:59:14 -0400

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

Modified Files:
      Tag: Version-0_9_16-branch
        common_functions.inc.php 
Log Message:
prepend_tables_prefix patch from fixe

Index: common_functions.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/common_functions.inc.php,v
retrieving revision 1.16.2.2
retrieving revision 1.16.2.3
diff -C2 -r1.16.2.2 -r1.16.2.3
*** common_functions.inc.php    31 Mar 2003 20:41:53 -0000      1.16.2.2
--- common_functions.inc.php    27 Jun 2003 06:59:11 -0000      1.16.2.3
***************
*** 1063,1065 ****
--- 1063,1083 ----
                }
        }
+       
+       /*!
+        @function prepend_tables_prefix
+        @abstract prepend a prefix to an array of table names
+        @author Adam Hull (aka fixe) - No copyright claim
+        @param $prefix the string to be prepended
+        @param $tables and array of tables to have the prefix prepended to
+        @return array of table names with the prefix prepended
+       */
+                                                       
+       function prepend_tables_prefix($prefix,$tables)
+       {
+               foreach($tables as $key => $value)
+               {
+                       $tables[$key] = $prefix.$value;
+               }
+               return $tables;
+       }
  ?>





reply via email to

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