*
* @return CRM_Financial_DAO_PaymentProcessor|null
* object on success, null otherwise
- * @static
*/
public static function retrieve(&$params, &$defaults) {
$paymentProcessor = new CRM_Financial_DAO_PaymentProcessor();
* @return CRM_Financial_DAO_PaymentProcessor|null
* DAO object on success, null otherwise
*
- * @static
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Financial_DAO_PaymentProcessor', $id, 'is_active', $is_active);
* @return CRM_Financial_DAO_PaymentProcessor|null
* The default payment processor object on success,
* null otherwise
- * @static
*/
public static function &getDefault() {
if (self::$_defaultPaymentProcessor == NULL) {
* @param int $paymentProcessorID
*
* @return null
- * @static
*/
public static function del($paymentProcessorID) {
if (!$paymentProcessorID) {
*
* @return array
* associated array with payment processor related fields
- * @static
*/
public static function getPayment($paymentProcessorID, $mode) {
if (!$paymentProcessorID) {
*
* @return array
* associated array with payment processor related fields
- * @static
*/
public static function buildPayment($dao, $mode) {
$fields = array(
* @return array
*/
public static function getAllPaymentProcessors($mode, $reset = FALSE) {
- /**
+ /*
* $cacheKey = 'CRM_Financial_BAO_Payment_Processor_' . ($mode ? 'test' : 'all');
* if (!$reset) {
- * $processors = CRM_Utils_Cache::singleton()->get($cacheKey);
- * if (!empty($processors)) {
- * return $processors;
- * }
+ * $processors = CRM_Utils_Cache::singleton()->get($cacheKey);
+ * if (!empty($processors)) {
+ * return $processors;
+ * }
* }
- * */
+ */
$retrievalParameters = array(
'is_active' => TRUE,
'options' => array('sort' => 'is_default DESC, name'),
* Type of payment information to be retrieved.
*
* @return int|array|object
- * @static
*/
public static function getProcessorForEntity($entityID, $component = 'contribute', $type = 'id') {
$result = NULL;