Merge pull request #19525 from eileenmcnaughton/member_soft
[civicrm-core.git] / CRM / Core / DAO / OptionValue.php
CommitLineData
e501603b 1<?php
c3fc2621 2
e501603b
TO
3/**
4 * @package CRM
ca5cec67 5 * @copyright CiviCRM LLC https://civicrm.org/licensing
e501603b
TO
6 *
7 * Generated from xml/schema/CRM/Core/OptionValue.xml
8 * DO NOT EDIT. Generated by CRM_Core_CodeGen
2cbbebe8 9 * (GenCodeChecksum:2f36b1c5608434fbc5751aee9215a230)
e501603b 10 */
c3fc2621 11
f41f0342 12/**
c3fc2621 13 * Database access object for the OptionValue entity.
f41f0342 14 */
e501603b 15class CRM_Core_DAO_OptionValue extends CRM_Core_DAO {
929a1c14
CW
16 const EXT = 'civicrm';
17 const TABLE_ADDED = '1.5';
c3fc2621 18
e501603b 19 /**
f41f0342 20 * Static instance to hold the table name.
e501603b
TO
21 *
22 * @var string
23 */
fa45b5b9 24 public static $_tableName = 'civicrm_option_value';
c3fc2621 25
e501603b 26 /**
f41f0342 27 * Should CiviCRM log any modifications to this table in the civicrm_log table.
e501603b 28 *
c3fc2621 29 * @var bool
e501603b 30 */
fa45b5b9 31 public static $_log = TRUE;
c3fc2621 32
e501603b
TO
33 /**
34 * Option ID
35 *
e6ca0a57 36 * @var int
e501603b
TO
37 */
38 public $id;
c3fc2621 39
e501603b
TO
40 /**
41 * Group which this option belongs to.
42 *
e6ca0a57 43 * @var int
e501603b
TO
44 */
45 public $option_group_id;
c3fc2621 46
e501603b
TO
47 /**
48 * Option string as displayed to users - e.g. the label in an HTML OPTION tag.
49 *
50 * @var string
51 */
52 public $label;
c3fc2621 53
e501603b
TO
54 /**
55 * The actual value stored (as a foreign key) in the data record. Functions which need lookup option_value.title should use civicrm_option_value.option_group_id plus civicrm_option_value.value as the key.
56 *
57 * @var string
58 */
59 public $value;
c3fc2621 60
e501603b
TO
61 /**
62 * Stores a fixed (non-translated) name for this option value. Lookup functions should use the name as the key for the option value row.
63 *
64 * @var string
65 */
66 public $name;
c3fc2621 67
e501603b
TO
68 /**
69 * Use to sort and/or set display properties for sub-set(s) of options within an option group. EXAMPLE: Use for college_interest field, to differentiate partners from non-partners.
70 *
71 * @var string
72 */
73 public $grouping;
c3fc2621 74
e501603b
TO
75 /**
76 * Bitwise logic can be used to create subsets of options within an option_group for different uses.
77 *
e6ca0a57 78 * @var int
e501603b
TO
79 */
80 public $filter;
c3fc2621 81
e501603b
TO
82 /**
83 * Is this the default option for the group?
84 *
e6ca0a57 85 * @var bool
e501603b
TO
86 */
87 public $is_default;
c3fc2621 88
e501603b
TO
89 /**
90 * Controls display sort order.
91 *
e6ca0a57 92 * @var int
e501603b
TO
93 */
94 public $weight;
c3fc2621 95
e501603b
TO
96 /**
97 * Optional description.
98 *
99 * @var text
100 */
101 public $description;
c3fc2621 102
e501603b
TO
103 /**
104 * Is this row simply a display header? Expected usage is to render these as OPTGROUP tags within a SELECT field list of options?
105 *
e6ca0a57 106 * @var bool
e501603b
TO
107 */
108 public $is_optgroup;
c3fc2621 109
e501603b
TO
110 /**
111 * Is this a predefined system object?
112 *
e6ca0a57 113 * @var bool
e501603b
TO
114 */
115 public $is_reserved;
c3fc2621 116
e501603b
TO
117 /**
118 * Is this option active?
119 *
e6ca0a57 120 * @var bool
e501603b
TO
121 */
122 public $is_active;
c3fc2621 123
e501603b
TO
124 /**
125 * Component that this option value belongs/caters to.
126 *
e6ca0a57 127 * @var int
e501603b
TO
128 */
129 public $component_id;
c3fc2621 130
e501603b
TO
131 /**
132 * Which Domain is this option value for
133 *
e6ca0a57 134 * @var int
e501603b
TO
135 */
136 public $domain_id;
c3fc2621 137
e501603b 138 /**
e6ca0a57 139 * @var int
e501603b
TO
140 */
141 public $visibility_id;
c3fc2621 142
b412f764
CW
143 /**
144 * crm-i icon class
145 *
146 * @var string
147 */
148 public $icon;
c3fc2621 149
d73974ac
CW
150 /**
151 * Hex color value e.g. #ffffff
152 *
153 * @var string
154 */
155 public $color;
c3fc2621 156
e501603b 157 /**
f41f0342 158 * Class constructor.
e501603b 159 */
c3fc2621 160 public function __construct() {
e501603b
TO
161 $this->__table = 'civicrm_option_value';
162 parent::__construct();
163 }
c3fc2621 164
449c4e6b
CW
165 /**
166 * Returns localized title of this entity.
7b66c3b5
AH
167 *
168 * @param bool $plural
169 * Whether to return the plural version of the title.
449c4e6b 170 */
7b66c3b5
AH
171 public static function getEntityTitle($plural = FALSE) {
172 return $plural ? ts('Option Values') : ts('Option Value');
449c4e6b
CW
173 }
174
e501603b 175 /**
f41f0342 176 * Returns foreign keys and entity references.
e501603b
TO
177 *
178 * @return array
179 * [CRM_Core_Reference_Interface]
180 */
c3fc2621 181 public static function getReferenceColumns() {
346aaaba 182 if (!isset(Civi::$statics[__CLASS__]['links'])) {
fa45b5b9 183 Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
c3fc2621
CW
184 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'option_group_id', 'civicrm_option_group', 'id');
185 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'component_id', 'civicrm_component', 'id');
186 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id');
346aaaba 187 CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
e501603b 188 }
346aaaba 189 return Civi::$statics[__CLASS__]['links'];
e501603b 190 }
c3fc2621 191
e501603b
TO
192 /**
193 * Returns all the column names of this table
194 *
195 * @return array
196 */
c3fc2621 197 public static function &fields() {
346aaaba 198 if (!isset(Civi::$statics[__CLASS__]['fields'])) {
c3fc2621
CW
199 Civi::$statics[__CLASS__]['fields'] = [
200 'id' => [
e501603b
TO
201 'name' => 'id',
202 'type' => CRM_Utils_Type::T_INT,
c3fc2621 203 'title' => ts('Option Value ID'),
215b423e 204 'description' => ts('Option ID'),
c3fc2621 205 'required' => TRUE,
a36434b9 206 'where' => 'civicrm_option_value.id',
522a26c9 207 'table_name' => 'civicrm_option_value',
208 'entity' => 'OptionValue',
209 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 210 'localizable' => 0,
a9d0587b 211 'add' => '1.5',
c3fc2621
CW
212 ],
213 'option_group_id' => [
e501603b
TO
214 'name' => 'option_group_id',
215 'type' => CRM_Utils_Type::T_INT,
c3fc2621 216 'title' => ts('Option Group ID'),
215b423e 217 'description' => ts('Group which this option belongs to.'),
c3fc2621 218 'required' => TRUE,
a36434b9 219 'where' => 'civicrm_option_value.option_group_id',
522a26c9 220 'table_name' => 'civicrm_option_value',
221 'entity' => 'OptionValue',
222 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 223 'localizable' => 0,
e501603b 224 'FKClassName' => 'CRM_Core_DAO_OptionGroup',
c3fc2621 225 'html' => [
e501603b 226 'type' => 'Select',
2cbbebe8 227 'label' => ts("Option Group"),
c3fc2621
CW
228 ],
229 'pseudoconstant' => [
e501603b
TO
230 'table' => 'civicrm_option_group',
231 'keyColumn' => 'id',
17f78bae
CW
232 'labelColumn' => 'title',
233 'nameColumn' => 'name',
e6ca0a57 234 ],
a9d0587b 235 'add' => '1.5',
c3fc2621
CW
236 ],
237 'label' => [
e501603b
TO
238 'name' => 'label',
239 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 240 'title' => ts('Option Label'),
215b423e 241 'description' => ts('Option string as displayed to users - e.g. the label in an HTML OPTION tag.'),
c3fc2621 242 'required' => TRUE,
e501603b
TO
243 'maxlength' => 512,
244 'size' => CRM_Utils_Type::HUGE,
a36434b9 245 'where' => 'civicrm_option_value.label',
522a26c9 246 'table_name' => 'civicrm_option_value',
247 'entity' => 'OptionValue',
248 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 249 'localizable' => 1,
a9d0587b 250 'add' => '1.5',
c3fc2621
CW
251 ],
252 'value' => [
e501603b
TO
253 'name' => 'value',
254 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 255 'title' => ts('Option Value'),
215b423e 256 'description' => ts('The actual value stored (as a foreign key) in the data record. Functions which need lookup option_value.title should use civicrm_option_value.option_group_id plus civicrm_option_value.value as the key.'),
c3fc2621 257 'required' => TRUE,
e501603b
TO
258 'maxlength' => 512,
259 'size' => CRM_Utils_Type::HUGE,
a36434b9 260 'where' => 'civicrm_option_value.value',
522a26c9 261 'table_name' => 'civicrm_option_value',
262 'entity' => 'OptionValue',
263 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 264 'localizable' => 0,
a9d0587b 265 'add' => '1.5',
c3fc2621
CW
266 ],
267 'name' => [
e501603b
TO
268 'name' => 'name',
269 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 270 'title' => ts('Option Name'),
215b423e 271 'description' => ts('Stores a fixed (non-translated) name for this option value. Lookup functions should use the name as the key for the option value row.'),
e501603b
TO
272 'maxlength' => 255,
273 'size' => CRM_Utils_Type::HUGE,
c3fc2621 274 'import' => TRUE,
e501603b 275 'where' => 'civicrm_option_value.name',
c3fc2621 276 'export' => TRUE,
522a26c9 277 'table_name' => 'civicrm_option_value',
278 'entity' => 'OptionValue',
279 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 280 'localizable' => 0,
a9d0587b 281 'add' => '1.5',
c3fc2621
CW
282 ],
283 'grouping' => [
e501603b
TO
284 'name' => 'grouping',
285 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 286 'title' => ts('Option Grouping Name'),
215b423e 287 'description' => ts('Use to sort and/or set display properties for sub-set(s) of options within an option group. EXAMPLE: Use for college_interest field, to differentiate partners from non-partners.'),
e501603b
TO
288 'maxlength' => 255,
289 'size' => CRM_Utils_Type::HUGE,
a36434b9 290 'where' => 'civicrm_option_value.grouping',
522a26c9 291 'table_name' => 'civicrm_option_value',
292 'entity' => 'OptionValue',
293 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 294 'localizable' => 0,
a9d0587b 295 'add' => '1.5',
c3fc2621
CW
296 ],
297 'filter' => [
e501603b
TO
298 'name' => 'filter',
299 'type' => CRM_Utils_Type::T_INT,
c3fc2621 300 'title' => ts('Filter'),
215b423e 301 'description' => ts('Bitwise logic can be used to create subsets of options within an option_group for different uses.'),
a36434b9 302 'where' => 'civicrm_option_value.filter',
b8be3222 303 'default' => '0',
522a26c9 304 'table_name' => 'civicrm_option_value',
305 'entity' => 'OptionValue',
306 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 307 'localizable' => 0,
a9d0587b 308 'add' => '1.5',
c3fc2621
CW
309 ],
310 'is_default' => [
e501603b
TO
311 'name' => 'is_default',
312 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 313 'title' => ts('Option is Default?'),
215b423e 314 'description' => ts('Is this the default option for the group?'),
a36434b9 315 'where' => 'civicrm_option_value.is_default',
45a83e42 316 'default' => '0',
522a26c9 317 'table_name' => 'civicrm_option_value',
318 'entity' => 'OptionValue',
319 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 320 'localizable' => 0,
a9d0587b 321 'add' => '1.5',
c3fc2621
CW
322 ],
323 'weight' => [
e501603b
TO
324 'name' => 'weight',
325 'type' => CRM_Utils_Type::T_INT,
c3fc2621 326 'title' => ts('Order'),
215b423e 327 'description' => ts('Controls display sort order.'),
c3fc2621 328 'required' => TRUE,
a36434b9 329 'where' => 'civicrm_option_value.weight',
522a26c9 330 'table_name' => 'civicrm_option_value',
331 'entity' => 'OptionValue',
332 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 333 'localizable' => 0,
a9d0587b 334 'add' => '1.5',
c3fc2621
CW
335 ],
336 'description' => [
e501603b
TO
337 'name' => 'description',
338 'type' => CRM_Utils_Type::T_TEXT,
c3fc2621 339 'title' => ts('Option Description'),
215b423e 340 'description' => ts('Optional description.'),
e501603b
TO
341 'rows' => 8,
342 'cols' => 60,
a36434b9 343 'where' => 'civicrm_option_value.description',
522a26c9 344 'table_name' => 'civicrm_option_value',
345 'entity' => 'OptionValue',
346 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 347 'localizable' => 1,
c3fc2621 348 'html' => [
e501603b 349 'type' => 'TextArea',
c3fc2621 350 ],
a9d0587b 351 'add' => '1.5',
c3fc2621
CW
352 ],
353 'is_optgroup' => [
e501603b
TO
354 'name' => 'is_optgroup',
355 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 356 'title' => ts('Option is Header?'),
215b423e 357 'description' => ts('Is this row simply a display header? Expected usage is to render these as OPTGROUP tags within a SELECT field list of options?'),
a36434b9 358 'where' => 'civicrm_option_value.is_optgroup',
45a83e42 359 'default' => '0',
522a26c9 360 'table_name' => 'civicrm_option_value',
361 'entity' => 'OptionValue',
362 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 363 'localizable' => 0,
a9d0587b 364 'add' => '1.5',
c3fc2621
CW
365 ],
366 'is_reserved' => [
e501603b
TO
367 'name' => 'is_reserved',
368 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 369 'title' => ts('Option Is Reserved?'),
215b423e 370 'description' => ts('Is this a predefined system object?'),
a36434b9 371 'where' => 'civicrm_option_value.is_reserved',
45a83e42 372 'default' => '0',
522a26c9 373 'table_name' => 'civicrm_option_value',
374 'entity' => 'OptionValue',
375 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 376 'localizable' => 0,
a9d0587b 377 'add' => '1.5',
c3fc2621
CW
378 ],
379 'is_active' => [
e501603b
TO
380 'name' => 'is_active',
381 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 382 'title' => ts('Option Is Active'),
215b423e 383 'description' => ts('Is this option active?'),
a36434b9 384 'where' => 'civicrm_option_value.is_active',
e501603b 385 'default' => '1',
522a26c9 386 'table_name' => 'civicrm_option_value',
387 'entity' => 'OptionValue',
388 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 389 'localizable' => 0,
a9d0587b 390 'add' => '1.5',
c3fc2621
CW
391 ],
392 'component_id' => [
e501603b
TO
393 'name' => 'component_id',
394 'type' => CRM_Utils_Type::T_INT,
2cbbebe8 395 'title' => ts('Component ID'),
215b423e 396 'description' => ts('Component that this option value belongs/caters to.'),
a36434b9 397 'where' => 'civicrm_option_value.component_id',
522a26c9 398 'table_name' => 'civicrm_option_value',
399 'entity' => 'OptionValue',
400 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 401 'localizable' => 0,
e501603b 402 'FKClassName' => 'CRM_Core_DAO_Component',
c3fc2621 403 'html' => [
e501603b 404 'type' => 'Select',
2cbbebe8 405 'label' => ts("Component"),
c3fc2621
CW
406 ],
407 'pseudoconstant' => [
e501603b
TO
408 'table' => 'civicrm_component',
409 'keyColumn' => 'id',
410 'labelColumn' => 'name',
e6ca0a57 411 ],
a9d0587b 412 'add' => '2.0',
c3fc2621
CW
413 ],
414 'domain_id' => [
e501603b
TO
415 'name' => 'domain_id',
416 'type' => CRM_Utils_Type::T_INT,
2cbbebe8 417 'title' => ts('Domain ID'),
215b423e 418 'description' => ts('Which Domain is this option value for'),
a36434b9 419 'where' => 'civicrm_option_value.domain_id',
522a26c9 420 'table_name' => 'civicrm_option_value',
421 'entity' => 'OptionValue',
422 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 423 'localizable' => 0,
e501603b 424 'FKClassName' => 'CRM_Core_DAO_Domain',
2cbbebe8
A
425 'html' => [
426 'label' => ts("Domain"),
427 ],
c3fc2621 428 'pseudoconstant' => [
e501603b
TO
429 'table' => 'civicrm_domain',
430 'keyColumn' => 'id',
431 'labelColumn' => 'name',
e6ca0a57 432 ],
a9d0587b 433 'add' => '3.1',
c3fc2621
CW
434 ],
435 'visibility_id' => [
e501603b
TO
436 'name' => 'visibility_id',
437 'type' => CRM_Utils_Type::T_INT,
c3fc2621 438 'title' => ts('Option Visibility'),
a36434b9 439 'where' => 'civicrm_option_value.visibility_id',
e501603b 440 'default' => 'NULL',
522a26c9 441 'table_name' => 'civicrm_option_value',
442 'entity' => 'OptionValue',
443 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 444 'localizable' => 0,
e78e618d
PN
445 'pseudoconstant' => [
446 'optionGroupName' => 'visibility',
447 'optionEditPath' => 'civicrm/admin/options/visibility',
e6ca0a57 448 ],
a9d0587b 449 'add' => '2.2',
c3fc2621
CW
450 ],
451 'icon' => [
b412f764
CW
452 'name' => 'icon',
453 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 454 'title' => ts('Icon'),
215b423e 455 'description' => ts('crm-i icon class'),
b412f764
CW
456 'maxlength' => 255,
457 'size' => CRM_Utils_Type::HUGE,
a36434b9 458 'where' => 'civicrm_option_value.icon',
b412f764 459 'default' => 'NULL',
522a26c9 460 'table_name' => 'civicrm_option_value',
461 'entity' => 'OptionValue',
462 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 463 'localizable' => 0,
a9d0587b 464 'add' => '4.7',
c3fc2621
CW
465 ],
466 'color' => [
d73974ac
CW
467 'name' => 'color',
468 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 469 'title' => ts('Color'),
215b423e 470 'description' => ts('Hex color value e.g. #ffffff'),
d73974ac
CW
471 'maxlength' => 255,
472 'size' => CRM_Utils_Type::HUGE,
a36434b9 473 'where' => 'civicrm_option_value.color',
d73974ac 474 'default' => 'NULL',
522a26c9 475 'table_name' => 'civicrm_option_value',
476 'entity' => 'OptionValue',
477 'bao' => 'CRM_Core_BAO_OptionValue',
6a7e5e5d 478 'localizable' => 0,
a9d0587b 479 'add' => '4.7',
c3fc2621
CW
480 ],
481 ];
346aaaba 482 CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
e501603b 483 }
346aaaba 484 return Civi::$statics[__CLASS__]['fields'];
e501603b 485 }
c3fc2621 486
e501603b 487 /**
bd8e0b14 488 * Return a mapping from field-name to the corresponding key (as used in fields()).
e501603b
TO
489 *
490 * @return array
bd8e0b14 491 * Array(string $name => string $uniqueName).
e501603b 492 */
c3fc2621 493 public static function &fieldKeys() {
bd8e0b14
TO
494 if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) {
495 Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields()));
e501603b 496 }
bd8e0b14 497 return Civi::$statics[__CLASS__]['fieldKeys'];
e501603b 498 }
c3fc2621 499
e501603b
TO
500 /**
501 * Returns the names of this table
502 *
503 * @return string
504 */
c3fc2621 505 public static function getTableName() {
e501603b
TO
506 return CRM_Core_DAO::getLocaleTableName(self::$_tableName);
507 }
c3fc2621 508
e501603b
TO
509 /**
510 * Returns if this table needs to be logged
511 *
c3fc2621 512 * @return bool
e501603b 513 */
c3fc2621 514 public function getLog() {
e501603b
TO
515 return self::$_log;
516 }
c3fc2621 517
e501603b
TO
518 /**
519 * Returns the list of fields that can be imported
520 *
521 * @param bool $prefix
522 *
523 * @return array
524 */
c3fc2621
CW
525 public static function &import($prefix = FALSE) {
526 $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'option_value', $prefix, []);
60808919 527 return $r;
e501603b 528 }
c3fc2621 529
e501603b
TO
530 /**
531 * Returns the list of fields that can be exported
532 *
533 * @param bool $prefix
534 *
535 * @return array
536 */
c3fc2621
CW
537 public static function &export($prefix = FALSE) {
538 $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'option_value', $prefix, []);
60808919 539 return $r;
e501603b 540 }
c3fc2621 541
e7a6b91a
AS
542 /**
543 * Returns the list of indices
c3fc2621
CW
544 *
545 * @param bool $localize
546 *
547 * @return array
e7a6b91a
AS
548 */
549 public static function indices($localize = TRUE) {
c3fc2621
CW
550 $indices = [
551 'index_option_group_id_value' => [
e7a6b91a 552 'name' => 'index_option_group_id_value',
c3fc2621 553 'field' => [
e7a6b91a
AS
554 0 => 'value(128)',
555 1 => 'option_group_id',
c3fc2621
CW
556 ],
557 'localizable' => FALSE,
e7a6b91a 558 'sig' => 'civicrm_option_value::0::value(128)::option_group_id',
c3fc2621
CW
559 ],
560 'index_option_group_id_name' => [
e7a6b91a 561 'name' => 'index_option_group_id_name',
c3fc2621 562 'field' => [
e7a6b91a
AS
563 0 => 'name(128)',
564 1 => 'option_group_id',
c3fc2621
CW
565 ],
566 'localizable' => FALSE,
e7a6b91a 567 'sig' => 'civicrm_option_value::0::name(128)::option_group_id',
c3fc2621
CW
568 ],
569 ];
e7a6b91a
AS
570 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
571 }
c3fc2621 572
e501603b 573}