3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.7 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2015 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
29 * Variables class contains definitions of all the core config settings that are allowed on
30 * CRM_Core_Config. If you want a config variable to be present in run time config object,
31 * it need to be defined here first.
34 * @copyright CiviCRM LLC (c) 2004-2015
38 class CRM_Core_Config_Variables
extends CRM_Core_Config_Defaults
{
41 /// BASE SYSTEM PROPERTIES (CIVICRM.SETTINGS.PHP)
45 * The dsn of the database connection
52 * The name of user framework
56 public $userFramework = 'Drupal';
59 * The name of user framework url variable name
63 public $userFrameworkURLVar = 'q';
66 * The dsn of the database connection for user framework
70 public $userFrameworkDSN = NULL;
73 * The connector module for the CMS/UF
74 * @todo Introduce an interface.
76 * @var CRM_Utils_System_Base
78 public $userSystem = NULL;
81 * The root directory where Smarty should store compiled files.
85 public $templateCompileDir;
90 public $configAndLogDir = NULL;
92 // END: BASE SYSTEM PROPERTIES (CIVICRM.SETTINGS.PHP)
96 * determine whether the call is from cms or civicrm
99 * TRUE, if the call is CiviCRM.
100 * FALSE, if the call is from the CMS.
102 public $inCiviCRM = FALSE;
105 /// END: RUNTIME SET CLASS PROPERTIES
111 public $recaptchaPublicKey;
114 /// BEGIN HELPER CLASS PROPERTIES
118 * Are we initialized and in a proper state
122 public $initialized = 0;
127 public $customPHPPathDir;
130 * The debug level for civicrm.
134 public $backtrace = 0;
137 * The root directory of our template tree.
140 public $templateDir = NULL;
143 * The resourceBase of our application. Used when we want to compose
144 * url's for things like js/images/css
147 public $resourceBase = NULL;
150 * The directory to store uploaded files
152 public $uploadDir = NULL;
155 * The directory to store uploaded image files
157 public $imageUploadDir = NULL;
160 * The directory to store uploaded files in custom data
162 public $customFileUploadDir = NULL;
165 * The url that we can use to display the uploaded images
167 public $imageUploadURL = NULL;
170 * The local path to the default extension container
172 public $extensionsDir;
175 * The url for resources defined by extensions
177 public $extensionsURL = NULL;
180 * Are we generating clean url's and using mod_rewrite
183 public $cleanURL = FALSE;
186 * List of country codes limiting the country list.
187 * 1228 is an id for United States.
190 public $countryLimit = array('1228');
193 * Id of default state/province for contact.
194 * 1046 is an id for Washington(country:United States).
197 public $defaultContactStateProvince;
200 * List of country codes limiting the province list.
201 * 1228 is an id for United States.
204 public $provinceLimit = array('1228');
207 * ISO code of default country for contact.
208 * 1228 is an id for United States.
211 public $defaultContactCountry = '1228';
214 * ISO code of default currency.
217 public $defaultCurrency = 'USD';
220 * Locale for the application to run with.
223 public $lcMessages = 'en_US';
226 * String format for date+time
229 public $dateformatDatetime = '%B %E%f, %Y %l:%M %P';
232 * String format for a full date (one with day, month and year)
235 public $dateformatFull = '%B %E%f, %Y';
238 * String format for a partial date (one with month and year)
241 public $dateformatPartial = '%B %Y';
244 * String format for a year-only date
247 public $dateformatYear = '%Y';
250 * Display format for time
253 public $dateformatTime = '%l:%M %P';
256 * Input format for time
259 public $timeInputFormat = 1;
262 * Input format for date plugin
265 public $dateInputFormat = 'mm/dd/yy';
268 * Month and day on which fiscal year starts.
272 public $fiscalYearStart = array(
278 * String format for monetary amounts
281 public $moneyformat = '%c %a';
284 * String format for monetary values
287 public $moneyvalueformat = '%!i';
290 * Format for monetary amounts
293 public $currencySymbols = '';
296 * Format for monetary amounts
299 public $defaultCurrencySymbol = '$';
302 * Monetary decimal point character
305 public $monetaryDecimalPoint = '.';
308 * Monetary thousands separator
311 public $monetaryThousandSeparator = ',';
314 * Default user framework. This basically makes Drupal 7 the default
316 public $userFrameworkClass = 'CRM_Utils_System_Drupal';
317 public $userHookClass = 'CRM_Utils_Hook_Drupal';
320 * @var string|CRM_Core_Permission_Base
322 public $userPermissionClass = 'CRM_Core_Permission_Drupal';
325 * @var NULL|CRM_Core_Permission_Temp
327 public $userPermissionTemp = NULL;
329 public $userFrameworkBaseURL = NULL;
330 public $userFrameworkResourceURL = NULL;
331 public $userFrameworkFrontend = FALSE;
332 public $userFrameworkLogging = FALSE;
334 public $maxFileSize = 2;
341 public $mapProvider = NULL;
348 public $mapAPIKey = NULL;
355 public $geoProvider = NULL;
362 public $geoAPIKey = NULL;
365 * How should we get geo code information if google map support needed
369 public $geocodeMethod = '';
372 * Whether database-level logging should be performed
375 public $logging = FALSE;
378 * Whether public pages should display "empowered by CiviCRM"
382 public $empoweredBy = TRUE;
385 * Array of enabled add-on components (e.g. CiviContribute, CiviMail...)
389 public $enableComponents = array(
399 * Should payments be accepted only via SSL?
403 public $enableSSL = FALSE;
406 * Fatal error handler
410 public $fatalErrorHandler = NULL;
413 * Legacy encoding for file encoding conversion
417 public $legacyEncoding = 'Windows-1252';
420 * Field separator for import/export csv file
424 public $fieldSeparator = ',';
427 * Some search settings
429 public $includeWildCardInName = 1;
430 public $includeEmailInName = 1;
431 public $includeNickNameInName = 0;
433 public $smartGroupCacheTimeout = 5;
435 public $defaultSearchProfileID = NULL;
440 public $dashboardCacheTimeout = 1440;
443 * Flag to indicate if acl cache is NOT to be reset
445 public $doNotResetCache = 0;
448 * Optimization related variables
450 public $includeAlphabeticalPager = 1;
451 public $includeOrderByClause = 1;
454 * PDF receipt as attachment is disabled by default (CRM-8350)
456 public $doNotAttachPDFReceipt = FALSE;
459 * Path to wkhtmltopdf if available
461 public $wkhtmltopdfPath = FALSE;
464 * Allow second-degree relations permission to edit contacts
466 public $secondDegRelPermissions = FALSE;
470 * Allow second-degree relations permission to edit contacts
472 public $wpBasePage = NULL;
474 public $verpSeparator = '.', $mailThrottleTime = 0, $mailerJobsMax = 0, $mailerJobSize = 0, $mailerBatchLimit = 0;
476 public $inheritLocale = 0;
479 // end CRM_Core_Config