(NFC) Update CRM/Contact to match new coder style
[civicrm-core.git] / settings / Developer.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
fee14197 4 | CiviCRM version 5 |
6a488035 5 +--------------------------------------------------------------------+
6b83d5bd 6 | Copyright CiviCRM LLC (c) 2004-2019 |
6a488035
TO
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
d25dd0ee 26 */
6a488035
TO
27
28/**
29 *
30 * @package CRM
6b83d5bd 31 * @copyright CiviCRM LLC (c) 2004-2019
6a488035
TO
32 * $Id$
33 *
34 */
35/*
36 * Settings metadata file
37 */
38
dfe1f88a
CW
39return [
40 'assetCache' => [
e7b8261d
TO
41 'group_name' => 'Developer Preferences',
42 'group' => 'developer',
43 'name' => 'assetCache',
44 'type' => 'String',
45 'quick_form_type' => 'Select',
46 'html_type' => 'Select',
dfe1f88a 47 'html_attributes' => [
e7b8261d 48 //'class' => 'crm-select2',
dfe1f88a 49 ],
e7b8261d
TO
50 'default' => 'auto',
51 'add' => '4.7',
52 'title' => 'Asset Caching',
53 'is_domain' => 1,
54 'is_contact' => 0,
55 'description' => 'Store computed JS/CSS content in cache files? (Note: In "Auto" mode, the "Debug" setting will determine whether to activate the cache.)',
56 'help_text' => NULL,
dfe1f88a 57 'pseudoconstant' => [
e7b8261d 58 'callback' => '\Civi\Core\AssetBuilder::getCacheModes',
dfe1f88a
CW
59 ],
60 ],
61 'userFrameworkLogging' => [
6a488035
TO
62 'group_name' => 'Developer Preferences',
63 'group' => 'developer',
0b2bdd13 64 'name' => 'userFrameworkLogging',
6a488035
TO
65 'type' => 'Boolean',
66 'quick_form_type' => 'YesNo',
67 'default' => '0',
68 'add' => '4.3',
0b2bdd13 69 'title' => 'Enable Drupal Watchdog Logging',
6a488035
TO
70 'is_domain' => 1,
71 'is_contact' => 0,
0b2bdd13 72 'description' => "Set this value to Yes if you want CiviCRM error/debugging messages to appear in the Drupal error logs",
0b2bdd13 73 '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)",
dfe1f88a
CW
74 ],
75 'debug_enabled' => [
6a488035
TO
76 'group_name' => 'Developer Preferences',
77 'group' => 'developer',
0b2bdd13
J
78 'name' => 'debug_enabled',
79 'config_key' => 'debug', // we can't call the setting debug as that has other meanings in api
6a488035
TO
80 'type' => 'Boolean',
81 'quick_form_type' => 'YesNo',
82 'default' => '0',
83 'add' => '4.3',
0b2bdd13 84 'title' => 'Enable Debugging',
6a488035
TO
85 'is_domain' => 1,
86 'is_contact' => 0,
0b2bdd13 87 'description' => "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",
0b2bdd13 88 'help_text' => 'Do not turn this on on production sites',
dfe1f88a
CW
89 ],
90 'backtrace' => [
6a488035
TO
91 'group_name' => 'Developer Preferences',
92 'group' => 'developer',
93 'name' => 'backtrace',
6a488035
TO
94 'type' => 'Boolean',
95 'quick_form_type' => 'YesNo',
96 'default' => '0',
97 'add' => '4.3',
98 'title' => 'Display Backtrace',
99 'is_domain' => 1,
100 'is_contact' => 0,
101 'description' => "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",
dfe1f88a
CW
102 ],
103 'environment' => [
f008885c
E
104 'group_name' => 'Developer Preferences',
105 'group' => 'developer',
106 'name' => 'environment',
107 'type' => 'String',
108 'html_type' => 'Select',
109 'quick_form_type' => 'Select',
110 'default' => 'Production',
dfe1f88a 111 'pseudoconstant' => [
f008885c 112 'optionGroupName' => 'environment',
dfe1f88a 113 ],
f008885c
E
114 'add' => '4.7',
115 'title' => 'Environment',
116 'is_domain' => 1,
117 'is_contact' => 0,
118 'description' => "Setting to define the environment in which this CiviCRM instance is running.",
dfe1f88a 119 'on_change' => [
03c5ceba 120 'CRM_Core_BAO_Setting::onChangeEnvironmentSetting',
dfe1f88a
CW
121 ],
122 ],
123 'fatalErrorHandler' => [
6a488035
TO
124 'group_name' => 'Developer Preferences',
125 'group' => 'developer',
126 'name' => 'fatalErrorHandler',
6a488035 127 'type' => 'String',
fd0e547b
EM
128 'quick_form_type' => 'Element',
129 'html_type' => 'text',
08e57c58 130 'default' => NULL,
6a488035
TO
131 'add' => '4.3',
132 'title' => 'Fatal Error Handler',
133 'is_domain' => 1,
134 'is_contact' => 0,
135 'description' => "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.",
dfe1f88a
CW
136 ],
137];