Public Member Functions | Protected Member Functions | Protected Attributes

Language_Main Class Reference

Inheritance diagram for Language_Main:
Collaboration diagram for Language_Main:

List of all members.

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 ()

Protected Attributes

 $_aLangData = null
 $_aLangParams = null
 $_aLanguagesUrls = null
 $_aLanguagesSslUrls = null

Detailed Description

Admin article main selectlist manager. Performs collection and updatind (on user submit) main item information.

Definition at line 7 of file language_main.php.


Member Function Documentation

Language_Main._addNewMultilangFieldsToDb (  )  [protected]

Adding new language to DB - creating new multilangue fields with new language ID (e.g. oxtitle_4)

Returns:
null

Definition at line 383 of file language_main.php.

Language_Main._assignDefaultLangParams ( aLanguages  )  [protected]

Assign default values for eache language

Parameters:
array $aLanguages language array
Returns:
array

Definition at line 286 of file language_main.php.

Language_Main._checkLangExists ( sAbbr  )  [protected]

Check if language already exists

Parameters:
string $sAbbr language abbervation
Returns:
bool

Definition at line 415 of file language_main.php.

Language_Main._checkLangTranslations ( sOxId  )  [protected]

Check selected language has translation file lang.php If not - displays warning

Parameters:
string $sOxId language abbervation

Definition at line 346 of file language_main.php.

Language_Main._checkMultilangFieldsExistsInDb ( sOxId  )  [protected]

Check if selected language already has multilanguage fields in DB

Parameters:
string $sOxId language abbervation
Returns:
bool

Definition at line 366 of file language_main.php.

Language_Main._getAvailableLangBaseId (  )  [protected]

Get availabale language base ID

Returns:
int

Definition at line 318 of file language_main.php.

Language_Main._getLanguageInfo ( sOxId  )  [protected]

Get selected language info

Parameters:
string $sOxId language abbervation
Returns:
array

Definition at line 182 of file language_main.php.

Language_Main._getLanguages (  )  [protected]

Loads from config all data related with languages. If no languages parameters array exists, sets default parameters values. Returns collected languages parameters array.

Returns:
array

Definition at line 213 of file language_main.php.

Language_Main._setDefaultLang ( sOxId  )  [protected]

Sets default language base ID to config var 'sDefaultLang'

Parameters:
string $sOxId language abbervation

Definition at line 307 of file language_main.php.

Language_Main._setLanguages ( aLangData  )  [protected]

Languages array setter

Parameters:
array $aLangData languages parameters array

Definition at line 201 of file language_main.php.

Language_Main._sortLangArraysByBaseId (  )  [protected]

Sort languages, languages parameters, urls, ssl urls arrays according base land ID

Definition at line 259 of file language_main.php.

Language_Main._sortLangParamsByBaseIdCallback ( oLang1,
oLang2 
) [protected]

Callback function for sorting languages arraty. Sorts array according 'baseId' parameter

Parameters:
object $oLang1 language array
object $oLang2 language array
Returns:
bool

Definition at line 436 of file language_main.php.

Language_Main._updateAbbervation ( sOldId,
sNewId 
) [protected]

Replaces languages arrays keys by new value.

Parameters:
string $sOldId old ID
string $sNewId new ID

Definition at line 234 of file language_main.php.

Language_Main._validateInput (  )  [protected]

Check language input errors

Returns:
bool

Definition at line 446 of file language_main.php.

Language_Main.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".

Returns:
string

Reimplemented from oxAdminDetails.

Definition at line 45 of file language_main.php.

Language_Main.save (  ) 

Saves selection list parameters changes.

Returns:
mixed

Reimplemented from oxAdminView.

Definition at line 73 of file language_main.php.


Member Data Documentation

Language_Main.$_aLangData = null [protected]

Definition at line 15 of file language_main.php.

Language_Main.$_aLangParams = null [protected]

Definition at line 22 of file language_main.php.

Language_Main.$_aLanguagesSslUrls = null [protected]

Definition at line 36 of file language_main.php.

Language_Main.$_aLanguagesUrls = null [protected]

Definition at line 29 of file language_main.php.


The documentation for this class was generated from the following file: