[ 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_Field_Model extends Vtiger_Field_Model { 13 14 public static $timeZonePickListValues = array(' '=>'LBL_I_DONT_KNOW', 15 '-12:00' => '(GMT -12:00 hours) Eniwetok, Kwajalein', 16 '-11:00' => '(GMT -11:00 hours) Midway Island, Samoa', 17 '-10:00' => '(GMT -10:00 hours) Hawaii', 18 '-9:00' => '(GMT -9:00 hours) Alaska', 19 '-8:00'=>'(GMT -8:00 hours) Pacific Time (US & Canada)', 20 '-7:00'=>'(GMT -7:00 hours) Mountain Time (US & Canada)', 21 '-6:00' => '(GMT -6:00 hours) Central Time (US & Canada), Mexico City', 22 '-5:00' =>'(GMT -5:00 hours) Eastern Time (US & Canada), Bogota, Lima, Quito', 23 '-4:00' => '(GMT -4:00 hours) Atlantic Time (Canada), Caracas, La Paz', 24 '-3:30' =>'(GMT -3:30 hours) Newfoundland', 25 '-3:00' => '(GMT -3:00 hours) Brazil, Buenos Aires, Georgetown', 26 '-2:00' => '(GMT -2:00 hours) Mid-Atlantic', 27 '-1:00' => '(GMT -1:00 hours) Azores, Cape Verde Islands', 28 '0:00' =>'(GMT) Western Europe Time, London, Lisbon, Casablanca, Monrovia', 29 '+1:00' => '(GMT +1:00 hours) CET(Central Europe Time), Brussels, Copenhagen, Madrid, Paris', 30 '+2:00' => '(GMT +2:00 hours) EET(Eastern Europe Time), Kaliningrad, South Africa', 31 '+3:00' => '(GMT +3:00 hours) Baghdad, Kuwait, Riyadh, Moscow, St. Petersburg, Volgograd, Nairobi', 32 '+3:30' => '(GMT +3:30 hours) Tehran', 33 '+4:00' => '{GMT +4:00 hours) Abu Dhabi, Muscat, Baku, Tbilisi', 34 '+4:30' => '(GMT +4:30 hours) Kabul]', 35 '+5:00' => '(GMT +5:00 hours) Ekaterinburg, Islamabad, Karachi, Tashkent', 36 '+5:30' => '(GMT +5:30 hours) Bombay, Calcutta, Madras, New Delhi', 37 '+6:00' => '(GMT +6:00 hours) Almaty, Dhaka, Colombo', 38 '+7:00' => '(GMT +7:00 hours) Bangkok, Hanoi, Jakarta', 39 '+8:00' => '(GMT +8:00 hours) Beijing, Perth, Singapore, Hong Kong, Chongqing, Urumqi, Taipei', 40 '+9:00' => '(GMT +9:00 hours) Tokyo, Seoul, Osaka, Sapporo, Yakutsk', 41 '+9:30' => '(GMT +9:30 hours) Adelaide, Darwin', 42 '+10:00' => '(GMT +10:00 hours) EAST(East Australian Standard), Guam, Papua New Guinea, Vladivostok', 43 '+11:00' => '(GMT +11:00 hours) Magadan, Solomon Islands, New Caledonia', 44 '+12:00' => '(GMT +12:00 hours) Auckland, Wellington, Fiji, Kamchatka, Marshall Island'); 45 46 47 public function getFieldDataType() { 48 return $this->get('datatype'); 49 } 50 51 public function getPickListValues() { 52 $fieldName = $this->getName(); 53 $pickListValues = array(); 54 if($fieldName == 'searchfor') { 55 $optionList = array('ALL','UNSEEN'); 56 foreach($optionList as $option) { 57 $pickListValues[$option] = vtranslate($option, 'Settings::MailConverter'); 58 } 59 }else if ($fieldName == 'markas') { 60 $optionList = array('UNSEEN','SEEN'); 61 foreach($optionList as $option) { 62 $pickListValues[$option] = vtranslate($option, 'Settings::MailConverter'); 63 } 64 }else if ($fieldName == 'time_zone') { 65 $pickListValues = self::$timeZonePickListValues; 66 67 } 68 return $pickListValues; 69 } 70 71 public function getRadioOptions() { 72 $fieldName = $this->getName(); 73 if($fieldName == 'ssltype') { 74 $options['notls'] = vtranslate('No TLS','Settings::MailConverter'); 75 $options['tls'] = vtranslate('TLS','Settings::MailConverter'); 76 $options['ssl'] = vtranslate('SSL','Settings::MailConverter'); 77 } 78 elseif($fieldName == 'sslmethod') { 79 $options['validate-cert'] = vtranslate('Validate SSL Certificate','Settings::MailConverter'); 80 $options['novalidate-cert'] = vtranslate('Do Not Validate SSL Certificate','Settings::MailConverter'); 81 } 82 else if($fieldName == 'protocol') { 83 $options['imap'] = vtranslate('IMAP2', 'Settings::MailConverter'); 84 $options['imap4'] = vtranslate('IMAP4', 'Settings::MailConverter'); 85 } 86 return $options; 87 } 88 89 public function isEditable() { 90 if(!property_exists($this, 'isEditable')){ 91 return true; 92 } 93 return $this->isEditable; 94 } 95 96 97 }
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 |