private static $batch;
/**
- * DEPRECATED. Please use the buildOptions() method in the appropriate BAO object.
+ * @deprecated. Please use the buildOptions() method in the appropriate BAO object.
+ *
*
* Get all the financial types
*
*
* @param int $id
+ * @param bool $includeDisabled
*
* @return array
* array reference of all financial types if any
*/
- public static function &financialType($id = NULL) {
+ public static function &financialType($id = NULL, $includeDisabled = FALSE) {
if (!self::$financialType) {
- $condition = " is_active = 1 ";
+ $condition = "";
+ if (!$includeDisabled) {
+ $condition = " is_active = 1 ";
+ }
CRM_Core_PseudoConstant::populate(
self::$financialType,
'CRM_Financial_DAO_FinancialType',
}
/**
- * DEPRECATED. Please use the buildOptions() method in the appropriate BAO object.
+ * @deprecated. Please use the buildOptions() method in the appropriate BAO object.
*
* Get all the financial Accounts
*
}
/**
- * DEPRECATED. Please use the buildOptions() method in the appropriate BAO object.
+ * @deprecated. Please use the buildOptions() method in the appropriate BAO object.
*
* Get all the contribution pages
*
}
/**
- * DEPRECATED. Please use the buildOptions() method in the appropriate BAO object.
+ * @deprecated. Please use the buildOptions() method in the appropriate BAO object.
*
* Get all the payment instruments
*