<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | 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$
*
*/
class CRM_Contribute_PseudoConstant extends CRM_Core_PseudoConstant {
/**
- * financial types
+ * Financial types
* @var array
* @static
*/
private static $financialType;
/**
- * financial types
+ * Financial types
* @var array
* @static
*/
/**
- * financial types
+ * Financial types
* @var array
* @static
*/
private static $financialAccount;
/**
- * contribution pages
+ * Contribution pages
* @var array
* @static
*/
private static $contributionPageActive = NULL;
/**
- * contribution pages
+ * Contribution pages
* @var array
* @static
*/
private static $contributionPageAll = NULL;
/**
- * payment instruments
+ * Payment instruments
*
* @var array
* @static
private static $paymentInstrument;
/**
- * contribution status
+ * Contribution status
*
* @var array
* @static
private static $pcPage;
/**
- * status of personal campaign page
+ * Status of personal campaign page
* @var array
* @static
*/
private static $pcpStatus;
/**
- * contribution / financial batches
+ * Contribution / financial batches
* @var array
* @static
*/
*
* Get all the financial types
*
- * @access public
+ *
+ * @param int $id
*
* @return array - array reference of all financial types if any
* @static
*
* Get all the financial Accounts
*
- * @access public
+ *
+ * @param int $id
+ * @param int $financialAccountTypeId
+ * @param string $retrieveColumn
+ * @param string $key
+ *
* @return array - array reference of all financial accounts if any
* @static
*/
* Flush given pseudoconstant so it can be reread from db
* nex time it's requested.
*
- * @access public
* @static
*
- * @param boolean $name pseudoconstant to be flushed
- *
+ * @param bool|string $name pseudoconstant to be flushed
*/
public static function flush($name = 'cache') {
if (isset(self::$$name)) {
* @param integer $id id of the contribution page
* @param boolean $all do we want all pages or only active pages
*
- * @access public
*
* @return array - array reference of all contribution pages if any
* @static
*
* Get all the payment instruments
*
- * @access public
+ *
+ * @param string $columnName
*
* @return array - array reference of all payment instruments if any
* @static
/**
* Get all the valid accepted credit cards
*
- * @access public
*
* @return array - array reference of all payment instruments if any
* @static
/**
* Get all premiums
*
- * @access public
*
+ * @param int $pageID
* @return array - array of all Premiums if any
* @static
*/
/**
* Get all the contribution statuses
*
- * @access public
*
+ * @param int $id
+ * @param string $columnName
* @return array - array reference of all contribution statuses
* @static
*/
/**
* Get all the Personal campaign pages
*
- * @access public
+ *
+ * @param null $pageType
+ * @param int $id
*
* @return array - array reference of all pcp if any
* @static
*
* The static array pcpStatus is returned
*
- * @access public
* @static
*
+ * @param string $column
* @return array - array reference of all PCP activity statuses
*/
public static function &pcpStatus($column = 'label') {
*
* The static array $financialTypeAccount is returned
*
- * @access public
* @static
*
+ * @param int $financialTypeId
+ * @param int $relationTypeId
* @return array - array reference of all financial accounts for a Financial type
*/
public static function financialAccountType($financialTypeId, $relationTypeId = NULL) {
/**
* Get all batches
*
- * @access public
*
+ * @param int $id
* @return array - array reference of all batches if any
* @static
*/
return self::$batch;
}
}
-