- Template Name */ public function getTemplateName() { return 'uitypes/Boolean.tpl'; } /** * Function to get the Display Value, for the current field type with given DB Insert Value * @param $value * @return */ public function getDisplayValue($value) { if($value == 1 || $value == '1' || strtolower($value) == 'on') { return Vtiger_Language_Handler::getTranslatedString('LBL_YES', $this->get('field')->getModuleName()); } return Vtiger_Language_Handler::getTranslatedString('LBL_NO', $this->get('field')->getModuleName()); } public function getListSearchTemplateName() { return 'uitypes/BooleanFieldSearchView.tpl'; } }