- Entity Display Name for the record */ public function getDisplayName() { return Vtiger_Util_Helper::getLabel($this->getId()); } /** * Function to get URL for Convert FAQ * @return */ public function getConvertFAQUrl() { return "index.php?module=".$this->getModuleName()."&action=ConvertFAQ&record=".$this->getId(); } /** * Function to get Comments List of this Record * @return */ public function getCommentsList() { $db = PearDatabase::getInstance(); $commentsList = array(); $result = $db->pquery("SELECT commentcontent AS comments FROM vtiger_modcomments WHERE related_to = ?", array($this->getId())); $numOfRows = $db->num_rows($result); for ($i=0; $i<$numOfRows; $i++) { array_push($commentsList, $db->query_result($result, $i, 'comments')); } return $commentsList; } }