APIv4 - Add API for RecentItem
authorColeman Watts <coleman@civicrm.org>
Tue, 5 Apr 2022 01:24:16 +0000 (21:24 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 5 Apr 2022 23:37:22 +0000 (19:37 -0400)
commit0501e0eac68d304debeb723da96a96165f272d61
treef8e17d3e7ff113cd6f9637c69419749d0f0efea2
parent77b269941d90d801cd018e52ecb79d9a427301de
APIv4 - Add API for RecentItem

This exposes an api entity for the Recent Items stored in the user session.
In the process, it simplifies the process of adding a recent item,
performing most of the lookups automatically.
12 files changed:
CRM/Activity/BAO/Activity.php
CRM/Contact/BAO/Contact.php
CRM/Contact/Form/Contact.php
CRM/Contact/Page/View.php
CRM/Core/DAO.php
CRM/Utils/Recent.php
Civi/Api4/Generic/BasicEntity.php
Civi/Api4/RecentItem.php [new file with mode: 0644]
tests/phpunit/api/v4/Action/RecentItemsTest.php
tests/phpunit/api/v4/Entity/ConformanceTest.php
tests/phpunit/api/v4/Entity/RecentItemTest.php [new file with mode: 0644]
tests/phpunit/api/v4/Service/TestCreationParameterProvider.php