[Vtigercrm-commits] [vtiger-commits] r5586 - /vtigercrm/trunk/include/utils/CommonUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat Apr 29 09:03:56 EDT 2006
Author: don
Date: Sat Apr 29 07:03:52 2006
New Revision: 5586
Log:
Added new function getAllParenttabmoduleslist() for new Home Page UI
Modified:
vtigercrm/trunk/include/utils/CommonUtils.php
Modified: vtigercrm/trunk/include/utils/CommonUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/CommonUtils.php (original)
+++ vtigercrm/trunk/include/utils/CommonUtils.php Sat Apr 29 07:03:52 2006
@@ -2098,6 +2098,22 @@
$log->debug("Exiting getEntityName method ...");
}
+function getAllParenttabmoduleslist()
+{
+ global $adb;
+ $resultant_array = Array();
+ $query = 'select name,tablabel,parenttab_label from parenttabrel inner join tab on parenttabrel.tabid = tab.tabid in
+ner join parenttab on parenttabrel.parenttabid = parenttab.parenttabid order by parenttab.sequence';
+ $result = $adb->query($query);
+ for($i=0;$i<$adb->num_rows($result);$i++)
+ {
+ $parenttabname = $adb->query_result($result,$i,'parenttab_label');
+ $modulename = $adb->query_result($result,$i,'name');
+ $tablabel = $adb->query_result($result,$i,'tablabel');
+ $resultant_array[$parenttabname][] = Array($modulename,$tablabel);
+ }
+ return $resultant_array;
+}
?>
More information about the vtigercrm-commits
mailing list