Merge pull request #19690 from colemanw/api3Operators
[civicrm-core.git] / settings / Developer.setting.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 */
17 /*
18 * Settings metadata file
19 */
20
21 return [
22 'assetCache' => [
23 'group_name' => 'Developer Preferences',
24 'group' => 'developer',
25 'name' => 'assetCache',
26 'type' => 'String',
27 'quick_form_type' => 'Select',
28 'html_type' => 'Select',
29 'html_attributes' => [
30 //'class' => 'crm-select2',
31 ],
32 'default' => 'auto',
33 'add' => '4.7',
34 'title' => ts('Asset Caching'),
35 'is_domain' => 1,
36 'is_contact' => 0,
37 'description' => ts('Store computed JS/CSS content in cache files? (Note: In "Auto" mode, the "Debug" setting will determine whether to activate the cache.)'),
38 'help_text' => NULL,
39 'pseudoconstant' => [
40 'callback' => '\Civi\Core\AssetBuilder::getCacheModes',
41 ],
42 ],
43 'userFrameworkLogging' => [
44 'group_name' => 'Developer Preferences',
45 'group' => 'developer',
46 'name' => 'userFrameworkLogging',
47 'type' => 'Boolean',
48 'quick_form_type' => 'YesNo',
49 'default' => '0',
50 'add' => '4.3',
51 'title' => ts('Enable Drupal Watchdog Logging'),
52 'is_domain' => 1,
53 'is_contact' => 0,
54 'description' => ts('Set this value to Yes if you want CiviCRM error/debugging messages to appear in the Drupal error logs.'),
55 'help_text' => "Set this value to Yes if you want CiviCRM error/debugging messages the appear in your CMS' error log. In the case of Drupal, this will cause all CiviCRM error messages to appear in the watchdog (assuming you have Drupal's watchdog enabled)",
56 ],
57 'debug_enabled' => [
58 'group_name' => 'Developer Preferences',
59 'group' => 'developer',
60 'name' => 'debug_enabled',
61 // we can't call the setting debug as that has other meanings in api
62 'config_key' => 'debug',
63 'type' => 'Boolean',
64 'quick_form_type' => 'YesNo',
65 'default' => '0',
66 'add' => '4.3',
67 'title' => ts('Enable Debugging'),
68 'is_domain' => 1,
69 'is_contact' => 0,
70 'description' => ts("Set this value to Yes if you want to use one of CiviCRM's debugging tools. This feature should NOT be enabled for production sites."),
71 'help_text' => 'Do not turn this on on production sites',
72 ],
73 'backtrace' => [
74 'group_name' => 'Developer Preferences',
75 'group' => 'developer',
76 'name' => 'backtrace',
77 'type' => 'Boolean',
78 'quick_form_type' => 'YesNo',
79 'default' => '0',
80 'add' => '4.3',
81 'title' => ts('Display Backtrace'),
82 'is_domain' => 1,
83 'is_contact' => 0,
84 'description' => ts('Set this value to Yes if you want to display a backtrace listing when a fatal error is encountered. This feature should NOT be enabled for production sites.'),
85 ],
86 'environment' => [
87 'group_name' => 'Developer Preferences',
88 'group' => 'developer',
89 'name' => 'environment',
90 'type' => 'String',
91 'html_type' => 'Select',
92 'quick_form_type' => 'Select',
93 'default' => 'Production',
94 'pseudoconstant' => [
95 'optionGroupName' => 'environment',
96 ],
97 'add' => '4.7',
98 'title' => ts('Environment'),
99 'is_domain' => 1,
100 'is_contact' => 0,
101 'description' => ts('Setting to define the environment in which this CiviCRM instance is running.'),
102 'on_change' => [
103 'CRM_Core_BAO_Setting::onChangeEnvironmentSetting',
104 ],
105 ],
106 'fatalErrorHandler' => [
107 'group_name' => 'Developer Preferences',
108 'group' => 'developer',
109 'name' => 'fatalErrorHandler',
110 'type' => 'String',
111 'quick_form_type' => 'Element',
112 'html_type' => 'text',
113 'default' => NULL,
114 'add' => '4.3',
115 'title' => ts('Fatal Error Handler'),
116 'is_domain' => 1,
117 'is_contact' => 0,
118 'description' => ts('Enter the path and class for a custom PHP error-handling function if you want to override built-in CiviCRM error handling for your site.'),
119 ],
120 ];