Add "labelField" metadata to entities
[civicrm-core.git] / CRM / Price / DAO / PriceFieldValue.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/Price/PriceFieldValue.xml
8 * DO NOT EDIT. Generated by CRM_Core_CodeGen
8ab43c93 9 * (GenCodeChecksum:4556e03b68f88f9fe61520ba3aa88be7)
e501603b 10 */
c3fc2621 11
f41f0342 12/**
c3fc2621 13 * Database access object for the PriceFieldValue entity.
f41f0342 14 */
e501603b 15class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
929a1c14
CW
16 const EXT = 'civicrm';
17 const TABLE_ADDED = '3.3';
d31fb4e3 18 const COMPONENT = 'CiviContribute';
c3fc2621 19
e501603b 20 /**
f41f0342 21 * Static instance to hold the table name.
e501603b
TO
22 *
23 * @var string
24 */
fa45b5b9 25 public static $_tableName = 'civicrm_price_field_value';
c3fc2621 26
e501603b 27 /**
f41f0342 28 * Should CiviCRM log any modifications to this table in the civicrm_log table.
e501603b 29 *
c3fc2621 30 * @var bool
e501603b 31 */
fa45b5b9 32 public static $_log = FALSE;
c3fc2621 33
e501603b
TO
34 /**
35 * Price Field Value
36 *
e6ca0a57 37 * @var int
e501603b
TO
38 */
39 public $id;
c3fc2621 40
e501603b
TO
41 /**
42 * FK to civicrm_price_field
43 *
e6ca0a57 44 * @var int
e501603b
TO
45 */
46 public $price_field_id;
c3fc2621 47
e501603b
TO
48 /**
49 * Price field option name
50 *
51 * @var string
52 */
53 public $name;
c3fc2621 54
e501603b
TO
55 /**
56 * Price field option label
57 *
58 * @var string
59 */
60 public $label;
c3fc2621 61
e501603b 62 /**
f95ab9d4 63 * Price field option description.
e501603b
TO
64 *
65 * @var text
66 */
67 public $description;
c3fc2621 68
e501603b
TO
69 /**
70 * Price field option pre help text.
71 *
72 * @var text
73 */
74 public $help_pre;
c3fc2621 75
e501603b
TO
76 /**
77 * Price field option post field help.
78 *
79 * @var text
80 */
81 public $help_post;
c3fc2621 82
e501603b
TO
83 /**
84 * Price field option amount
85 *
25e0f950 86 * @var float
e501603b
TO
87 */
88 public $amount;
c3fc2621 89
e501603b
TO
90 /**
91 * Number of participants per field option
92 *
e6ca0a57 93 * @var int
e501603b
TO
94 */
95 public $count;
c3fc2621 96
e501603b
TO
97 /**
98 * Max number of participants per field options
99 *
e6ca0a57 100 * @var int
e501603b
TO
101 */
102 public $max_value;
c3fc2621 103
e501603b
TO
104 /**
105 * Order in which the field options should appear
106 *
107 * @var int
108 */
109 public $weight;
c3fc2621 110
e501603b
TO
111 /**
112 * FK to Membership Type
113 *
e6ca0a57 114 * @var int
e501603b
TO
115 */
116 public $membership_type_id;
c3fc2621 117
e501603b
TO
118 /**
119 * Number of terms for this membership
120 *
e6ca0a57 121 * @var int
e501603b
TO
122 */
123 public $membership_num_terms;
c3fc2621 124
e501603b
TO
125 /**
126 * Is this default price field option
127 *
e6ca0a57 128 * @var bool
e501603b
TO
129 */
130 public $is_default;
c3fc2621 131
e501603b
TO
132 /**
133 * Is this price field value active
134 *
e6ca0a57 135 * @var bool
e501603b
TO
136 */
137 public $is_active;
c3fc2621 138
e501603b
TO
139 /**
140 * FK to Financial Type.
141 *
e6ca0a57 142 * @var int
e501603b
TO
143 */
144 public $financial_type_id;
c3fc2621 145
e501603b 146 /**
5afce5ad 147 * Portion of total amount which is NOT tax deductible.
e501603b
TO
148 *
149 * @var float
150 */
5afce5ad 151 public $non_deductible_amount;
c3fc2621 152
2db35bf6 153 /**
64ca7bcd 154 * Implicit FK to civicrm_option_group with name = 'visibility'
2db35bf6 155 *
e6ca0a57 156 * @var int
2db35bf6
AF
157 */
158 public $visibility_id;
c3fc2621 159
e501603b 160 /**
f41f0342 161 * Class constructor.
e501603b 162 */
c3fc2621 163 public function __construct() {
e501603b
TO
164 $this->__table = 'civicrm_price_field_value';
165 parent::__construct();
166 }
c3fc2621 167
449c4e6b
CW
168 /**
169 * Returns localized title of this entity.
7b66c3b5
AH
170 *
171 * @param bool $plural
172 * Whether to return the plural version of the title.
449c4e6b 173 */
7b66c3b5
AH
174 public static function getEntityTitle($plural = FALSE) {
175 return $plural ? ts('Price Field Values') : ts('Price Field Value');
449c4e6b
CW
176 }
177
e501603b 178 /**
f41f0342 179 * Returns foreign keys and entity references.
e501603b
TO
180 *
181 * @return array
182 * [CRM_Core_Reference_Interface]
183 */
c3fc2621 184 public static function getReferenceColumns() {
346aaaba 185 if (!isset(Civi::$statics[__CLASS__]['links'])) {
fa45b5b9 186 Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
c3fc2621
CW
187 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'price_field_id', 'civicrm_price_field', 'id');
188 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'membership_type_id', 'civicrm_membership_type', 'id');
189 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
346aaaba 190 CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
e501603b 191 }
346aaaba 192 return Civi::$statics[__CLASS__]['links'];
e501603b 193 }
c3fc2621 194
e501603b
TO
195 /**
196 * Returns all the column names of this table
197 *
198 * @return array
199 */
c3fc2621 200 public static function &fields() {
346aaaba 201 if (!isset(Civi::$statics[__CLASS__]['fields'])) {
c3fc2621
CW
202 Civi::$statics[__CLASS__]['fields'] = [
203 'id' => [
e501603b
TO
204 'name' => 'id',
205 'type' => CRM_Utils_Type::T_INT,
c3fc2621 206 'title' => ts('Price Field Value ID'),
215b423e 207 'description' => ts('Price Field Value'),
c3fc2621 208 'required' => TRUE,
a36434b9 209 'where' => 'civicrm_price_field_value.id',
522a26c9 210 'table_name' => 'civicrm_price_field_value',
211 'entity' => 'PriceFieldValue',
212 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 213 'localizable' => 0,
a9d0587b 214 'add' => '3.3',
c3fc2621
CW
215 ],
216 'price_field_id' => [
e501603b
TO
217 'name' => 'price_field_id',
218 'type' => CRM_Utils_Type::T_INT,
c3fc2621 219 'title' => ts('Price Field'),
215b423e 220 'description' => ts('FK to civicrm_price_field'),
c3fc2621 221 'required' => TRUE,
a36434b9 222 'where' => 'civicrm_price_field_value.price_field_id',
522a26c9 223 'table_name' => 'civicrm_price_field_value',
224 'entity' => 'PriceFieldValue',
225 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 226 'localizable' => 0,
e501603b 227 'FKClassName' => 'CRM_Price_DAO_PriceField',
a9d0587b 228 'add' => '3.3',
c3fc2621
CW
229 ],
230 'name' => [
e501603b
TO
231 'name' => 'name',
232 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 233 'title' => ts('Name'),
215b423e 234 'description' => ts('Price field option name'),
e501603b
TO
235 'maxlength' => 255,
236 'size' => CRM_Utils_Type::HUGE,
a36434b9 237 'where' => 'civicrm_price_field_value.name',
7154c2c0 238 'default' => 'NULL',
522a26c9 239 'table_name' => 'civicrm_price_field_value',
240 'entity' => 'PriceFieldValue',
241 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 242 'localizable' => 0,
c3fc2621 243 'html' => [
e501603b 244 'type' => 'Text',
c3fc2621 245 ],
a9d0587b 246 'add' => '3.3',
c3fc2621
CW
247 ],
248 'label' => [
e501603b
TO
249 'name' => 'label',
250 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 251 'title' => ts('Label'),
215b423e 252 'description' => ts('Price field option label'),
e501603b
TO
253 'maxlength' => 255,
254 'size' => CRM_Utils_Type::HUGE,
a36434b9 255 'where' => 'civicrm_price_field_value.label',
7154c2c0 256 'default' => 'NULL',
522a26c9 257 'table_name' => 'civicrm_price_field_value',
258 'entity' => 'PriceFieldValue',
259 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 260 'localizable' => 1,
c3fc2621 261 'html' => [
e501603b 262 'type' => 'Text',
c3fc2621 263 ],
a9d0587b 264 'add' => '3.3',
c3fc2621
CW
265 ],
266 'description' => [
e501603b
TO
267 'name' => 'description',
268 'type' => CRM_Utils_Type::T_TEXT,
c3fc2621 269 'title' => ts('Description'),
f95ab9d4 270 'description' => ts('Price field option description.'),
e501603b
TO
271 'rows' => 2,
272 'cols' => 60,
a36434b9 273 'where' => 'civicrm_price_field_value.description',
e501603b 274 'default' => 'NULL',
522a26c9 275 'table_name' => 'civicrm_price_field_value',
276 'entity' => 'PriceFieldValue',
277 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 278 'localizable' => 1,
c3fc2621 279 'html' => [
e501603b 280 'type' => 'TextArea',
c3fc2621 281 ],
a9d0587b 282 'add' => '3.3',
c3fc2621
CW
283 ],
284 'help_pre' => [
e501603b
TO
285 'name' => 'help_pre',
286 'type' => CRM_Utils_Type::T_TEXT,
c3fc2621 287 'title' => ts('Help Pre'),
215b423e 288 'description' => ts('Price field option pre help text.'),
e501603b
TO
289 'rows' => 2,
290 'cols' => 60,
a36434b9 291 'where' => 'civicrm_price_field_value.help_pre',
e501603b 292 'default' => 'NULL',
522a26c9 293 'table_name' => 'civicrm_price_field_value',
294 'entity' => 'PriceFieldValue',
295 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 296 'localizable' => 1,
c3fc2621 297 'html' => [
e501603b 298 'type' => 'TextArea',
c3fc2621 299 ],
a9d0587b 300 'add' => '4.7',
c3fc2621
CW
301 ],
302 'help_post' => [
e501603b
TO
303 'name' => 'help_post',
304 'type' => CRM_Utils_Type::T_TEXT,
c3fc2621 305 'title' => ts('Help Post'),
215b423e 306 'description' => ts('Price field option post field help.'),
e501603b
TO
307 'rows' => 2,
308 'cols' => 60,
a36434b9 309 'where' => 'civicrm_price_field_value.help_post',
e501603b 310 'default' => 'NULL',
522a26c9 311 'table_name' => 'civicrm_price_field_value',
312 'entity' => 'PriceFieldValue',
313 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 314 'localizable' => 1,
c3fc2621 315 'html' => [
e501603b 316 'type' => 'TextArea',
c3fc2621 317 ],
a9d0587b 318 'add' => '4.7',
c3fc2621
CW
319 ],
320 'amount' => [
e501603b 321 'name' => 'amount',
25e0f950 322 'type' => CRM_Utils_Type::T_MONEY,
c3fc2621 323 'title' => ts('Amount'),
215b423e 324 'description' => ts('Price field option amount'),
c3fc2621
CW
325 'required' => TRUE,
326 'precision' => [
25e0f950 327 18,
fb607354 328 9,
c3fc2621 329 ],
a36434b9 330 'where' => 'civicrm_price_field_value.amount',
522a26c9 331 'table_name' => 'civicrm_price_field_value',
332 'entity' => 'PriceFieldValue',
333 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 334 'localizable' => 0,
c3fc2621 335 'html' => [
e501603b 336 'type' => 'Text',
c3fc2621 337 ],
a9d0587b 338 'add' => '3.3',
c3fc2621
CW
339 ],
340 'count' => [
e501603b
TO
341 'name' => 'count',
342 'type' => CRM_Utils_Type::T_INT,
c3fc2621 343 'title' => ts('Count'),
215b423e 344 'description' => ts('Number of participants per field option'),
a36434b9 345 'where' => 'civicrm_price_field_value.count',
e501603b 346 'default' => 'NULL',
522a26c9 347 'table_name' => 'civicrm_price_field_value',
348 'entity' => 'PriceFieldValue',
349 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 350 'localizable' => 0,
c3fc2621 351 'html' => [
e501603b 352 'type' => 'Text',
c3fc2621 353 ],
a9d0587b 354 'add' => '3.3',
c3fc2621
CW
355 ],
356 'max_value' => [
e501603b
TO
357 'name' => 'max_value',
358 'type' => CRM_Utils_Type::T_INT,
c3fc2621 359 'title' => ts('Max Value'),
215b423e 360 'description' => ts('Max number of participants per field options'),
a36434b9 361 'where' => 'civicrm_price_field_value.max_value',
e501603b 362 'default' => 'NULL',
522a26c9 363 'table_name' => 'civicrm_price_field_value',
364 'entity' => 'PriceFieldValue',
365 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 366 'localizable' => 0,
c3fc2621 367 'html' => [
e501603b 368 'type' => 'Text',
c3fc2621 369 ],
a9d0587b 370 'add' => '3.3',
c3fc2621
CW
371 ],
372 'weight' => [
e501603b
TO
373 'name' => 'weight',
374 'type' => CRM_Utils_Type::T_INT,
c3fc2621 375 'title' => ts('Order'),
215b423e 376 'description' => ts('Order in which the field options should appear'),
a36434b9 377 'where' => 'civicrm_price_field_value.weight',
e501603b 378 'default' => '1',
522a26c9 379 'table_name' => 'civicrm_price_field_value',
380 'entity' => 'PriceFieldValue',
381 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 382 'localizable' => 0,
c3fc2621 383 'html' => [
e501603b 384 'type' => 'Text',
c3fc2621 385 ],
a9d0587b 386 'add' => '3.3',
c3fc2621
CW
387 ],
388 'membership_type_id' => [
e501603b
TO
389 'name' => 'membership_type_id',
390 'type' => CRM_Utils_Type::T_INT,
c3fc2621 391 'title' => ts('Membership Type'),
215b423e 392 'description' => ts('FK to Membership Type'),
a36434b9 393 'where' => 'civicrm_price_field_value.membership_type_id',
e501603b 394 'default' => 'NULL',
522a26c9 395 'table_name' => 'civicrm_price_field_value',
396 'entity' => 'PriceFieldValue',
397 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 398 'localizable' => 0,
e501603b 399 'FKClassName' => 'CRM_Member_DAO_MembershipType',
c3fc2621 400 'html' => [
e501603b 401 'type' => 'Select',
c3fc2621 402 ],
a9d0587b 403 'add' => '3.4',
c3fc2621
CW
404 ],
405 'membership_num_terms' => [
e501603b
TO
406 'name' => 'membership_num_terms',
407 'type' => CRM_Utils_Type::T_INT,
c3fc2621 408 'title' => ts('Membership Num Terms'),
215b423e 409 'description' => ts('Number of terms for this membership'),
a36434b9 410 'where' => 'civicrm_price_field_value.membership_num_terms',
e501603b 411 'default' => 'NULL',
522a26c9 412 'table_name' => 'civicrm_price_field_value',
413 'entity' => 'PriceFieldValue',
414 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 415 'localizable' => 0,
c3fc2621 416 'html' => [
e501603b 417 'type' => 'Text',
c3fc2621 418 ],
a9d0587b 419 'add' => '4.3',
c3fc2621
CW
420 ],
421 'is_default' => [
e501603b
TO
422 'name' => 'is_default',
423 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 424 'title' => ts('Is Default Price Field Option?'),
215b423e 425 'description' => ts('Is this default price field option'),
a36434b9 426 'where' => 'civicrm_price_field_value.is_default',
45a83e42 427 'default' => '0',
522a26c9 428 'table_name' => 'civicrm_price_field_value',
429 'entity' => 'PriceFieldValue',
430 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 431 'localizable' => 0,
c3fc2621 432 'html' => [
e501603b 433 'type' => 'CheckBox',
c3fc2621 434 ],
a9d0587b 435 'add' => '3.3',
c3fc2621
CW
436 ],
437 'is_active' => [
e501603b
TO
438 'name' => 'is_active',
439 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 440 'title' => ts('Price Field Value is Active'),
215b423e 441 'description' => ts('Is this price field value active'),
a36434b9 442 'where' => 'civicrm_price_field_value.is_active',
e501603b 443 'default' => '1',
522a26c9 444 'table_name' => 'civicrm_price_field_value',
445 'entity' => 'PriceFieldValue',
446 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 447 'localizable' => 0,
a9d0587b 448 'add' => '3.3',
c3fc2621
CW
449 ],
450 'financial_type_id' => [
e501603b
TO
451 'name' => 'financial_type_id',
452 'type' => CRM_Utils_Type::T_INT,
c3fc2621 453 'title' => ts('Financial Type'),
215b423e 454 'description' => ts('FK to Financial Type.'),
a36434b9 455 'where' => 'civicrm_price_field_value.financial_type_id',
e501603b 456 'default' => 'NULL',
522a26c9 457 'table_name' => 'civicrm_price_field_value',
458 'entity' => 'PriceFieldValue',
459 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 460 'localizable' => 0,
e501603b 461 'FKClassName' => 'CRM_Financial_DAO_FinancialType',
c3fc2621 462 'html' => [
e501603b 463 'type' => 'Select',
c3fc2621
CW
464 ],
465 'pseudoconstant' => [
e501603b
TO
466 'table' => 'civicrm_financial_type',
467 'keyColumn' => 'id',
468 'labelColumn' => 'name',
e6ca0a57 469 ],
a9d0587b 470 'add' => '4.3',
c3fc2621
CW
471 ],
472 'non_deductible_amount' => [
5afce5ad 473 'name' => 'non_deductible_amount',
e501603b 474 'type' => CRM_Utils_Type::T_MONEY,
c3fc2621 475 'title' => ts('Non-deductible Amount'),
215b423e 476 'description' => ts('Portion of total amount which is NOT tax deductible.'),
c3fc2621
CW
477 'required' => TRUE,
478 'precision' => [
e501603b 479 20,
fb607354 480 2,
c3fc2621 481 ],
a36434b9 482 'where' => 'civicrm_price_field_value.non_deductible_amount',
483 'headerPattern' => '/non?.?deduct/i',
484 'dataPattern' => '/^\d+(\.\d{2})?$/',
e501603b 485 'default' => '0.0',
522a26c9 486 'table_name' => 'civicrm_price_field_value',
487 'entity' => 'PriceFieldValue',
488 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 489 'localizable' => 0,
c3fc2621 490 'html' => [
e501603b 491 'type' => 'Text',
c3fc2621 492 ],
a9d0587b 493 'add' => '4.7',
c3fc2621
CW
494 ],
495 'visibility_id' => [
2db35bf6
AF
496 'name' => 'visibility_id',
497 'type' => CRM_Utils_Type::T_INT,
c3fc2621 498 'title' => ts('Price Field Option Visibility'),
215b423e 499 'description' => ts('Implicit FK to civicrm_option_group with name = \'visibility\''),
a36434b9 500 'where' => 'civicrm_price_field_value.visibility_id',
2db35bf6
AF
501 'default' => '1',
502 'table_name' => 'civicrm_price_field_value',
503 'entity' => 'PriceFieldValue',
504 'bao' => 'CRM_Price_BAO_PriceFieldValue',
505 'localizable' => 0,
c3fc2621 506 'html' => [
2db35bf6 507 'type' => 'Select',
c3fc2621
CW
508 ],
509 'pseudoconstant' => [
2db35bf6
AF
510 'optionGroupName' => 'visibility',
511 'optionEditPath' => 'civicrm/admin/options/visibility',
e6ca0a57 512 ],
a9d0587b 513 'add' => '4.7',
c3fc2621
CW
514 ],
515 ];
346aaaba 516 CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
e501603b 517 }
346aaaba 518 return Civi::$statics[__CLASS__]['fields'];
e501603b 519 }
c3fc2621 520
e501603b 521 /**
bd8e0b14 522 * Return a mapping from field-name to the corresponding key (as used in fields()).
e501603b
TO
523 *
524 * @return array
bd8e0b14 525 * Array(string $name => string $uniqueName).
e501603b 526 */
c3fc2621 527 public static function &fieldKeys() {
bd8e0b14
TO
528 if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) {
529 Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields()));
e501603b 530 }
bd8e0b14 531 return Civi::$statics[__CLASS__]['fieldKeys'];
e501603b 532 }
c3fc2621 533
e501603b
TO
534 /**
535 * Returns the names of this table
536 *
537 * @return string
538 */
c3fc2621 539 public static function getTableName() {
e501603b
TO
540 return CRM_Core_DAO::getLocaleTableName(self::$_tableName);
541 }
c3fc2621 542
e501603b
TO
543 /**
544 * Returns if this table needs to be logged
545 *
c3fc2621 546 * @return bool
e501603b 547 */
c3fc2621 548 public function getLog() {
e501603b
TO
549 return self::$_log;
550 }
c3fc2621 551
e501603b
TO
552 /**
553 * Returns the list of fields that can be imported
554 *
555 * @param bool $prefix
556 *
557 * @return array
558 */
c3fc2621
CW
559 public static function &import($prefix = FALSE) {
560 $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'price_field_value', $prefix, []);
60808919 561 return $r;
e501603b 562 }
c3fc2621 563
e501603b
TO
564 /**
565 * Returns the list of fields that can be exported
566 *
567 * @param bool $prefix
568 *
569 * @return array
570 */
c3fc2621
CW
571 public static function &export($prefix = FALSE) {
572 $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'price_field_value', $prefix, []);
60808919 573 return $r;
e501603b 574 }
c3fc2621 575
e7a6b91a
AS
576 /**
577 * Returns the list of indices
c3fc2621
CW
578 *
579 * @param bool $localize
580 *
581 * @return array
e7a6b91a
AS
582 */
583 public static function indices($localize = TRUE) {
c3fc2621 584 $indices = [];
e7a6b91a
AS
585 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
586 }
c3fc2621 587
e501603b 588}