| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType {
/**
- * Static holder for the default LT
+ * Static holder for the default LT.
*/
static $_defaultContributionType = NULL;
/**
- * Class constructor
+ * Class constructor.
*/
public function __construct() {
parent::__construct();
}
/**
- * Fetch object based on array of properties
+ * Fetch object based on array of properties.
*
* @param array $params
* (reference ) an assoc array of name/value pairs.
* (reference ) an assoc array to hold the flattened values.
*
* @return CRM_Contribute_BAO_ContributionType
- * @static
*/
public static function retrieve(&$params, &$defaults) {
$financialType = new CRM_Financial_DAO_FinancialType();
}
/**
- * Update the is_active flag in the db
+ * Update the is_active flag in the db.
*
* @param int $id
* Id of the database record.
*
* @return Object
* DAO object on sucess, null otherwise
- * @static
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Financial_DAO_FinancialType', $id, 'is_active', $is_active);
}
/**
- * Add the financial types
+ * Add the financial types.
*
* @param array $params
* Reference array contains the values submitted by the form.
* @param array $ids
* Reference array contains the id.
*
- * @static
* @return object
*/
public static function add(&$params, &$ids = array()) {
}
/**
- * Delete financial Types
+ * Delete financial Types.
*
* @param int $financialTypeId
*
* @return array|bool
- * @static
*/
public static function del($financialTypeId) {
$financialType = new CRM_Financial_DAO_FinancialType();
}
/**
- * fetch financial type having relationship as Income Account is
+ * fetch financial type having relationship as Income Account is.
*
*
* @return array
* all financial type with income account is relationship
- * @static
*/
public static function getIncomeFinancialType() {
// Financial Type
}
return $financialType;
}
+
}