/**
  * funtion to add activity target
  *
  * @param array  $activity_id           (reference ) an assoc array of name/value pairs
  * @param array  $target_contact_id     (reference ) the array that holds all the db ids
  *
  * @return object activity type of object that is added
  * @access public
  * 
  */
 public function create(&$params)
 {
     require_once 'CRM/Activity/BAO/ActivityTarget.php';
     $target = new CRM_Activity_BAO_ActivityTarget();
     $target->copyValues($params);
     return $target->save();
 }
 /**
  * funtion to add activity target
  *
  * @param array  $activity_id           (reference ) an assoc array of name/value pairs
  * @param array  $target_contact_id     (reference ) the array that holds all the db ids
  *
  * @return object activity type of object that is added
  * @access public
  *
  */
 public static function create(&$params)
 {
     $target = new CRM_Activity_BAO_ActivityTarget();
     $target->copyValues($params);
     return $target->save();
 }