Ejemplo n.º 1
0
 /**
  * Given the list of params in the params array, fetch the object
  * and store the values in the values array
  *
  * @param array $params
  *   Input parameters to find object.
  * @param array $values
  *   Output values of the object.
  *
  * @return array
  *   values
  */
 public static function retrieve(&$params, &$values)
 {
     $friend = new CRM_Friend_DAO_Friend();
     $friend->copyValues($params);
     $friend->find(TRUE);
     CRM_Core_DAO::storeValues($friend, $values);
     return $values;
 }