class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_ContributionSoft {
/**
- * Construct method
+ * Construct method.
*/
public function __construct() {
parent::__construct();
}
/**
- * Add contribution soft credit record
+ * Add contribution soft credit record.
*
* @param array $params
* (reference ) an assoc array of name/value pairs.
}
/**
- * 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_ContributionSoft
- * @static
*/
public static function retrieve(&$params, &$defaults) {
$contributionSoft = new CRM_Contribute_DAO_ContributionSoft();
}
/**
- * Delete soft credits
+ * Delete soft credits.
*
* @param array $params
*
- * @static
*/
public static function del($params) {
//delete from contribution soft table
$params = array(
1 => array($contact_id, 'Integer'),
- 2 => array($isTest, 'Integer')
+ 2 => array($isTest, 'Integer'),
);
$cs = CRM_Core_DAO::executeQuery($query, $params);
*
* @return array
* Array of soft contribution ids, amounts, and associated contact ids
- * @static
*/
public static function getSoftContribution($contributionID, $all = FALSE) {
$pcpFields = array(
*
* @param int $contact_id
* Contact id.
- * @param int $isTest
* @param string $filter
+ * @param int $isTest
* Additional filter criteria, later used in where clause.
*
* @return array
- * @static
*/
public static function getSoftContributionList($contact_id, $filter = NULL, $isTest = 0) {
$query = '
return $result;
}
- /*
- * Function to assign honor profile fields to template/form, if $honorId (as soft-credit's contact_id)
- * is passed then whole honoreeprofile fields with title/value assoc array assigned or only honoreeName
- * is assigned
- *
- * @static
- */
-
/**
+ * Function to assign honor profile fields to template/form, if $honorId (as soft-credit's contact_id)
+ * is passed then whole honoreeprofile fields with title/value assoc array assigned or only honoreeName
+ * is assigned
+ *
* @param CRM_Core_Form $form
* @param array $params
* @param int $honoreeprofileId
$form->assign('honorName', $honorName);
}
}
+
}