3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
12 use Civi\Token\TokenProcessor
;
15 * One place to store frequently used values in Select Elements. Note that
16 * some of the below elements will be dynamic, so we'll probably have a
17 * smart caching scheme on a per domain basis
20 * @copyright CiviCRM LLC https://civicrm.org/licensing
22 class CRM_Core_SelectValues
{
29 public static function boolean() {
37 * Preferred mail format.
41 public static function pmf() {
54 public static function privacy() {
56 'do_not_phone' => ts('Do not phone'),
57 'do_not_email' => ts('Do not email'),
58 'do_not_mail' => ts('Do not mail'),
59 'do_not_sms' => ts('Do not sms'),
60 'do_not_trade' => ts('Do not trade'),
61 'is_opt_out' => ts('No bulk emails (User Opt Out)'),
66 * Various pre defined contact super types.
70 public static function contactType() {
71 return CRM_Contact_BAO_ContactType
::basicTypePairs();
75 * Various pre defined unit list.
77 * @param string $unitType
80 public static function unitList($unitType = NULL) {
83 'month' => ts('month'),
86 if ($unitType === 'duration') {
87 $unitList['lifetime'] = ts('lifetime');
93 * Membership type unit.
97 public static function membershipTypeUnitList() {
98 return self
::unitList('duration');
102 * Various pre defined period types.
106 public static function periodType() {
108 'rolling' => ts('Rolling'),
109 'fixed' => ts('Fixed'),
114 * Various pre defined email selection methods.
118 public static function emailSelectMethods() {
120 'automatic' => ts('Automatic'),
121 'location-only' => ts('Only send to email addresses assigned to the specified location'),
122 'location-prefer' => ts('Prefer email addresses assigned to the specified location'),
123 'location-exclude' => ts('Exclude email addresses assigned to the specified location'),
128 * Various pre defined member visibility options.
132 public static function memberVisibility() {
134 'Public' => ts('Public'),
135 'Admin' => ts('Admin'),
140 * Member auto-renew options
144 public static function memberAutoRenew() {
146 ts('No auto-renew option'),
147 ts('Give option, but not required'),
148 ts('Auto-renew required'),
153 * Various pre defined event dates.
157 public static function eventDate() {
159 'start_date' => ts('start date'),
160 'end_date' => ts('end date'),
161 'join_date' => ts('member since'),
166 * Custom form field types.
170 public static function customHtmlType() {
174 'name' => 'Single-line input field (text or numeric)',
175 'label' => ts('Single-line input field (text or numeric)'),
179 'name' => 'Multi-line text box (textarea)',
180 'label' => ts('Multi-line text box (textarea)'),
184 'name' => 'Drop-down (select list)',
185 'label' => ts('Drop-down (select list)'),
189 'name' => 'Radio buttons',
190 'label' => ts('Radio buttons'),
194 'name' => 'Checkbox(es)',
195 'label' => ts('Checkbox(es)'),
198 'id' => 'Select Date',
199 'name' => 'Select Date',
200 'label' => ts('Select Date'),
205 'label' => ts('File'),
208 'id' => 'RichTextEditor',
209 'name' => 'Rich Text Editor',
210 'label' => ts('Rich Text Editor'),
213 'id' => 'Autocomplete-Select',
214 'name' => 'Autocomplete-Select',
215 'label' => ts('Autocomplete-Select'),
220 'label' => ts('Link'),
226 * List of entities to present on the Custom Group form.
228 * Includes pseudo-entities for Participant, in order to present sub-types on the form.
232 public static function customGroupExtends() {
233 $customGroupExtends = array_column(CRM_Core_BAO_CustomGroup
::getCustomGroupExtendsOptions(), 'label', 'id');
234 // ParticipantRole, ParticipantEventName, etc.
235 $pseudoSelectors = CRM_Core_OptionGroup
::values('custom_data_type', FALSE, FALSE, FALSE, NULL, 'label', TRUE, FALSE, 'name');
236 return array_merge($customGroupExtends, $pseudoSelectors);
240 * Styles for displaying the custom data group.
244 public static function customGroupStyle() {
247 'Inline' => ts('Inline'),
248 'Tab with table' => ts('Tab with table'),
253 * For displaying the uf group types.
257 public static function ufGroupTypes() {
259 'Profile' => ts('Standalone Form or Directory'),
260 'Search Profile' => ts('Search Views'),
263 if (CRM_Core_Config
::singleton()->userSystem
->supports_form_extensions
) {
264 $ufGroupType +
= CRM_Core_Config
::singleton()->userSystem
->getUfGroupTypes();
270 * The status of a contact within a group.
274 public static function groupContactStatus() {
276 'Added' => ts('Added'),
277 'Removed' => ts('Removed'),
278 'Pending' => ts('Pending'),
283 * List of Group Types.
287 public static function groupType() {
289 'query' => ts('Dynamic'),
290 'static' => ts('Static'),
295 * Compose the parameters for a date select object.
297 * @param string|null $type
299 * @param string|null $format
300 * date format (QF format)
301 * @param null $minOffset
302 * @param null $maxOffset
303 * @param string $context
307 * @throws CRM_Core_Exception
309 public static function date($type = NULL, $format = NULL, $minOffset = NULL, $maxOffset = NULL, $context = 'display') {
310 // These options are deprecated. Definitely not used in datepicker. Possibly not even in jcalendar+addDateTime.
312 'addEmptyOption' => TRUE,
313 'emptyOptionText' => ts('- select -'),
314 'emptyOptionValue' => '',
318 $date['format'] = $format;
322 $dao = new CRM_Core_DAO_PreferencesDate();
324 if (!$dao->find(TRUE)) {
325 throw new CRM_Core_Exception('Date preferences not configured.');
328 $maxOffset = $dao->end
;
331 $minOffset = $dao->start
;
334 $date['format'] = $dao->date_format
;
335 $date['time'] = (bool) $dao->time_format
;
338 if (empty($date['format'])) {
339 if ($context === 'Input') {
340 $date['format'] = Civi
::settings()->get('dateInputFormat');
343 $date['format'] = 'M d';
348 $date['smarty_view_format'] = CRM_Utils_Date
::getDateFieldViewFormat($date['format']);
349 if (!isset($date['time'])) {
350 $date['time'] = FALSE;
354 $date['minYear'] = $year - (int) $minOffset;
355 $date['maxYear'] = $year +
(int) $maxOffset;
360 * Values for UF form visibility options.
364 public static function ufVisibility() {
366 'User and User Admin Only' => ts('User and User Admin Only'),
367 'Public Pages' => ts('Expose Publicly'),
368 'Public Pages and Listings' => ts('Expose Publicly and for Listings'),
373 * Values for group form visibility options.
377 public static function groupVisibility() {
379 'User and User Admin Only' => ts('User and User Admin Only'),
380 'Public Pages' => ts('Public Pages'),
385 * Different type of Mailing Components.
389 public static function mailingComponents() {
391 'Header' => ts('Header'),
392 'Footer' => ts('Footer'),
393 'Reply' => ts('Reply Auto-responder'),
394 'OptOut' => ts('Opt-out Message'),
395 'Subscribe' => ts('Subscription Confirmation Request'),
396 'Welcome' => ts('Welcome Message'),
397 'Unsubscribe' => ts('Unsubscribe Message'),
398 'Resubscribe' => ts('Resubscribe Message'),
407 public function getHours() {
409 for ($i = 0; $i <= 6; $i++
) {
420 public function getMinutes() {
422 for ($i = 0; $i < 60; $i = $i +
15) {
429 * Get the Map Provider.
432 * array of map providers
434 public static function mapProvider() {
437 $map = ['' => ts('- select -')] + CRM_Utils_System
::getPluginList('templates/CRM/Contact/Form/Task/Map', ".tpl");
443 * Get the Geocoding Providers from available plugins.
446 * array of geocoder providers
448 public static function geoProvider() {
451 $geo = ['' => ts('- select -')] + CRM_Utils_System
::getPluginList('CRM/Utils/Geocode');
457 * Get options for displaying tax.
461 * @throws \CRM_Core_Exception
463 public static function taxDisplayOptions() {
465 'Do_not_show' => ts('Do not show breakdown, only show total - i.e %1', [
466 1 => CRM_Utils_Money
::format(120),
468 'Inclusive' => ts('Show [tax term] inclusive price - i.e. %1', [
469 1 => ts('%1 (includes [tax term] of %2)', [1 => CRM_Utils_Money
::format(120), 2 => CRM_Utils_Money
::format(20)]),
471 'Exclusive' => ts('Show [tax term] exclusive price - i.e. %1', [
472 1 => ts('%1 + %2 [tax term]', [1 => CRM_Utils_Money
::format(120), 2 => CRM_Utils_Money
::format(20)]),
478 * Get the Address Standardization Providers from available plugins.
481 * array of address standardization providers
483 public static function addressProvider() {
486 $addr = array_merge(['' => ts('- select -')], CRM_Utils_System
::getPluginList('CRM/Utils/Address', '.php', ['BatchUpdate']));
492 * Different type of Mailing Tokens.
496 public static function mailingTokens() {
498 '{action.unsubscribe}' => ts('Unsubscribe via email'),
499 '{action.unsubscribeUrl}' => ts('Unsubscribe via web page'),
500 '{action.resubscribe}' => ts('Resubscribe via email'),
501 '{action.resubscribeUrl}' => ts('Resubscribe via web page'),
502 '{action.optOut}' => ts('Opt out via email'),
503 '{action.optOutUrl}' => ts('Opt out via web page'),
504 '{action.forward}' => ts('Forward this email (link)'),
505 '{action.reply}' => ts('Reply to this email (link)'),
506 '{action.subscribeUrl}' => ts('Subscribe via web page'),
507 '{mailing.key}' => ts('Mailing key'),
508 '{mailing.name}' => ts('Mailing name'),
509 '{mailing.group}' => ts('Mailing group'),
510 '{mailing.viewUrl}' => ts('Mailing permalink'),
511 ] + self
::domainTokens();
521 public static function domainTokens() {
522 $tokenProcessor = new TokenProcessor(Civi
::dispatcher(), []);
523 return $tokenProcessor->listTokens();
527 * Different type of Activity Tokens.
531 public static function activityTokens() {
533 '{activity.activity_id}' => ts('Activity ID'),
534 '{activity.subject}' => ts('Activity Subject'),
535 '{activity.details}' => ts('Activity Details'),
536 '{activity.activity_date_time}' => ts('Activity Date Time'),
541 * Different type of Membership Tokens.
545 public static function membershipTokens(): array {
547 '{membership.id}' => ts('Membership ID'),
548 '{membership.status_id:label}' => ts('Status'),
549 '{membership.membership_type_id:label}' => ts('Membership Type'),
550 '{membership.start_date}' => ts('Membership Start Date'),
551 '{membership.join_date}' => ts('Member Since'),
552 '{membership.end_date}' => ts('Membership Expiration Date'),
553 '{membership.fee}' => ts('Membership Fee'),
558 * Different type of Event Tokens.
564 public static function eventTokens(): array {
565 $tokenProcessor = new TokenProcessor(Civi
::dispatcher(), ['schema' => ['eventId']]);
566 $allTokens = $tokenProcessor->listTokens();
567 foreach (array_keys($allTokens) as $token) {
568 if (strpos($token, '{domain.') === 0) {
569 unset($allTokens[$token]);
576 * Different type of Contribution Tokens.
582 public static function contributionTokens(): array {
583 $tokenProcessor = new TokenProcessor(Civi
::dispatcher(), ['schema' => ['contributionId']]);
584 $allTokens = $tokenProcessor->listTokens();
585 foreach (array_keys($allTokens) as $token) {
586 if (strpos($token, '{domain.') === 0) {
587 unset($allTokens[$token]);
594 * Different type of Contact Tokens.
600 public static function contactTokens(): array {
601 $tokenProcessor = new TokenProcessor(Civi
::dispatcher(), ['schema' => ['contactId']]);
602 $allTokens = $tokenProcessor->listTokens();
603 foreach (array_keys($allTokens) as $token) {
604 if (strpos($token, '{domain.') === 0) {
605 unset($allTokens[$token]);
612 * Different type of Participant Tokens.
618 public static function participantTokens(): array {
619 $tokenProcessor = new TokenProcessor(Civi
::dispatcher(), ['schema' => ['participantId']]);
620 $allTokens = $tokenProcessor->listTokens();
621 foreach (array_keys($allTokens) as $token) {
622 if (strpos($token, '{domain.') === 0 ||
strpos($token, '{event.') === 0) {
623 unset($allTokens[$token]);
630 * @param int $caseTypeId
633 public static function caseTokens($caseTypeId = NULL) {
635 '{case.id}' => ts('Case ID'),
636 '{case.case_type_id:label}' => ts('Case Type'),
637 '{case.subject}' => ts('Case Subject'),
638 '{case.start_date}' => ts('Case Start Date'),
639 '{case.end_date}' => ts('Case End Date'),
640 '{case.details}' => ts('Details'),
641 '{case.status_id:label}' => ts('Case Status'),
642 '{case.is_deleted:label}' => ts('Case is in the Trash'),
643 '{case.created_date}' => ts('Created Date'),
644 '{case.modified_date}' => ts('Modified Date'),
647 $customFields = CRM_Core_BAO_CustomField
::getFields('Case', FALSE, FALSE, $caseTypeId);
648 foreach ($customFields as $id => $field) {
649 $tokens["{case.custom_$id}"] = "{$field['label']} :: {$field['groupTitle']}";
655 * CiviCRM supported date input formats.
659 public static function getDatePluginInputFormats() {
661 'mm/dd/yy' => ts('mm/dd/yy (12/31/2009)'),
662 'dd/mm/yy' => ts('dd/mm/yy (31/12/2009)'),
663 'yy-mm-dd' => ts('yy-mm-dd (2009-12-31)'),
664 'dd-mm-yy' => ts('dd-mm-yy (31-12-2009)'),
665 'dd.mm.yy' => ts('dd.mm.yy (31.12.2009)'),
666 'M d, yy' => ts('M d, yy (Dec 31, 2009)'),
667 'd M yy' => ts('d M yy (31 Dec 2009)'),
668 'MM d, yy' => ts('MM d, yy (December 31, 2009)'),
669 'd MM yy' => ts('d MM yy (31 December 2009)'),
670 'DD, d MM yy' => ts('DD, d MM yy (Thursday, 31 December 2009)'),
671 'mm/dd' => ts('mm/dd (12/31)'),
672 'dd-mm' => ts('dd-mm (31-12)'),
673 'yy-mm' => ts('yy-mm (2009-12)'),
674 'M yy' => ts('M yy (Dec 2009)'),
675 'yy' => ts('yy (2009)'),
684 public static function getTimeFormats() {
686 '1' => ts('12 Hours'),
687 '2' => ts('24 Hours'),
692 * Get numeric options.
699 public static function getNumericOptions($start = 0, $end = 10) {
700 $numericOptions = [];
701 for ($i = $start; $i <= $end; $i++
) {
702 $numericOptions[$i] = $i;
704 return $numericOptions;
712 public static function getBarcodeTypes() {
714 'barcode' => ts('Linear (1D)'),
715 'qrcode' => ts('QR code'),
724 public static function getDedupeRuleTypes() {
726 'Unsupervised' => ts('Unsupervised'),
727 'Supervised' => ts('Supervised'),
728 'General' => ts('General'),
733 * Campaign group types.
737 public static function getCampaignGroupTypes() {
739 'Include' => ts('Include'),
740 'Exclude' => ts('Exclude'),
745 * Subscription history method.
749 public static function getSubscriptionHistoryMethods() {
751 'Admin' => ts('Admin'),
752 'Email' => ts('Email'),
763 public static function getPremiumUnits() {
766 'week' => ts('Week'),
767 'month' => ts('Month'),
768 'year' => ts('Year'),
777 public static function getExtensionTypes() {
779 'payment' => ts('Payment'),
780 'search' => ts('Search'),
781 'report' => ts('Report'),
782 'module' => ts('Module'),
792 public static function getJobFrequency() {
795 'Yearly' => ts('Yearly'),
796 'Quarter' => ts('Quarterly'),
797 'Monthly' => ts('Monthly'),
798 'Weekly' => ts('Weekly'),
800 'Daily' => ts('Daily'),
801 'Hourly' => ts('Hourly'),
802 'Always' => ts('Every time cron job is run'),
807 * Search builder operators.
811 public static function getSearchBuilderOperators() {
820 'NOT IN' => ts('Not In'),
821 'LIKE' => ts('Like'),
822 'NOT LIKE' => ts('Not Like'),
823 'RLIKE' => ts('Regex'),
824 'IS EMPTY' => ts('Is Empty'),
825 'IS NOT EMPTY' => ts('Not Empty'),
826 'IS NULL' => ts('Is Null'),
827 'IS NOT NULL' => ts('Not Null'),
832 * Profile group types.
836 public static function getProfileGroupType() {
837 $profileGroupType = [
838 'Activity' => ts('Activities'),
839 'Contribution' => ts('Contributions'),
840 'Membership' => ts('Memberships'),
841 'Participant' => ts('Participants'),
843 $contactTypes = self
::contactType();
844 $contactTypes = !empty($contactTypes) ?
['Contact' => 'Contacts'] +
$contactTypes : [];
845 $profileGroupType = array_merge($contactTypes, $profileGroupType);
847 return $profileGroupType;
851 * Word replacement match type.
855 public static function getWordReplacementMatchType() {
857 'exactMatch' => ts('Exact Match'),
858 'wildcardMatch' => ts('Wildcard Match'),
863 * Mailing group types.
867 public static function getMailingGroupTypes() {
869 'Include' => ts('Include'),
870 'Exclude' => ts('Exclude'),
871 'Base' => ts('Base'),
876 * Mailing Job Status.
880 public static function getMailingJobStatus() {
882 'Scheduled' => ts('Scheduled'),
883 'Running' => ts('Running'),
884 'Complete' => ts('Complete'),
885 'Paused' => ts('Paused'),
886 'Canceled' => ts('Canceled'),
893 public static function billingMode() {
896 'id' => CRM_Core_Payment
::BILLING_MODE_FORM
,
901 'id' => CRM_Core_Payment
::BILLING_MODE_BUTTON
,
906 'id' => CRM_Core_Payment
::BILLING_MODE_NOTIFY
,
916 public static function contributeMode() {
919 'id' => CRM_Core_Payment
::BILLING_MODE_FORM
,
924 'id' => CRM_Core_Payment
::BILLING_MODE_BUTTON
,
925 'name' => 'directIPN',
926 'label' => 'directIPN',
929 'id' => CRM_Core_Payment
::BILLING_MODE_NOTIFY
,
937 * Frequency unit for schedule reminders.
943 public static function getRecurringFrequencyUnits($count = 1) {
944 // @todo this used to refer to the 'recur_frequency_unit' option_values which
945 // is for recurring payments and probably not good to re-use for recurring entities.
946 // If something other than a hard-coded list is desired, add a new option_group.
948 'minute' => ts('minute', ['plural' => 'minutes', 'count' => $count]),
949 'hour' => ts('hour', ['plural' => 'hours', 'count' => $count]),
950 'day' => ts('day', ['plural' => 'days', 'count' => $count]),
951 'week' => ts('week', ['plural' => 'weeks', 'count' => $count]),
952 'month' => ts('month', ['plural' => 'months', 'count' => $count]),
953 'year' => ts('year', ['plural' => 'years', 'count' => $count]),
958 * Relative Date Terms.
962 public static function getRelativeDateTerms() {
964 'previous' => ts('Previous'),
965 'previous_2' => ts('Previous 2'),
966 'previous_before' => ts('Prior to Previous'),
967 'before_previous' => ts('All Prior to Previous'),
968 'earlier' => ts('To End of Previous'),
969 'greater_previous' => ts('From End of Previous'),
970 'greater' => ts('From Start Of Current'),
971 'current' => ts('Current'),
972 'ending_3' => ts('Last 3'),
973 'ending_2' => ts('Last 2'),
974 'ending' => ts('Last'),
975 'this' => ts('This'),
976 'starting' => ts('Upcoming'),
977 'less' => ts('To End of'),
978 'next' => ts('Next'),
983 * Relative Date Units.
987 public static function getRelativeDateUnits() {
989 'year' => ts('Years'),
990 'fiscal_year' => ts('Fiscal Years'),
991 'quarter' => ts('Quarters'),
992 'month' => ts('Months'),
993 'week' => ts('Weeks'),
999 * Exportable document formats.
1003 public static function documentFormat() {
1005 'pdf' => ts('Portable Document Format (.pdf)'),
1006 'docx' => ts('MS Word (.docx)'),
1007 'odt' => ts('Open Office (.odt)'),
1008 'html' => ts('Webpage (.html)'),
1013 * Application type of document.
1017 public static function documentApplicationType() {
1019 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
1020 'odt' => 'application/vnd.oasis.opendocument.text',
1025 * Activity Text options.
1029 public static function activityTextOptions() {
1031 2 => ts('Details Only'),
1032 3 => ts('Subject Only'),
1038 * Relationship permissions
1042 public static function getPermissionedRelationshipOptions() {
1044 CRM_Contact_BAO_Relationship
::NONE
=> ts('None'),
1045 CRM_Contact_BAO_Relationship
::VIEW
=> ts('View only'),
1046 CRM_Contact_BAO_Relationship
::EDIT
=> ts('View and update'),
1051 * Get option values for dashboard entries (used for 'how many events to display on dashboard').
1054 * Dashboard entries options - in practice [-1 => 'Show All', 10 => 10, 20 => 20, ... 100 => 100].
1056 public static function getDashboardEntriesCount() {
1058 $optionValues[-1] = ts('show all');
1059 for ($i = 10; $i <= 100; $i +
= 10) {
1060 $optionValues[$i] = $i;
1062 return $optionValues;
1066 * Dropdown options for quicksearch in the menu
1069 * @throws \CiviCRM_API3_Exception
1071 public static function quicksearchOptions() {
1072 $includeEmail = civicrm_api3('setting', 'getvalue', ['name' => 'includeEmailInName', 'group' => 'Search Preferences']);
1074 'sort_name' => $includeEmail ?
ts('Name/Email') : ts('Name'),
1075 'contact_id' => ts('Contact ID'),
1076 'external_identifier' => ts('External ID'),
1077 'first_name' => ts('First Name'),
1078 'last_name' => ts('Last Name'),
1079 'email' => ts('Email'),
1080 'phone_numeric' => ts('Phone'),
1081 'street_address' => ts('Street Address'),
1082 'city' => ts('City'),
1083 'postal_code' => ts('Postal Code'),
1084 'job_title' => ts('Job Title'),
1086 $custom = civicrm_api3('CustomField', 'get', [
1087 'return' => ['name', 'label', 'custom_group_id.title'],
1088 'custom_group_id.extends' => ['IN' => array_merge(['Contact'], CRM_Contact_BAO_ContactType
::basicTypes())],
1089 'data_type' => ['NOT IN' => ['ContactReference', 'Date', 'File']],
1090 'custom_group_id.is_active' => 1,
1092 'is_searchable' => 1,
1093 'options' => ['sort' => ['custom_group_id.weight', 'weight'], 'limit' => 0],
1095 foreach ($custom['values'] as $field) {
1096 $options['custom_' . $field['name']] = $field['custom_group_id.title'] . ': ' . $field['label'];
1102 * Get components (translated for display.
1106 * @throws \Exception
1108 public static function getComponentSelectValues() {
1110 $components = CRM_Core_Component
::getComponents();
1111 foreach ($components as $name => $object) {
1112 $ret[$name] = $object->info
['translatedName'];
1121 public static function fieldSerialization() {
1123 CRM_Core_DAO
::SERIALIZE_NONE
=> 'none',
1124 CRM_Core_DAO
::SERIALIZE_SEPARATOR_BOOKEND
=> 'separator_bookend',
1125 CRM_Core_DAO
::SERIALIZE_SEPARATOR_TRIMMED
=> 'separator_trimmed',
1126 CRM_Core_DAO
::SERIALIZE_JSON
=> 'json',
1127 CRM_Core_DAO
::SERIALIZE_PHP
=> 'php',
1128 CRM_Core_DAO
::SERIALIZE_COMMA
=> 'comma',
1135 public static function navigationMenuSeparator() {
1138 ts('After menu element'),
1139 ts('Before menu element'),
1146 public static function relationshipOrientation() {
1148 'a_b' => ts('A to B'),
1149 'b_a' => ts('B to A'),
1156 public static function andOr() {
1164 * Columns from the option_value table which may or may not be used by each option_group.
1166 * Note: Value is not listed here as it is not optional.
1170 public static function optionValueFields() {
1174 'description' => 'description',