[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 3 /*+********************************************************************************** 4 * The contents of this file are subject to the vtiger CRM Public License Version 1.1 5 * ("License"); You may not use this file except in compliance with the License 6 * The Original Code is: vtiger CRM Open Source 7 * The Initial Developer of the Original Code is vtiger. 8 * Portions created by vtiger are Copyright (C) vtiger. 9 * All Rights Reserved. 10 ************************************************************************************/ 11 12 class Settings_MailConverter_RuleField_Model extends Vtiger_Field_Model { 13 14 public function getFieldDataType() { 15 return $this->get('datatype'); 16 } 17 18 public function getPickListValues() { 19 $fieldName = $this->getName(); 20 $pickListValues = array(); 21 if($fieldName == 'subject') { 22 $optionList = array('Contains', 'Not Contains', 'Equals', 'Not Equals', 'Has Ticket Number', 'Begins With', 'Ends With', 'Regex'); 23 foreach($optionList as $option) { 24 $pickListValues[$option] = vtranslate($option, 'Settings::MailConverter'); 25 } 26 }else if ($fieldName == 'body') { 27 $optionList = array('Contains', 'Not Contains', 'Equals', 'Not Equals', 'Begins With', 'Ends With'); 28 foreach($optionList as $option) { 29 $pickListValues[$option] = vtranslate($option, 'Settings::MailConverter'); 30 } 31 } else if ($fieldName == 'action') { 32 $optionList = array('CREATE_HelpDesk_FROM', 'UPDATE_HelpDesk_SUBJECT', 'CREATE_Leads_SUBJECT', 'CREATE_Contacts_SUBJECT', 'CREATE_Accounts_SUBJECT', 'LINK_Contacts_FROM', 'LINK_Contacts_TO', 'LINK_Leads_FROM', 'LINK_Leads_TO', 'LINK_Accounts_FROM', 'LINK_Accounts_TO'); 33 foreach ($optionList as $option) { 34 $pickListValues[$option] = vtranslate($option, 'Settings::MailConverter'); 35 } 36 } 37 return $pickListValues; 38 } 39 40 public function getRadioOptions() { 41 $fieldName = $this->getName(); 42 if($fieldName == 'matchusing') { 43 $options['AND'] = vtranslate('LBL_ALL_CONDITIONS','Settings::MailConverter'); 44 $options['OR'] = vtranslate('LBL_ANY_CONDITIONS','Settings::MailConverter'); 45 } 46 return $options; 47 } 48 } 49 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |