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

Public Member Functions

 render ()
 saveConfVars ()
 save ()
 _loadConfVars ($sShopId, $sModule)
 loadConfVars ($sShopId, $sModule)
 _unserializeConfVar ($sType, $sName, $sValue)
 _serializeConfVar ($sType, $sName, $mValue)
 getEditObjectId ()
- 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 ()
 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

 _getModuleForConfigVars ()
 _parseConstraint ($sType, $sConstraint)
 _serializeConstraint ($sType, $sConstraint)
 _arrayToMultiline ($aInput)
 _multilineToArray ($sMultiline)
 _aarrayToMultiline ($aInput)
 _multilineToAarray ($sMultiline)
- 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)
 _allowAdminEdit ($sUserId)
 _getCountryByCode ($sCountryCode)
 _authorize ()
- Protected Member Functions inherited from oxView
 _executeNewAction ($sNewAction)

Protected Attributes

 $_sThisTemplate = 'shop_config.tpl'
 $_aSkipMultiline = array('aHomeCountry', 'iShopID_TrustedShops', 'aTsUser', 'aTsPassword')
 $_aParseFloat = array('iMinOrderPrice')
 $_aConfParams
- 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 shop config manager. Collects shop config information, updates it on user submit, etc. Admin Menu: Main Menu -> Core Settings -> General.

Definition at line 8 of file shop_config.php.

Member Function Documentation

Shop_Config::_aarrayToMultiline (   $aInput)
protected

Converts associative array to multiline text. Returns this text.

Parameters
array$aInputArray to convert
Returns
string

Definition at line 410 of file shop_config.php.

Shop_Config::_arrayToMultiline (   $aInput)
protected

Converts simple array to multiline text. Returns this text.

Parameters
array$aInputArray with text
Returns
string

Definition at line 373 of file shop_config.php.

Shop_Config::_getModuleForConfigVars ( )
protected

return theme filter for config variables

Returns
string

Reimplemented in Module_Config, and Theme_Config.

Definition at line 99 of file shop_config.php.

Shop_Config::_loadConfVars (   $sShopId,
  $sModule 
)

Load and parse config vars from db. Return value is a map: 'vars' => config variable values as array[type][name] = value 'constraints' => constraints list as array[name] = constraint 'grouping' => grouping info as array[name] = grouping

Parameters
string$sShopIdShop id
string$sModulemodule to load (empty string is for base values)
Deprecated:
since v5.0.0 (2012-10-19); Use public loadConfVars().
Returns
array

Definition at line 177 of file shop_config.php.

Shop_Config::_multilineToAarray (   $sMultiline)
protected

Converts Multiline text to associative array. Returns this array.

Parameters
string$sMultilineMultiline text
Returns
array

Reimplemented in dyn_trusted_ratings.

Definition at line 431 of file shop_config.php.

Shop_Config::_multilineToArray (   $sMultiline)
protected

Converts Multiline text to simple array. Returns this array.

Parameters
string$sMultilineMultiline text
Returns
array

Reimplemented in dyn_trusted_ratings.

Definition at line 389 of file shop_config.php.

Shop_Config::_parseConstraint (   $sType,
  $sConstraint 
)
protected

parse constraint from type and serialized values

Parameters
string$sTypevariable type
string$sConstraintserialized constraint
Returns
mixed

Definition at line 252 of file shop_config.php.

Shop_Config::_serializeConfVar (   $sType,
  $sName,
  $mValue 
)

Serialize config var depending on it's type

Parameters
string$sTypevar type
string$sNamevar name
mixed$mValuevar value
Returns
string

Definition at line 337 of file shop_config.php.

Shop_Config::_serializeConstraint (   $sType,
  $sConstraint 
)
protected

serialize constraint from type and value

Parameters
string$sTypevariable type
mixed$sConstraintconstraint value
Returns
string

Definition at line 270 of file shop_config.php.

Shop_Config::_unserializeConfVar (   $sType,
  $sName,
  $sValue 
)

Unserialize config var depending on it's type

Parameters
string$sTypevar type
string$sNamevar name
string$sValuevar value
Returns
mixed

Definition at line 289 of file shop_config.php.

Shop_Config::getEditObjectId ( )

Returns active/editable object id

Returns
string

Reimplemented from oxAdminView.

Definition at line 455 of file shop_config.php.

Shop_Config::loadConfVars (   $sShopId,
  $sModule 
)

Load and parse config vars from db. Return value is a map: 'vars' => config variable values as array[type][name] = value 'constraints' => constraints list as array[name] = constraint 'grouping' => grouping info as array[name] = grouping

Parameters
string$sShopIdShop id
string$sModulemodule to load (empty string is for base values)
Returns
array

Definition at line 194 of file shop_config.php.

Shop_Config::render ( )

Executes parent method parent::render(), passes shop configuration parameters to Smarty and returns name of template file "shop_config.tpl".

Returns
string

Reimplemented from oxAdminDetails.

Reimplemented in dyn_trusted, Shop_License, dyn_trusted_ratings, Shop_System, Shop_Seo, dyn_econda, Module_Config, and Theme_Config.

Definition at line 29 of file shop_config.php.

Shop_Config::save ( )

Saves changed shop configuration parameters.

Returns
mixed

Reimplemented from oxAdminView.

Reimplemented in Shop_Seo, dyn_trusted, and dyn_trusted_ratings.

Definition at line 150 of file shop_config.php.

Shop_Config::saveConfVars ( )

Saves shop configuration variables

Returns
null

Reimplemented in Module_Config, and Theme_Config.

Definition at line 109 of file shop_config.php.

Member Data Documentation

Shop_Config::$_aConfParams
protected
Initial value:
array(
"bool" => 'confbools',
"str" => 'confstrs',
"arr" => 'confarrs',
"aarr" => 'confaarrs',
"select" => 'confselects',
"num" => 'confnum',
)

Definition at line 14 of file shop_config.php.

Shop_Config::$_aParseFloat = array('iMinOrderPrice')
protected

Definition at line 12 of file shop_config.php.

Shop_Config::$_aSkipMultiline = array('aHomeCountry', 'iShopID_TrustedShops', 'aTsUser', 'aTsPassword')
protected

Definition at line 11 of file shop_config.php.

Shop_Config::$_sThisTemplate = 'shop_config.tpl'
protected

Definition at line 10 of file shop_config.php.


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