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