Merge pull request #21854 from braders/feature/dev-core-2919-make-hidden-modal-button...
[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
2562d09a 9 * (GenCodeChecksum:7da3309222cffae75ba3d149e8acb395)
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,
2cbbebe8
A
214 'html' => [
215 'type' => 'Number',
216 ],
1fe423d6 217 'readonly' => TRUE,
a9d0587b 218 'add' => '3.3',
c3fc2621
CW
219 ],
220 'price_field_id' => [
e501603b
TO
221 'name' => 'price_field_id',
222 'type' => CRM_Utils_Type::T_INT,
2cbbebe8 223 'title' => ts('Price Field ID'),
215b423e 224 'description' => ts('FK to civicrm_price_field'),
c3fc2621 225 'required' => TRUE,
a36434b9 226 'where' => 'civicrm_price_field_value.price_field_id',
522a26c9 227 'table_name' => 'civicrm_price_field_value',
228 'entity' => 'PriceFieldValue',
229 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 230 'localizable' => 0,
e501603b 231 'FKClassName' => 'CRM_Price_DAO_PriceField',
2cbbebe8
A
232 'html' => [
233 'label' => ts("Price Field"),
234 ],
a9d0587b 235 'add' => '3.3',
c3fc2621
CW
236 ],
237 'name' => [
e501603b
TO
238 'name' => 'name',
239 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 240 'title' => ts('Name'),
215b423e 241 'description' => ts('Price field option name'),
e501603b
TO
242 'maxlength' => 255,
243 'size' => CRM_Utils_Type::HUGE,
a36434b9 244 'where' => 'civicrm_price_field_value.name',
5fb0de1f 245 'default' => NULL,
522a26c9 246 'table_name' => 'civicrm_price_field_value',
247 'entity' => 'PriceFieldValue',
248 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 249 'localizable' => 0,
c3fc2621 250 'html' => [
e501603b 251 'type' => 'Text',
c3fc2621 252 ],
a9d0587b 253 'add' => '3.3',
c3fc2621
CW
254 ],
255 'label' => [
e501603b
TO
256 'name' => 'label',
257 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 258 'title' => ts('Label'),
215b423e 259 'description' => ts('Price field option label'),
e501603b
TO
260 'maxlength' => 255,
261 'size' => CRM_Utils_Type::HUGE,
a36434b9 262 'where' => 'civicrm_price_field_value.label',
5fb0de1f 263 'default' => NULL,
522a26c9 264 'table_name' => 'civicrm_price_field_value',
265 'entity' => 'PriceFieldValue',
266 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 267 'localizable' => 1,
c3fc2621 268 'html' => [
e501603b 269 'type' => 'Text',
c3fc2621 270 ],
a9d0587b 271 'add' => '3.3',
c3fc2621
CW
272 ],
273 'description' => [
e501603b
TO
274 'name' => 'description',
275 'type' => CRM_Utils_Type::T_TEXT,
c3fc2621 276 'title' => ts('Description'),
f95ab9d4 277 'description' => ts('Price field option description.'),
e501603b
TO
278 'rows' => 2,
279 'cols' => 60,
a36434b9 280 'where' => 'civicrm_price_field_value.description',
5fb0de1f 281 'default' => NULL,
522a26c9 282 'table_name' => 'civicrm_price_field_value',
283 'entity' => 'PriceFieldValue',
284 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 285 'localizable' => 1,
c3fc2621 286 'html' => [
e501603b 287 'type' => 'TextArea',
c23563e3 288 'label' => ts("Description"),
c3fc2621 289 ],
a9d0587b 290 'add' => '3.3',
c3fc2621
CW
291 ],
292 'help_pre' => [
e501603b
TO
293 'name' => 'help_pre',
294 'type' => CRM_Utils_Type::T_TEXT,
c3fc2621 295 'title' => ts('Help Pre'),
215b423e 296 'description' => ts('Price field option pre help text.'),
e501603b
TO
297 'rows' => 2,
298 'cols' => 60,
a36434b9 299 'where' => 'civicrm_price_field_value.help_pre',
5fb0de1f 300 'default' => NULL,
522a26c9 301 'table_name' => 'civicrm_price_field_value',
302 'entity' => 'PriceFieldValue',
303 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 304 'localizable' => 1,
c3fc2621 305 'html' => [
e501603b 306 'type' => 'TextArea',
c23563e3 307 'label' => ts("Pre Help"),
c3fc2621 308 ],
a9d0587b 309 'add' => '4.7',
c3fc2621
CW
310 ],
311 'help_post' => [
e501603b
TO
312 'name' => 'help_post',
313 'type' => CRM_Utils_Type::T_TEXT,
c3fc2621 314 'title' => ts('Help Post'),
215b423e 315 'description' => ts('Price field option post field help.'),
e501603b
TO
316 'rows' => 2,
317 'cols' => 60,
a36434b9 318 'where' => 'civicrm_price_field_value.help_post',
5fb0de1f 319 'default' => NULL,
522a26c9 320 'table_name' => 'civicrm_price_field_value',
321 'entity' => 'PriceFieldValue',
322 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 323 'localizable' => 1,
c3fc2621 324 'html' => [
e501603b 325 'type' => 'TextArea',
c23563e3 326 'label' => ts("Post Help"),
c3fc2621 327 ],
a9d0587b 328 'add' => '4.7',
c3fc2621
CW
329 ],
330 'amount' => [
e501603b 331 'name' => 'amount',
25e0f950 332 'type' => CRM_Utils_Type::T_MONEY,
c3fc2621 333 'title' => ts('Amount'),
215b423e 334 'description' => ts('Price field option amount'),
c3fc2621
CW
335 'required' => TRUE,
336 'precision' => [
25e0f950 337 18,
fb607354 338 9,
c3fc2621 339 ],
a36434b9 340 'where' => 'civicrm_price_field_value.amount',
522a26c9 341 'table_name' => 'civicrm_price_field_value',
342 'entity' => 'PriceFieldValue',
343 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 344 'localizable' => 0,
c3fc2621 345 'html' => [
e501603b 346 'type' => 'Text',
c3fc2621 347 ],
a9d0587b 348 'add' => '3.3',
c3fc2621
CW
349 ],
350 'count' => [
e501603b
TO
351 'name' => 'count',
352 'type' => CRM_Utils_Type::T_INT,
c3fc2621 353 'title' => ts('Count'),
215b423e 354 'description' => ts('Number of participants per field option'),
a36434b9 355 'where' => 'civicrm_price_field_value.count',
5fb0de1f 356 'default' => NULL,
522a26c9 357 'table_name' => 'civicrm_price_field_value',
358 'entity' => 'PriceFieldValue',
359 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 360 'localizable' => 0,
c3fc2621 361 'html' => [
e501603b 362 'type' => 'Text',
c23563e3 363 'label' => ts("Count"),
c3fc2621 364 ],
a9d0587b 365 'add' => '3.3',
c3fc2621
CW
366 ],
367 'max_value' => [
e501603b
TO
368 'name' => 'max_value',
369 'type' => CRM_Utils_Type::T_INT,
c3fc2621 370 'title' => ts('Max Value'),
215b423e 371 'description' => ts('Max number of participants per field options'),
a36434b9 372 'where' => 'civicrm_price_field_value.max_value',
5fb0de1f 373 'default' => NULL,
522a26c9 374 'table_name' => 'civicrm_price_field_value',
375 'entity' => 'PriceFieldValue',
376 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 377 'localizable' => 0,
c3fc2621 378 'html' => [
e501603b 379 'type' => 'Text',
c23563e3 380 'label' => ts("Max Value"),
c3fc2621 381 ],
a9d0587b 382 'add' => '3.3',
c3fc2621
CW
383 ],
384 'weight' => [
e501603b
TO
385 'name' => 'weight',
386 'type' => CRM_Utils_Type::T_INT,
c3fc2621 387 'title' => ts('Order'),
215b423e 388 'description' => ts('Order in which the field options should appear'),
a36434b9 389 'where' => 'civicrm_price_field_value.weight',
e501603b 390 'default' => '1',
522a26c9 391 'table_name' => 'civicrm_price_field_value',
392 'entity' => 'PriceFieldValue',
393 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 394 'localizable' => 0,
c3fc2621 395 'html' => [
e501603b 396 'type' => 'Text',
c3fc2621 397 ],
a9d0587b 398 'add' => '3.3',
c3fc2621
CW
399 ],
400 'membership_type_id' => [
e501603b
TO
401 'name' => 'membership_type_id',
402 'type' => CRM_Utils_Type::T_INT,
2cbbebe8 403 'title' => ts('Membership Type ID'),
215b423e 404 'description' => ts('FK to Membership Type'),
a36434b9 405 'where' => 'civicrm_price_field_value.membership_type_id',
5fb0de1f 406 'default' => NULL,
522a26c9 407 'table_name' => 'civicrm_price_field_value',
408 'entity' => 'PriceFieldValue',
409 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 410 'localizable' => 0,
e501603b 411 'FKClassName' => 'CRM_Member_DAO_MembershipType',
c3fc2621 412 'html' => [
e501603b 413 'type' => 'Select',
2cbbebe8 414 'label' => ts("Membership Type"),
c3fc2621 415 ],
a9d0587b 416 'add' => '3.4',
c3fc2621
CW
417 ],
418 'membership_num_terms' => [
e501603b
TO
419 'name' => 'membership_num_terms',
420 'type' => CRM_Utils_Type::T_INT,
c3fc2621 421 'title' => ts('Membership Num Terms'),
215b423e 422 'description' => ts('Number of terms for this membership'),
a36434b9 423 'where' => 'civicrm_price_field_value.membership_num_terms',
5fb0de1f 424 'default' => NULL,
522a26c9 425 'table_name' => 'civicrm_price_field_value',
426 'entity' => 'PriceFieldValue',
427 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 428 'localizable' => 0,
c3fc2621 429 'html' => [
e501603b 430 'type' => 'Text',
c23563e3 431 'label' => ts("Number of terms"),
c3fc2621 432 ],
a9d0587b 433 'add' => '4.3',
c3fc2621
CW
434 ],
435 'is_default' => [
e501603b
TO
436 'name' => 'is_default',
437 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 438 'title' => ts('Is Default Price Field Option?'),
215b423e 439 'description' => ts('Is this default price field option'),
a36434b9 440 'where' => 'civicrm_price_field_value.is_default',
45a83e42 441 'default' => '0',
522a26c9 442 'table_name' => 'civicrm_price_field_value',
443 'entity' => 'PriceFieldValue',
444 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 445 'localizable' => 0,
c3fc2621 446 'html' => [
e501603b 447 'type' => 'CheckBox',
c3fc2621 448 ],
a9d0587b 449 'add' => '3.3',
c3fc2621
CW
450 ],
451 'is_active' => [
e501603b
TO
452 'name' => 'is_active',
453 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 454 'title' => ts('Price Field Value is Active'),
215b423e 455 'description' => ts('Is this price field value active'),
a36434b9 456 'where' => 'civicrm_price_field_value.is_active',
e501603b 457 'default' => '1',
522a26c9 458 'table_name' => 'civicrm_price_field_value',
459 'entity' => 'PriceFieldValue',
460 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 461 'localizable' => 0,
a9d0587b 462 'add' => '3.3',
c3fc2621
CW
463 ],
464 'financial_type_id' => [
e501603b
TO
465 'name' => 'financial_type_id',
466 'type' => CRM_Utils_Type::T_INT,
2cbbebe8 467 'title' => ts('Financial Type ID'),
215b423e 468 'description' => ts('FK to Financial Type.'),
a36434b9 469 'where' => 'civicrm_price_field_value.financial_type_id',
5fb0de1f 470 'default' => NULL,
522a26c9 471 'table_name' => 'civicrm_price_field_value',
472 'entity' => 'PriceFieldValue',
473 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 474 'localizable' => 0,
e501603b 475 'FKClassName' => 'CRM_Financial_DAO_FinancialType',
c3fc2621 476 'html' => [
e501603b 477 'type' => 'Select',
2cbbebe8 478 'label' => ts("Financial Type"),
c3fc2621
CW
479 ],
480 'pseudoconstant' => [
e501603b
TO
481 'table' => 'civicrm_financial_type',
482 'keyColumn' => 'id',
483 'labelColumn' => 'name',
e6ca0a57 484 ],
a9d0587b 485 'add' => '4.3',
c3fc2621
CW
486 ],
487 'non_deductible_amount' => [
5afce5ad 488 'name' => 'non_deductible_amount',
e501603b 489 'type' => CRM_Utils_Type::T_MONEY,
c3fc2621 490 'title' => ts('Non-deductible Amount'),
215b423e 491 'description' => ts('Portion of total amount which is NOT tax deductible.'),
c3fc2621
CW
492 'required' => TRUE,
493 'precision' => [
e501603b 494 20,
fb607354 495 2,
c3fc2621 496 ],
a36434b9 497 'where' => 'civicrm_price_field_value.non_deductible_amount',
498 'headerPattern' => '/non?.?deduct/i',
499 'dataPattern' => '/^\d+(\.\d{2})?$/',
e501603b 500 'default' => '0.0',
522a26c9 501 'table_name' => 'civicrm_price_field_value',
502 'entity' => 'PriceFieldValue',
503 'bao' => 'CRM_Price_BAO_PriceFieldValue',
6a7e5e5d 504 'localizable' => 0,
c3fc2621 505 'html' => [
e501603b 506 'type' => 'Text',
c3fc2621 507 ],
a9d0587b 508 'add' => '4.7',
c3fc2621
CW
509 ],
510 'visibility_id' => [
2db35bf6
AF
511 'name' => 'visibility_id',
512 'type' => CRM_Utils_Type::T_INT,
c3fc2621 513 'title' => ts('Price Field Option Visibility'),
215b423e 514 'description' => ts('Implicit FK to civicrm_option_group with name = \'visibility\''),
a36434b9 515 'where' => 'civicrm_price_field_value.visibility_id',
2db35bf6
AF
516 'default' => '1',
517 'table_name' => 'civicrm_price_field_value',
518 'entity' => 'PriceFieldValue',
519 'bao' => 'CRM_Price_BAO_PriceFieldValue',
520 'localizable' => 0,
c3fc2621 521 'html' => [
2db35bf6 522 'type' => 'Select',
c3fc2621
CW
523 ],
524 'pseudoconstant' => [
2db35bf6
AF
525 'optionGroupName' => 'visibility',
526 'optionEditPath' => 'civicrm/admin/options/visibility',
e6ca0a57 527 ],
a9d0587b 528 'add' => '4.7',
c3fc2621
CW
529 ],
530 ];
346aaaba 531 CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
e501603b 532 }
346aaaba 533 return Civi::$statics[__CLASS__]['fields'];
e501603b 534 }
c3fc2621 535
e501603b 536 /**
bd8e0b14 537 * Return a mapping from field-name to the corresponding key (as used in fields()).
e501603b
TO
538 *
539 * @return array
bd8e0b14 540 * Array(string $name => string $uniqueName).
e501603b 541 */
c3fc2621 542 public static function &fieldKeys() {
bd8e0b14
TO
543 if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) {
544 Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields()));
e501603b 545 }
bd8e0b14 546 return Civi::$statics[__CLASS__]['fieldKeys'];
e501603b 547 }
c3fc2621 548
e501603b
TO
549 /**
550 * Returns the names of this table
551 *
552 * @return string
553 */
c3fc2621 554 public static function getTableName() {
e501603b
TO
555 return CRM_Core_DAO::getLocaleTableName(self::$_tableName);
556 }
c3fc2621 557
e501603b
TO
558 /**
559 * Returns if this table needs to be logged
560 *
c3fc2621 561 * @return bool
e501603b 562 */
c3fc2621 563 public function getLog() {
e501603b
TO
564 return self::$_log;
565 }
c3fc2621 566
e501603b
TO
567 /**
568 * Returns the list of fields that can be imported
569 *
570 * @param bool $prefix
571 *
572 * @return array
573 */
c3fc2621
CW
574 public static function &import($prefix = FALSE) {
575 $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'price_field_value', $prefix, []);
60808919 576 return $r;
e501603b 577 }
c3fc2621 578
e501603b
TO
579 /**
580 * Returns the list of fields that can be exported
581 *
582 * @param bool $prefix
583 *
584 * @return array
585 */
c3fc2621
CW
586 public static function &export($prefix = FALSE) {
587 $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'price_field_value', $prefix, []);
60808919 588 return $r;
e501603b 589 }
c3fc2621 590
e7a6b91a
AS
591 /**
592 * Returns the list of indices
c3fc2621
CW
593 *
594 * @param bool $localize
595 *
596 * @return array
e7a6b91a
AS
597 */
598 public static function indices($localize = TRUE) {
c3fc2621 599 $indices = [];
e7a6b91a
AS
600 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
601 }
c3fc2621 602
e501603b 603}