Date: Fri, 29 Mar 2024 00:46:43 +0000 (UTC) Message-ID: <1951051446.7295.1711673203026@ip-10-10-7-29.ec2.internal> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_7294_938002107.1711673203023" ------=_Part_7294_938002107.1711673203023 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
As of Registry v4.0.0, frontend state (menu status, search filte= rs, etc) can be stored using the ApplicationPreference model, which offers = a simple key/value interface, linked to a CO Person ID.
$this-&= gt;CoPerson->ApplicationPreference->store($coPersonId, "tag", "value"= ); $value =3D $this->CoPerson->ApplicationPreference->retrieve($coPer= sonId, "tag");
Only use an authenticated CO Person ID, since the model performs no auth= orization checks.
Only one value can be maintained for a given tag<= /em> for each CO Person. If a previous entry for tag is found= on store, it will be replaced (or more accurately archived v= ia Changelog Behavior)= .
Application Preferences are currently accessible on via the Cake model l= ayer, there is no REST API or user interface.
See also: cm_ap= plication_preferences