OXID eShop CE  4.10.4
 All Classes Namespaces 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 ()
 executeFunction ($sFunction)
 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 ()
 checkAbbreviationAllowedCharacters ($sAbbreviation)
 isValidLanguageData ($aLanguageData)
 getNoJsValidator ()
- 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

Private Attributes

 $oConfigValidator

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

Language_Main::_checkLangExists (   $sAbbr)
protected

Check if language already exists

Parameters
string$sAbbrlanguage abbervation
Returns
bool

Definition at line 418 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 349 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 369 of file language_main.php.

Language_Main::_getAvailableLangBaseId ( )
protected

Get availabale language base ID

Returns
int

Definition at line 321 of file language_main.php.

Language_Main::_getLanguageInfo (   $sOxId)
protected

Get selected language info

Parameters
string$sOxIdlanguage abbervation
Returns
array

Definition at line 185 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 216 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 310 of file language_main.php.

Language_Main::_setLanguages (   $aLangData)
protected

Languages array setter

Parameters
array$aLangDatalanguages parameters array

Definition at line 204 of file language_main.php.

Language_Main::_sortLangArraysByBaseId ( )
protected

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

Definition at line 262 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 439 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 237 of file language_main.php.

Language_Main::_validateInput ( )
protected

Check language input errors

Returns
bool

Definition at line 449 of file language_main.php.

Language_Main::checkAbbreviationAllowedCharacters (   $sAbbreviation)
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.

Parameters
string$sAbbreviationlanguage abbreviation
Returns
bool

Definition at line 496 of file language_main.php.

Language_Main::getNoJsValidator ( )
protected
Returns
oxNoJsValidator

Definition at line 536 of file language_main.php.

Language_Main::isValidLanguageData (   $aLanguageData)
protected

Validates provided language data and sets error to view in case it is not valid.

Parameters
array$aLanguageData
Returns
bool

Definition at line 512 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 48 of file language_main.php.

Language_Main::save ( )

Saves selection list parameters changes.

Returns
mixed

Reimplemented from oxAdminView.

Definition at line 76 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.

Language_Main::$oConfigValidator
private

Definition at line 39 of file language_main.php.


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