* @params int $id one of the class constants (ADD, SEARCH, etc.)
* @params string $property the desired property
*
+ * @param $id
+ * @param $property
+ *
* @return string the value of the desired property
*/
static function getProperty($id, $property) {
* @params string $property the desired property
* @params string $value the value of the desired property
*
+ * @param $id
+ * @param $property
+ * @param $value
* @return void
*/
static function setProperty($id, $property, $value) {
* php is lame and u cannot call functions from static initializers
* hence this hack
*
+ * @param $id
+ *
* @return void
* @access private
*/
if (!empty($config->enableComponents)) {
// check if we can process credit card contribs
- $newCredit = CRM_Core_Payment::allowBackofficeCreditCard();
+ $newCredit = CRM_Core_Config::isEnabledBackOfficeCreditCardPayments();
foreach ($components as $componentName => $obj) {
if (in_array($componentName, $config->enableComponents)) {