[REF] Deprecate BAO_Contact::retrieve
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 18 Mar 2022 00:34:21 +0000 (13:34 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 18 Mar 2022 00:34:21 +0000 (13:34 +1300)
commit61e8082bf588c1d345cac44f2ad8ea181ac928d6
treea8dd1b52cdacd7b04a2ebe8d7c4824070e043535
parent941ad975f65b50c904540ab156887155ef22c0bd
[REF] Deprecate BAO_Contact::retrieve

This removes 2 calls to BAO_Contact::retrieve and marks it as deprecated.

It is a surprisingly complex function and all the calls to it only use parts of what it
does - in general just having the code 'do the thing' is better.

In this case it turns out there is no need for the contact objects. There is
also some pretty funky handling for the location keys in the next section
so making it clearer what is in them should make it possible to simplify that....
CRM/Contact/BAO/Contact.php
CRM/Contact/Form/Contact.php
CRM/Contact/Page/View/Summary.php