CSDashboardProxyCreatorDictionary
in package
Tags
Table of Contents
- __construct() : mixed
- This is constructor for CSDashboardProxyCreatorDictionary class
- __destruct() : mixed
- This is destructor for CSDashboardProxyCreatorDictionary class
- createDictionary() : void
- This method is used for creating separate dictionary file for each target language selected in the translation job.
- getInstance() : CSDashboardProxyCreatorDictionary
- This method is used to get the instance of CSDashboardProxyCreatorDictionary class
- getTranslation() : string
- Returns translated value for given key, if not found returns the key.
- getTranslations() : array<string|int, mixed>
- Returns array of translated values for given record ids.
- setTranslation() : mixed
- Set translation for given key.
Methods
__construct()
This is constructor for CSDashboardProxyCreatorDictionary class
public
__construct(mixed $sModuleName, mixed $sClassName) : mixed
Parameters
- $sModuleName : mixed
- $sClassName : mixed
Tags
Return values
mixed —__destruct()
This is destructor for CSDashboardProxyCreatorDictionary class
public
__destruct() : mixed
Tags
Return values
mixed —createDictionary()
This method is used for creating separate dictionary file for each target language selected in the translation job.
public
createDictionary() : void
Tags
Return values
void —getInstance()
This method is used to get the instance of CSDashboardProxyCreatorDictionary class
public
static getInstance(mixed $iClassID) : CSDashboardProxyCreatorDictionary
Parameters
- $iClassID : mixed
Tags
Return values
CSDashboardProxyCreatorDictionary —getTranslation()
Returns translated value for given key, if not found returns the key.
public
getTranslation(mixed $iRecordID, mixed $sKey, mixed $iLanguageID) : string
Parameters
- $iRecordID : mixed
- $sKey : mixed
-
It is translation key
- $iLanguageID : mixed
Tags
Return values
string —translated value for given key
getTranslations()
Returns array of translated values for given record ids.
public
getTranslations(mixed $aRecordIDs, mixed $iLanguageID) : array<string|int, mixed>
Parameters
- $aRecordIDs : mixed
-
array of record ids.
- $iLanguageID : mixed
-
language id.
Tags
Return values
array<string|int, mixed> —translated value for given key
setTranslation()
Set translation for given key.
public
setTranslation(int $iRecordID, string $sKey, int $iLanguageID, string $sValue) : mixed
Parameters
- $iRecordID : int
-
record id.
- $sKey : string
-
translation key.
- $iLanguageID : int
-
langguage id.
- $sValue : string
-
translated for value for given key.
