///
/**
- * the dsn of the database connection
+ * The dsn of the database connection
*
* @var string
*/
public $dsn;
/**
- * the name of user framework
+ * The name of user framework
*
* @var string
*/
public $userFramework = 'Drupal';
/**
- * the name of user framework url variable name
+ * The name of user framework url variable name
*
* @var string
*/
public $userFrameworkURLVar = 'q';
/**
- * the dsn of the database connection for user framework
+ * The dsn of the database connection for user framework
*
* @var string
*/
///
/**
- * are we initialized and in a proper state
+ * Are we initialized and in a proper state
*
* @var string
*/
public $customPHPPathDir;
/**
- * the factory class used to instantiate our DB objects
+ * The factory class used to instantiate our DB objects
*
* @var string
*/
private static $_log = NULL;
/**
- * the handle on the mail handler that we are using
+ * The handle on the mail handler that we are using
*
* @var object
*/
}
/**
- * initialize the DataObject framework
+ * Initialize the DataObject framework
*
* @return void
* @access private
}
/**
- * returns the singleton logger for the application
+ * Returns the singleton logger for the application
*
* @param
* @access private
}
/**
- * initialize the config variables
+ * Initialize the config variables
*
* @return void
* @access private
}
/**
- * verify that the needed parameters are not null in the config
+ * Verify that the needed parameters are not null in the config
*
* @param CRM_Core_Config (reference ) the system config object
* @param array (reference ) the parameters that need a value
}
/**
- * reset the serialized array and recompute
+ * Reset the serialized array and recompute
* use with care
*/
function reset() {
}
/**
- * one function to get domain ID
+ * One function to get domain ID
*/
static function domainID($domainID = NULL, $reset = FALSE) {
static $domain;
}
/**
- * do general cleanup of caches, temp directories and temp tables
+ * Do general cleanup of caches, temp directories and temp tables
* CRM-8739
*/
function cleanupCaches($sessionReset = TRUE) {
}
/**
- * clear db cache
+ * Clear db cache
*/
public static function clearDBCache() {
$queries = array(
}
/**
- * clear leftover temporary tables
+ * Clear leftover temporary tables
*/
public static function clearTempTables() {
// CRM-5645
}
/**
- * function to check if running in upgrade mode
+ * Check if running in upgrade mode
*/
static function isUpgradeMode($path = NULL) {
if (defined('CIVICRM_UPGRADE_ACTIVE')) {
/**
* Is back office credit card processing enabled for this site - ie are there any installed processors that support
- * on-site processing
+ * it?
* @return bool
*/
static function isEnabledBackOfficeCreditCardPayments() {
- // restrict to type=1 (credit card) payment processor payment_types and only include billing mode types 1 and 3
- $processors = CRM_Core_PseudoConstant::paymentProcessor(FALSE, FALSE,
- "billing_mode IN ( 1, 3 ) AND payment_type = 1"
- );
- if (count($processors) > 0) {
- return TRUE;
- }
- return FALSE;
+ return CRM_Financial_BAO_PaymentProcessor::hasPaymentProcessorSupporting(array('BackOffice'));
}
}
-// end CRM_Core_Config
-