01, 'd' => 01, ); /** * String format for monetary amounts * @var string */ public $moneyformat = '%c %a'; /** * String format for monetary values * @var string */ public $moneyvalueformat = '%!i'; /** * Format for monetary amounts * @var string */ public $currencySymbols = ''; /** * Format for monetary amounts * @var string */ public $defaultCurrencySymbol = '$'; /** * Monetary decimal point character * @var string */ public $monetaryDecimalPoint = '.'; /** * Monetary thousands separator * @var string */ public $monetaryThousandSeparator = ','; /** * Default user framework. This basically makes Drupal 7 the default */ public $userFramework = 'Drupal'; public $userFrameworkUsersTableName = 'users'; public $userFrameworkClass = 'CRM_Utils_System_Drupal'; public $userHookClass = 'CRM_Utils_Hook_Drupal'; /** * @var string|CRM_Core_Permission_Base */ public $userPermissionClass = 'CRM_Core_Permission_Drupal'; /** * @var NULL|CRM_Core_Permission_Temp */ public $userPermissionTemp = NULL; public $userFrameworkURLVar = 'q'; public $userFrameworkDSN = NULL; public $userFrameworkBaseURL = NULL; public $userFrameworkResourceURL = NULL; public $userFrameworkFrontend = FALSE; public $userFrameworkLogging = FALSE; public $maxFileSize = 2; /** * The custom locale strings. Note that these locale strings are stored * in a separate column in civicrm_domain * @var array */ public $localeCustomStrings = NULL; /** * Map Provider * * @var string */ public $mapProvider = NULL; /** * Map API Key * * @var string */ public $mapAPIKey = NULL; /** * Geocoding Provider * * @var string */ public $geoProvider = NULL; /** * Geocoding API Key * * @var string */ public $geoAPIKey = NULL; /** * How should we get geo code information if google map support needed * * @var string */ public $geocodeMethod = ''; /** * Whether database-level logging should be performed * @var boolean */ public $logging = FALSE; /** * Whether public pages should display "empowered by CiviCRM" * * @var boolean */ public $empoweredBy = TRUE; /** * Array of enabled add-on components (e.g. CiviContribute, CiviMail...) * * @var array */ public $enableComponents = array( 'CiviContribute', 'CiviPledge', 'CiviMember', 'CiviEvent', 'CiviMail', 'CiviReport', ); /** * Should payments be accepted only via SSL? * * @var boolean */ public $enableSSL = FALSE; /** * Fatal error handler * * @var string */ public $fatalErrorHandler = NULL; /** * Legacy encoding for file encoding conversion * * @var string */ public $legacyEncoding = 'Windows-1252'; /** * Field separator for import/export csv file * * @var string */ public $fieldSeparator = ','; /** * Some search settings */ public $includeWildCardInName = 1; public $includeEmailInName = 1; public $includeNickNameInName = 0; public $smartGroupCacheTimeout = 5; public $defaultSearchProfileID = NULL; /** * Dashboard timeout */ public $dashboardCacheTimeout = 1440; /** * Flag to indicate if acl cache is NOT to be reset */ public $doNotResetCache = 0; /** * Optimization related variables */ public $includeAlphabeticalPager = 1; public $includeOrderByClause = 1; /** * determine whether the call is from cms or civicrm */ public $inCiviCRM = FALSE; /** * PDF receipt as attachment is disabled by default (CRM-8350) */ public $doNotAttachPDFReceipt = FALSE; /** * Path to wkhtmltopdf if available */ public $wkhtmltopdfPath = FALSE; /** * Allow second-degree relations permission to edit contacts */ public $secondDegRelPermissions = FALSE; /** * Allow second-degree relations permission to edit contacts */ public $wpBasePage = NULL; public $verpSeparator = '.', $mailThrottleTime = 0, $mailerJobsMax = 0, $mailerJobSize = 0, $mailerBatchLimit = 0; /** * Provide addressSequence. * * @param * * @return string */ public function addressSequence() { $addressFormat = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'address_format' ); return CRM_Utils_Address::sequence($addressFormat); } /** * Provide cached default currency symbol. * * @param * * @return string */ public function defaultCurrencySymbol($defaultCurrency = NULL) { static $cachedSymbol = NULL; if (!$cachedSymbol || $defaultCurrency) { if ($this->defaultCurrency || $defaultCurrency) { $this->currencySymbols = CRM_Core_PseudoConstant::get('CRM_Contribute_DAO_Contribution', 'currency', array( 'labelColumn' => 'symbol', 'orderColumn' => TRUE, )); $currency = $defaultCurrency ? $defaultCurrency : $this->defaultCurrency; $cachedSymbol = CRM_Utils_Array::value($currency, $this->currencySymbols, ''); } else { $cachedSymbol = '$'; } } return $cachedSymbol; } /** * Provide cached default currency symbol. * * @param * * @return string */ public function defaultContactCountry() { static $cachedContactCountry = NULL; if (!empty($this->defaultContactCountry) && !$cachedContactCountry ) { $countryIsoCodes = CRM_Core_PseudoConstant::countryIsoCode(); $cachedContactCountry = CRM_Utils_Array::value($this->defaultContactCountry, $countryIsoCodes ); } return $cachedContactCountry; } /** * Provide cached default country name. * * @param * * @return string */ public function defaultContactCountryName() { static $cachedContactCountryName = NULL; if (!$cachedContactCountryName && $this->defaultContactCountry) { $countryCodes = CRM_Core_PseudoConstant::country(); $cachedContactCountryName = $countryCodes[$this->defaultContactCountry]; } return $cachedContactCountryName; } /** * Provide cached country limit translated to names. * * @param * * @return array */ public function countryLimit() { static $cachedCountryLimit = NULL; if (!$cachedCountryLimit) { $countryIsoCodes = CRM_Core_PseudoConstant::countryIsoCode(); $country = array(); if (is_array($this->countryLimit)) { foreach ($this->countryLimit as $val) { // CRM-12007 // some countries have disappeared and hence they might be in country limit // but not in the country table if (isset($countryIsoCodes[$val])) { $country[] = $countryIsoCodes[$val]; } } } else { $country[] = $countryIsoCodes[$this->countryLimit]; } $cachedCountryLimit = $country; } return $cachedCountryLimit; } /** * Provide cached province limit translated to names. * * @param * * @return array */ public function provinceLimit() { static $cachedProvinceLimit = NULL; if (!$cachedProvinceLimit) { $countryIsoCodes = CRM_Core_PseudoConstant::countryIsoCode(); $country = array(); if (is_array($this->provinceLimit)) { foreach ($this->provinceLimit as $val) { // CRM-12007 // some countries have disappeared and hence they might be in country limit // but not in the country table if (isset($countryIsoCodes[$val])) { $country[] = $countryIsoCodes[$val]; } } } else { $country[] = $countryIsoCodes[$this->provinceLimit]; } $cachedProvinceLimit = $country; } return $cachedProvinceLimit; } } // end CRM_Core_Config