OXID eShop CE  4.9.6
 All Classes Files Functions Variables Pages
Language_Main Class Reference
+ Inheritance diagram for Language_Main:
+ Collaboration diagram for Language_Main:

Public Member Functions

 render ()
 save ()
- Public Member Functions inherited from oxAdminDetails
 resetNrOfCatArticles ()
 resetNrOfVendorArticles ()
 resetNrOfManufacturerArticles ()
 changeFolder ()
- Public Member Functions inherited from oxAdminView
 __construct ()
 init ()
 addGlobalParams ($oShop=null)
 getServiceUrl ($sLangAbbr=null)
 resetContentCache ($blForceReset=null)
 resetCounter ($sCounterType, $sValue=null)
 getNavigation ()
 getViewId ()
 chshp ()
 resetSeoData ($sShopId)
 getPreviewId ()
 getEditObjectId ()
 setEditObjectId ($sId)
- Public Member Functions inherited from oxView
 setViewParameters ($aParams=null)
 getViewParameter ($sKey)
 setIsCallForCache ($blIsCallForCache=null)
 getIsCallForCache ()
 addTplParam ($sPara, $sValue)
 getBelboonParam ()
 getViewConfig ()
 getTemplateName ()
 setTemplateName ($sTemplate)
 setClassName ($sClassName)
 getClassName ()
 setFncName ($sFncName)
 getFncName ()
 setViewData ($aViewData=null)
 getViewData ()
 getViewDataElement ($sParamId=null)
 setClassLocation ($sClassLocation=null)
 getClassLocation ()
 setThisAction ($sThisAction=null)
 getThisAction ()
 setParent ($oParent=null)
 getParent ()
 setIsComponent ($blIsComponent=null)
 getIsComponent ()
 getAdditionalParams ()
 getTrustedShopId ()
 getTSExcellenceId ()
 getCharSet ()
 getShopVersion ()
 getShopEdition ()
 getRevision ()
 getPackageInfo ()
 getShopFullEdition ()
 isDemoVersion ()
 isBetaVersion ()
 isRCVersion ()
 showBetaNote ()
 isDemoShop ()
 showNewsletter ()
 setShowNewsletter ($blShow)
 getShopLogo ()
 setShopLogo ($sLogo)
 getActCategory ()
 setActCategory ($oCategory)
 getCategoryId ()
 setCategoryId ($sCategoryId)
 getErrorDestination ()
 getActionClassName ()
 isConnectedWithFb ()
 getFbUserId ()
 showFbConnectToAccountMsg ()
 isMall ()
 showRdfa ()
 getSidForWidget ()
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

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 Member Functions inherited from oxAdminDetails
 _getTextEditor ($iWidth, $iHeight, $oObject, $sField, $sStylesheet=null)
 _getEditValue ($oObject, $sField)
 _processEditValue ($sValue)
 _getPlainEditor ($iWidth, $iHeight, $oObject, $sField)
 _generateTextEditor ($iWidth, $iHeight, $oObject, $sField, $sStylesheet=null)
 _createCategoryTree ($sTplVarName, $sEditCatId= '', $blForceNonCache=false, $iTreeShopId=null)
 _getCategoryTree ($sTplVarName, $sSelectedCatId, $sEditCatId= '', $blForceNonCache=false, $iTreeShopId=null)
 _setupNavigation ($sNode)
 _resetCounts ($aIds)
- Protected Member Functions inherited from oxAdminView
 _getEditShop ($sShopId)
 _getServiceProtocol ()
 _getShopVersionNr ()
 _addNavigationHistory ($sNode)
 _getMaxUploadFileInfo ($iMaxFileSize, $blFormatted=false)
 _resetContentCache ()
 _allowAdminEdit ($sUserId)
 _getCountryByCode ($sCountryCode)
 _authorize ()
- Protected Member Functions inherited from oxView
 _executeNewAction ($sNewAction)

Protected Attributes

 $_aLangData = null
 $_aLangParams = null
 $_aLanguagesUrls = null
 $_aLanguagesSslUrls = null
- Protected Attributes inherited from oxAdminDetails
 $_oEditor = null
- Protected Attributes inherited from oxAdminView
 $_aSumType
 $_sThisTemplate = null
 $_iDefEdit = 0
 $_iEditLang = 0
 $_sShopTitle = " - "
 $_sShopVersion = null
 $_sServiceUrl = null
 $_oEditShop = null
 $_sEditObjectId = null
- Protected Attributes inherited from oxView
 $_aViewData = array()
 $_sClassLocation = null
 $_sThisAction = null
 $_oParent = null
 $_blIsComponent = false
 $_sThisTemplate = null
 $_sViewId = null
 $_sClass = null
 $_sFnc = null
 $_sTrustedShopId = null
 $_sTSExcellenceId = null
 $_sCharSet = null
 $_sVersion = null
 $_blDemoVersion = null
 $_blDemoShop = null
 $_iNewsStatus = null
 $_sShopLogo = null
 $_sCategoryId = null
 $_oClickCat = null
 $_blIsCallForCache = false
 $_oViewConf = null

Additional Inherited Members

- Static Protected Attributes inherited from oxAdminView
static $_oNaviTree = null
static $_sAuthUserRights = 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$aLanguageslanguage array
Returns
array

Definition at line 286 of file language_main.php.

Language_Main::_checkLangExists (   $sAbbr)
protected

Check if language already exists

Parameters
string$sAbbrlanguage 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$sOxIdlanguage 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$sOxIdlanguage 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$sOxIdlanguage 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$sOxIdlanguage abbervation

Definition at line 307 of file language_main.php.

Language_Main::_setLanguages (   $aLangData)
protected

Languages array setter

Parameters
array$aLangDatalanguages 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$oLang1language array
object$oLang2language 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$sOldIdold ID
string$sNewIdnew 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: