Joomla - Implement getUfId(). Fix '@user:<name>'.
authorTim Otten <totten@civicrm.org>
Wed, 17 Feb 2021 08:19:11 +0000 (00:19 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 17 Feb 2021 10:52:31 +0000 (02:52 -0800)
commitf22205d7c24a084c5703948b3d3e6f5cf6f74258
tree53c862e834d26686daba4eb4b657a04759998d92
parent23dc14a74c12b0e6e10e4e046b9d4095b9651344
Joomla - Implement getUfId(). Fix '@user:<name>'.

Overview
--------

APIv3 includes shorthand support for referencing a contact by their username, e.g.

```
cv api contact.get id=@user:admin return=display_name
```

Before
------

On Joomla, this emits an error because `getUfId($username):int` is
not implemented.

After
-----

On Joomla, this works.

Comments
--------

There is implicit E2E test-coverage in the pending work for authx.
CRM/Utils/System/Joomla.php