*/
public static function del($entityId, $entityTable) {
// delete all discount records with the selected discounted id
- $discount = new CRM_Core_DAO_Discount( );
+ $discount = new CRM_Core_DAO_Discount();
$discount->entity_id = $entityId;
$discount->entity_table = $entityTable;
if ($discount->delete()) {
* @static
*/
public static function add(&$params) {
- $discount = new CRM_Core_DAO_Discount( );
+ $discount = new CRM_Core_DAO_Discount();
$discount->copyValues($params);
$discount->save();
return $discount;
*/
public static function getOptionGroup($entityId, $entityTable) {
$optionGroupIDs = array();
- $dao = new CRM_Core_DAO_Discount( );
+ $dao = new CRM_Core_DAO_Discount();
$dao->entity_id = $entityId;
$dao->entity_table = $entityTable;
$dao->find();
return NULL;
}
- $dao = new CRM_Core_DAO_Discount( );
+ $dao = new CRM_Core_DAO_Discount();
$dao->entity_id = $entityID;
$dao->entity_table = $entityTable;
$dao->find();