OXID eShop CE
6.1.5
|
Public Member Functions | |
render () | |
save () | |
Protected Member Functions | |
_getLanguageInfo ($sOxId) | |
_setLanguages ($aLangData) | |
_getLanguages () | |
_updateAbbervation ($sOldId, $sNewId) | |
_sortLangArraysByBaseId () | |
_assignDefaultLangParams ($aLanguages) | |
_setDefaultLang ($sOxId) | |
_getAvailableLangBaseId () | |
_checkLangTranslations ($sOxId) | |
_checkMultilangFieldsExistsInDb ($sOxId) | |
_addNewMultilangFieldsToDb () | |
_checkLangExists ($sAbbr) | |
_sortLangParamsByBaseIdCallback ($oLang1, $oLang2) | |
_validateInput () | |
checkAbbreviationAllowedCharacters ($abbreviation) | |
addDisplayException ($message) | |
isValidLanguageData ($aLanguageData) | |
getNoJsValidator () | |
Protected Attributes | |
$_aLangData = null | |
$_aLangParams = null | |
$_aLanguagesUrls = null | |
$_aLanguagesSslUrls = null | |
Private Attributes | |
$noJsValidator | |
Admin article main selectlist manager. Performs collection and updatind (on user submit) main item information.
|
protected |
Adding new language to DB - creating new multilangue fields with new language ID (e.g. oxtitle_4)
|
protected |
Assign default values for eache language
array | $aLanguages | language array |
|
protected |
Check if language already exists
string | $sAbbr | language abbervation |
|
protected |
Check selected language has translation file lang.php If not - displays warning
string | $sOxId | language abbervation |
|
protected |
Check if selected language already has multilanguage fields in DB
string | $sOxId | language abbervation |
|
protected |
Get availabale language base ID
|
protected |
Get selected language info
string | $sOxId | language abbervation |
|
protected |
Loads from config all data related with languages. If no languages parameters array exists, sets default parameters values. Returns collected languages parameters array.
|
protected |
Sets default language base ID to config var 'sDefaultLang'
string | $sOxId | language abbervation |
|
protected |
Languages array setter
array | $aLangData | languages parameters array |
|
protected |
Sort languages, languages parameters, urls, ssl urls arrays according base land ID
|
protected |
Callback function for sorting languages arraty. Sorts array according 'baseId' parameter
object | $oLang1 | language array |
object | $oLang2 | language array |
|
protected |
Replaces languages arrays keys by new value.
string | $sOldId | old ID |
string | $sNewId | new ID |
|
protected |
Check language input errors
|
protected |
Add exception to be displayed in frontend.
string | $message | Language constant |
|
protected |
Check if language abbreviation contains only allowed characters. Abbreviation is used for view creation, so to be on the safe side with MySQL, only allow characters [0-9,a-z,A-Z_] (basic Latin letters, digits 0-9, underscore). Allowing other characters means table names would have to be escaped with backticks in all queries.
string | $abbreviation | language abbreviation |
RegExException | if pattern does not match |
|
protected |
|
protected |
Validates provided language data and sets error to view in case it is not valid.
array | $aLanguageData |
OxidEsales\EshopCommunity\Application\Controller\Admin\LanguageMain::render | ( | ) |
Executes parent method parent::render(), creates oxCategoryList object, passes it's data to Smarty engine and returns name of template file "selectlist_main.tpl".
OxidEsales\EshopCommunity\Application\Controller\Admin\LanguageMain::save | ( | ) |
Saves selection list parameters changes.
|
protected |
|
protected |
|
protected |
|
protected |
|
private |