/**
  * takes an associative array and creates a contact object
  *
  * the function extract all the params it needs to initialize the create a
  * contact object. the params array could contain additional unused name/value
  * pairs
  *
  * @param array  $params         (reference ) an assoc array of name/value pairs
  * @param array  $ids            the array that holds all the db ids
  *
  * @return object   CRM_Core_DAO_OtherActivity object
  * @access public
  * @static
  */
 function add(&$params, &$ids)
 {
     if (!CRM_Core_BAO_OtherActivity::dataExists($params)) {
         return null;
     }
     $otherActivity =& new CRM_Core_DAO_Activity();
     $otherActivity->copyValues($params);
     $otherActivity->id = CRM_Utils_Array::value('otherActivity', $ids);
     return $otherActivity->save();
 }