<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
*/
private static $paymentInstrument;
- /**
- * credit card
- *
- * @var array
- * @static
- */
- private static $creditCard;
-
/**
* contribution status
*
private static $batch;
/**
+ * DEPRECATED. Please use the buildOptions() method in the appropriate BAO object.
+ *
* Get all the financial types
*
* @access public
}
/**
+ * DEPRECATED. Please use the buildOptions() method in the appropriate BAO object.
+ *
* Get all the financial Accounts
*
* @access public
* @param boolean $name pseudoconstant to be flushed
*
*/
- public static function flush($name) {
+ public static function flush($name = 'cache') {
if (isset(self::$$name)) {
self::$$name = NULL;
}
}
/**
+ * DEPRECATED. Please use the buildOptions() method in the appropriate BAO object.
+ *
* Get all the contribution pages
*
* @param integer $id id of the contribution page
}
/**
+ * DEPRECATED. Please use the buildOptions() method in the appropriate BAO object.
+ *
* Get all the payment instruments
*
* @access public
* @static
*/
public static function &creditCard() {
- $acceptCreditCard = array();
- $creditCard = CRM_Core_OptionGroup::values('accept_creditcard');
-
- if (!$creditCard) {
- $creditCard = array();
- }
- foreach ($creditCard as $key => $value) {
- $acceptCreditCard[$value] = $value;
- }
- return $acceptCreditCard;
+ return CRM_Core_OptionGroup::values('accept_creditcard', FALSE, FALSE, FALSE, NULL, 'label', TRUE, FALSE, 'name');
}
/**