[Vtigercrm-commits] [vtiger-commits] r5612 - /vtigercrm/trunk/modules/Faq/Faq.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 1 05:06:31 EDT 2006
Author: don
Date: Mon May 1 03:06:27 2006
New Revision: 5612
Log:
logs entry has been included in all functions
Modified:
vtigercrm/trunk/modules/Faq/Faq.php
Modified: vtigercrm/trunk/modules/Faq/Faq.php
==============================================================================
--- vtigercrm/trunk/modules/Faq/Faq.php (original)
+++ vtigercrm/trunk/modules/Faq/Faq.php Mon May 1 03:06:27 2006
@@ -84,9 +84,11 @@
var $default_sort_order = 'DESC';
function Faq() {
- $this->log =LoggerManager::getLogger('account');
+ $this->log =LoggerManager::getLogger('faq');
+ $this->log->debug("Entering Faq() method ...");
$this->db = new PearDatabase();
$this->column_fields = getColumnFields('Faq');
+ $this->log->debug("Exiting Faq method ...");
}
/** Function to get the list of comments for the given FAQ id
@@ -95,13 +97,18 @@
**/
function getFAQComments($faqid)
{
+ global $log;
+ $log->debug("Entering getFAQComments(".$faqid.") method ...");
global $mod_strings;
$sql = "select * from faqcomments where faqid=".$faqid;
$result = $this->db->query($sql);
$noofrows = $this->db->num_rows($result);
if($noofrows == 0)
+ {
+ $log->debug("Exiting getFAQComments method ...");
return '';
+ }
$list .= '<div style="overflow: scroll;height:150;width:100%;">';
for($i=0;$i<$noofrows;$i++)
@@ -116,6 +123,7 @@
}
}
$list .= '</div>';
+ $log->debug("Exiting getFAQComments method ...");
return $list;
}
More information about the vtigercrm-commits
mailing list