Language_Main Class Reference

Inheritance diagram for Language_Main:

Inheritance graph
[legend]
Collaboration diagram for Language_Main:

Collaboration graph
[legend]

List of all members.


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.


Public Member Functions

 render ()
 save ()

Protected Member Functions

 _getLanguageInfo ($sOxId)
 _loadLanguages ()
 _updateAbbervation ($sOldId, $sNewId)
 _sortLangArraysByBaseId ()
 _assignDefaultLangParams ()
 _setDefaultLang ($sOxId)
 _getAvailableLangBaseId ()
 _checkLangTranslations ($sOxId)
 _checkMultiLangDbFields ($sOxId)
 _sortLangParamsByBaseIdCallback ($oLang1, $oLang2)

Protected Attributes

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

Member Function Documentation

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 84 of file language_main.php.

Language_Main._getLanguageInfo ( sOxId  )  [protected]

Get selected language info

Parameters:
string $sOxId language abbervation
Returns:
array

Definition at line 164 of file language_main.php.

Language_Main._loadLanguages (  )  [protected]

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

Returns:
null

Definition at line 184 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
Returns:
unknown_type

Definition at line 205 of file language_main.php.

Language_Main._sortLangArraysByBaseId (  )  [protected]

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

Returns:
null

Definition at line 232 of file language_main.php.

Language_Main._assignDefaultLangParams (  )  [protected]

Assign default values for eache language

Returns:
array

Definition at line 257 of file language_main.php.

Language_Main._setDefaultLang ( sOxId  )  [protected]

Sets default language base ID to config var 'sDefaultLang'

Parameters:
string $sOxId language abbervation
Returns:
null

Definition at line 280 of file language_main.php.

Language_Main._getAvailableLangBaseId (  )  [protected]

Get availabale language base ID

Returns:
int

Definition at line 292 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
Returns:
null

Definition at line 322 of file language_main.php.

Language_Main._checkMultiLangDbFields ( sOxId  )  [protected]

Check if selected language has multilanguage fields in DB If not - displays warning

Parameters:
string $sOxId language abbervation
Returns:
null

Definition at line 344 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 382 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.$_aLanguagesUrls = null [protected]

Definition at line 29 of file language_main.php.

Language_Main.$_aLanguagesSslUrls = null [protected]

Definition at line 36 of file language_main.php.


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

Generated on Wed Apr 22 12:29:10 2009 for OXID eShop CE by  doxygen 1.5.5