* @param bool $is_active
* Value we want to set the is_active field.
*
- * @return Object
- * DAO object on success, null otherwise
+ * @return bool
*/
public static function setIsActive($id, $is_active) {
if (!$is_active) {
* Delete premium Types.
*
* @param int $productID
+ *
+ * @throws \CRM_Core_Exception
*/
public static function del($productID) {
//check dependencies
*/
class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType {
- /**
- * Static holder for the default LT.
- */
- static $_defaultContributionType = NULL;
/**
* Static cache holder of available financial types for this session
*/
* @param array $defaults
* (reference ) an assoc array to hold the flattened values.
*
- * @return CRM_Contribute_BAO_ContributionType
+ * @return CRM_Financial_DAO_FinancialType
*/
public static function retrieve(&$params, &$defaults) {
$financialType = new CRM_Financial_DAO_FinancialType();
* @param bool $is_active
* Value we want to set the is_active field.
*
- * @return Object
- * DAO object on success, null otherwise
+ * @return bool
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Financial_DAO_FinancialType', $id, 'is_active', $is_active);
$financialType = new CRM_Financial_DAO_FinancialType();
$financialType->id = $financialTypeId;
$financialType->find(TRUE);
- // tables to ingore checks for financial_type_id
+ // tables to ignore checks for financial_type_id
$ignoreTables = array('CRM_Financial_DAO_EntityFinancialAccount');
// TODO: if (!$financialType->find(true)) {