From: Tim Otten Date: Fri, 5 Aug 2022 10:30:39 +0000 (-0700) Subject: APIv4 - Declare option `$translationMode` (for DAOGetAction) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=09f31d49b1b255d3ad7d3a73883b5778d6173b27;p=civicrm-core.git APIv4 - Declare option `$translationMode` (for DAOGetAction) --- diff --git a/Civi/Api4/Generic/DAOGetAction.php b/Civi/Api4/Generic/DAOGetAction.php index 0c33d2acc0..3d6c8753e8 100644 --- a/Civi/Api4/Generic/DAOGetAction.php +++ b/Civi/Api4/Generic/DAOGetAction.php @@ -24,6 +24,8 @@ use Civi\Api4\Utils\CoreUtil; * * @method $this setHaving(array $clauses) * @method array getHaving() + * @method $this setTranslationMode(string|null $mode) + * @method string|null getTranslationMode() */ class DAOGetAction extends AbstractGetAction { use Traits\DAOActionTrait; @@ -80,6 +82,15 @@ class DAOGetAction extends AbstractGetAction { */ protected $having = []; + /** + * Should we automatically overload the result with translated data? + * How do we pick the suitable translation? + * + * @var string|null + * @options fuzzy,strict + */ + protected $translationMode; + /** * @throws \API_Exception * @throws \CRM_Core_Exception