CRM_Core_BAO_TranslateGetWrapper
in package
Wrapper to swap in translated text.
Table of Contents
Properties
- $fields : mixed
- $translatedLanguage : mixed
Methods
- __construct() : mixed
- CRM_Core_BAO_TranslateGetWrapper constructor.
- fromApiInput() : mixed
- toApiOutput() : mixed
Properties
$fields
protected
mixed
$fields
$translatedLanguage
protected
mixed
$translatedLanguage
Methods
__construct()
CRM_Core_BAO_TranslateGetWrapper constructor.
public
__construct(array<string|int, mixed> $translated) : mixed
This wrapper replaces values with configured translated values, if any exist.
Parameters
- $translated : array<string|int, mixed>
fromApiInput()
public
fromApiInput(mixed $apiRequest) : mixed
Parameters
- $apiRequest : mixed
Tags
toApiOutput()
public
toApiOutput(mixed $apiRequest, mixed $result) : mixed
Parameters
- $apiRequest : mixed
- $result : mixed