LanguageConsistency
in package
Survey Updater Service language consistency
Dependencies are injected to enable mocking.
Table of Contents
Properties
Methods
- __construct() : mixed
- update() : void
- Update
- cleanup() : void
- Update
- updateLanguage() : void
- Update
Properties
$modelSurveyLanguageSetting
private
SurveyLanguageSetting
$modelSurveyLanguageSetting
$yiiApp
private
LSYii_Application
$yiiApp
Methods
__construct()
public
__construct(SurveyLanguageSetting $modelSurveyLanguageSetting, LSYii_Application $yiiApp) : mixed
Parameters
- $modelSurveyLanguageSetting : SurveyLanguageSetting
- $yiiApp : LSYii_Application
update()
Update
public
update(Survey $survey, string $initBaseLanguage) : void
Parameters
- $survey : Survey
- $initBaseLanguage : string
cleanup()
Update
private
cleanup(Survey $survey, string $initBaseLanguage, array<string|int, mixed> $aAvailableLanguages) : void
Parameters
- $survey : Survey
- $initBaseLanguage : string
- $aAvailableLanguages : array<string|int, mixed>
updateLanguage()
Update
private
updateLanguage(Survey $survey, string $sLang, string $surveyTitle) : void
Parameters
- $survey : Survey
- $sLang : string
- $surveyTitle : string