}
/**
- * CRM-21026
* Wrapper aroung getAvaliableFinancialTypes to get all including disabled FinancialTypes
- * @param array $financialTypes
- * an array of financial types
* @param int|string $action
* the type of action, can be add, view, edit, delete
* @param bool $resetCache
*
* @return array
*/
- public static function getAllAvailableFinancialTypes($financialTypes = NULL, $action = CRM_Core_Action::VIEW, $resetCache = FALSE) {
+ public static function getAllAvailableFinancialTypes($action = CRM_Core_Action::VIEW, $resetCache = FALSE) {
// Flush pseudoconstant cache
CRM_Contribute_PseudoConstant::flush('financialType');
- $fTypes = self::getAvailableFinancialTypes($financialTypes, $action, $resetCache, TRUE);
- return $fTypes;
+ $thisIsAUselessVariableButSolvesPHPError = NULL;
+ $financialTypes = self::getAvailableFinancialTypes($thisIsAUselessVariableButSolvesPHPError, $action, $resetCache, TRUE);
+ return $financialTypes;
}
/**
- * CRM-21026
* Wrapper aroung getAvaliableFinancialTypes to get all FinancialTypes Excluding Disabled ones.
- * @param array $financialTypes
- * an array of financial types
* @param int|string $action
* the type of action, can be add, view, edit, delete
* @param bool $resetCache
*
* @return array
*/
- public static function getAllEnabledAvailableFinancialTypes($financialTypes = NULL, $action = CRM_Core_Action::VIEW, $resetCache = FALSE) {
- $fTypes = self::getAvailableFinancialTypes($financialTypes, $action, $resetCache);
- return $fTypes;
+ public static function getAllEnabledAvailableFinancialTypes($action = CRM_Core_Action::VIEW, $resetCache = FALSE) {
+ $thisIsAUselessVariableButSolvesPHPError = NULL;
+ $financialTypes = self::getAvailableFinancialTypes($thisIsAUselessVariableButSolvesPHPError, $action, $resetCache);
+ return $financialTypes;
}
/**