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

Public Member Functions

 getConfigParam ($sName)
 setConfigParam ($sName, $sValue)
 init ()
 pageClose ()
 getRequestParameter ($sName, $blRaw=false)
 getUploadedFile ($sParamName)
 setGlobalParameter ($sName, $sValue)
 getGlobalParameter ($sName)
 checkParamSpecialChars (&$sValue, $aRaw=null)
 getShopId ()
 setShopId ($sShopId)
 setIsSsl ($blIsSsl=false)
 isSsl ()
 isCurrentUrl ($sURL)
 isCurrentProtocol ($sURL)
 getShopUrl ($iLang=null, $blAdmin=null)
 getSslShopUrl ($iLang=null)
 getCoreUtilsUrl ()
 getCurrentShopUrl ($blAdmin=null)
 getShopCurrentUrl ($iLang=null)
 getShopHomeUrl ($iLang=null, $blAdmin=null)
 getWidgetUrl ($iLang=null, $blAdmin=null)
 getShopSecureHomeUrl ()
 getShopCurrency ()
 getActShopCurrencyObject ()
 setActShopCurrency ($iCur)
 getOutDir ($blAbsolute=true)
 getViewsDir ($blAbsolute=true)
 getTranslationsDir ($sFile, $sDir, $blAbsolute=true)
 getAppDir ($blAbsolute=true)
 getOutUrl ($blSSL=null, $blAdmin=null, $blNativeImg=false)
 getDir ($sFile, $sDir, $blAdmin, $iLang=null, $iShop=null, $sTheme=null, $blAbsolute=true, $blIgnoreCust=false)
 getUrl ($sFile, $sDir, $blAdmin=null, $blSSL=null, $blNativeImg=false, $iLang=null, $iShop=null, $sTheme=null)
 getImagePath ($sFile, $blAdmin=false)
 getImageUrl ($blAdmin=false, $blSSL=null, $blNativeImg=null, $sFile=null)
 getImageDir ($blAdmin=false)
 getPicturePath ($sFile, $blAdmin=false, $iLang=null, $iShop=null, $sTheme=null)
 getMasterPictureDir ($blAdmin=false)
 getMasterPicturePath ($sFile, $blAdmin=false)
 getPictureUrl ($sFile, $blAdmin=false, $blSSL=null, $iLang=null, $iShopId=null, $sDefPic="master/nopic.jpg")
 getPictureDir ($blAdmin)
 getTemplatePath ($sFile, $blAdmin)
 getTemplateDir ($blAdmin=false)
 getTemplateUrl ($sFile=null, $blAdmin=false, $blSSL=null, $iLang=null)
 getTemplateBase ($blAdmin=false)
 getResourcePath ($sFile= '', $blAdmin=false)
 getModulesDir ($blAbsolute=true)
 getResourceUrl ($sFile= '', $blAdmin=false, $blSSL=null, $iLang=null)
 getResourceDir ($blAdmin)
 getCurrencyArray ($iCurrency=null)
 getCurrencyObject ($sName)
 isDemoShop ()
 getEdition ()
 getFullEdition ()
 getVersion ()
 getRevision ()
 getPackageInfo ()
 isMall ()
 detectVersion ()
 saveShopConfVar ($sVarType, $sVarName, $sVarVal, $sShopId=null, $sModule= '')
 getShopConfVar ($sVarName, $sShopId=null, $sModule= '')
 decodeValue ($sType, $mOrigValue)
 getDecodeValueQuery ($sFieldName="oxvarvalue")
 isProductiveMode ()
 getBaseShopId ()
 getActiveShop ()
 getActiveView ()
 getTopActiveView ()
 getActiveViewsList ()
 setActiveView ($oView)
 dropLastActiveView ()
 hasActiveViewsChain ()
 getActiveViewsNames ()
 isUtf ()
 getLogsDir ()
 isThemeOption ($sName)
 getShopMainUrl ()
 getAllModules ()
 parseModuleChains ($aModules)
 getShopIds ()
 getShopUrlByLanguage ($iLang, $blSSL=false)
 getMallShopUrl ($blSSL=false)
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 __construct ()
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Static Public Member Functions

static getInstance ()
static getParameter ($sName, $blRaw=false)
static checkSpecialChars (&$sValue, $aRaw=null)

Public Attributes

const OXMODULE_THEME_PREFIX = 'theme:'
const OXMODULE_MODULE_PREFIX = 'module:'

Protected Member Functions

 _processSeoCall ()
 _loadVarsFromFile ()
 _setDefaults ()
 _loadCustomConfig ()
 _loadVarsFromDb ($sShopID, $aOnlyVars=null, $sModule= '')
 _setConfVarFromDb ($sVarName, $sVarType, $sVarVal)
 _checkSsl ()
 _handleDbConnectionException ($oEx)
 _handleCookieException ($oEx)

Protected Attributes

 $dbHost = null
 $dbName = null
 $dbUser = null
 $dbPwd = null
 $dbType = null
 $sShopURL = null
 $sSSLShopURL = null
 $sAdminSSLURL = null
 $sShopDir = null
 $sCompileDir = null
 $iDebug = 0
 $sAdminEmail = null
 $blSessionUseCookies = null
 $blNativeImages = true
 $aMultiShopTables
 $_oActShop = null
 $_aActiveViews = array()
 $_aGlobalParams = array()
 $_aConfigParams = array()
 $_aThemeConfigParams = array()
 $_iLanguageId = null
 $_iShopId = null
 $_sOutDir = 'out'
 $_sImageDir = 'img'
 $_sPictureDir = 'pictures'
 $_sMasterPictureDir = 'master'
 $_sTemplateDir = 'tpl'
 $_sResourceDir = 'src'
 $_sModulesDir = 'modules'
 $_blIsSsl = null
 $_aAbsDynImageDir = array()
 $_oActCurrencyObject = null
 $_blInit = false

Private Attributes

 $_oStart = null

Static Private Attributes

static $_instance = null

Additional Inherited Members

- Static Protected Attributes inherited from oxSuperCfg
static $_oConfig = null
static $_oSession = null
static $_oRights = null
static $_oActUser = null
static $_blIsAdmin = null

Detailed Description

Main shop configuration class.

Definition at line 10 of file oxconfig.php.

Member Function Documentation

oxConfig::_checkSsl ( )
protected

Checks if WEB session is SSL.

Returns
null

Definition at line 841 of file oxconfig.php.

oxConfig::_handleCookieException (   $oEx)
protected

Redirect to start page and display the error

Parameters
oxException$oExmessage to show on exit
Returns
bool

Definition at line 2241 of file oxconfig.php.

oxConfig::_handleDbConnectionException (   $oEx)
protected

Shows exception message if debug mode is enabled, redirects otherwise.

Parameters
oxException$oExmessage to show on exit
Returns
bool

Definition at line 2220 of file oxconfig.php.

oxConfig::_loadCustomConfig ( )
protected

Loads vars from custom config file

Returns
null;

Definition at line 520 of file oxconfig.php.

oxConfig::_loadVarsFromDb (   $sShopID,
  $aOnlyVars = null,
  $sModule = '' 
)
protected

Load config values from DB

Parameters
string$sShopIDshop ID to load parameters
array$aOnlyVarsarray of params to load (optional)
string$sModulemodule vars to load, empty for base options
Returns
bool

Definition at line 537 of file oxconfig.php.

oxConfig::_loadVarsFromFile ( )
protected

Loads vars from default config file

Returns
null;

Definition at line 449 of file oxconfig.php.

oxConfig::_processSeoCall ( )
protected

Parse SEO url parameters.

Returns
null

Definition at line 349 of file oxconfig.php.

oxConfig::_setConfVarFromDb (   $sVarName,
  $sVarType,
  $sVarVal 
)
protected

set config variable to config object, first unserializing it by given type

Parameters
string$sVarNamevariable name
string$sVarTypevariable type - arr, aarr, bool or str
string$sVarValserialized by type value
Returns
null

Definition at line 601 of file oxconfig.php.

oxConfig::_setDefaults ( )
protected

Set important defaults.

Returns
null;

Definition at line 470 of file oxconfig.php.

oxConfig::checkParamSpecialChars ( $sValue,
  $aRaw = null 
)

Checks if passed parameter has special chars and replaces them. Returns checked value.

Parameters
mixed&$sValuevalue to process escaping
array$aRawkeys of unescaped values
Returns
mixed

Definition at line 763 of file oxconfig.php.

static oxConfig::checkSpecialChars ( $sValue,
  $aRaw = null 
)
static

Checks if passed parameter has special chars and replaces them. Returns checked value.

Parameters
mixed&$sValuevalue to process escaping
array$aRawkeys of unescaped values
Deprecated:
since v5.0.0 (2012-08-27); Use public checkParamSpecialChars().
Returns
mixed

Definition at line 749 of file oxconfig.php.

oxConfig::decodeValue (   $sType,
  $mOrigValue 
)

Decodes and returns database value

Parameters
string$sTypeparameter type
mixed$mOrigValueparameter db value
Returns
mixed

Definition at line 1915 of file oxconfig.php.

oxConfig::detectVersion ( )

Checks version of shop, returns: 0 - version is bellow 2.2 1 - Demo or unlicensed 2 - Pro 3 - Enterprise

Returns
int

Definition at line 1801 of file oxconfig.php.

oxConfig::dropLastActiveView ( )

Drop last active view object

Returns
null

Definition at line 2051 of file oxconfig.php.

oxConfig::getActiveShop ( )

Loads and returns active shop object

Returns
oxShop

Definition at line 1980 of file oxconfig.php.

oxConfig::getActiveView ( )

Returns active view object. If this object was not defined - returns oxubase object

Returns
oxView

Definition at line 1997 of file oxconfig.php.

oxConfig::getActiveViewsList ( )

Returns all active views objects list.

Returns
array

Definition at line 2029 of file oxconfig.php.

oxConfig::getActiveViewsNames ( )

Get active views names list

Returns
array

Definition at line 2071 of file oxconfig.php.

oxConfig::getActShopCurrencyObject ( )

Returns active shop currency object.

Returns
object

Definition at line 1092 of file oxconfig.php.

oxConfig::getAllModules ( )

Get parsed modules

Returns
array

Definition at line 2131 of file oxconfig.php.

oxConfig::getAppDir (   $blAbsolute = true)

Returns path to out dir

Parameters
bool$blAbsolutemode - absolute/relative path
Returns
string

Definition at line 1185 of file oxconfig.php.

oxConfig::getBaseShopId ( )

Function returns default shop ID

Returns
string

Definition at line 1969 of file oxconfig.php.

oxConfig::getConfigParam (   $sName)

Returns config parameter value if such parameter exists

Parameters
string$sNameconfig parameter name
Returns
mixed

Definition at line 303 of file oxconfig.php.

oxConfig::getCoreUtilsUrl ( )

Returns utils dir URL

Returns
string

Definition at line 981 of file oxconfig.php.

oxConfig::getCurrencyArray (   $iCurrency = null)

Returns array of available currencies

Parameters
integer$iCurrencyActive currency number (default null)
Returns
array

Definition at line 1619 of file oxconfig.php.

oxConfig::getCurrencyObject (   $sName)

Returns currency object.

Parameters
string$sNameName of active currency
Returns
object

Definition at line 1682 of file oxconfig.php.

oxConfig::getCurrentShopUrl (   $blAdmin = null)

Returns SSL or non SSL shop URL without index.php depending on Mall affecting environment is admin mode and current ssl usage status

Parameters
bool$blAdminif admin
Returns
string

Definition at line 994 of file oxconfig.php.

oxConfig::getDecodeValueQuery (   $sFieldName = "oxvarvalue")

Returns decode query part user to decode config field value

Parameters
string$sFieldNamefield name, default "oxvarvalue" [optional]
Returns
string

Definition at line 1938 of file oxconfig.php.

oxConfig::getDir (   $sFile,
  $sDir,
  $blAdmin,
  $iLang = null,
  $iShop = null,
  $sTheme = null,
  $blAbsolute = true,
  $blIgnoreCust = false 
)

Finds and returns files or folders path in out dir

Parameters
string$sFileFile name
string$sDirDirectory name
bool$blAdminWhether to force admin
int$iLangLanguage id
int$iShopShop id
string$sThemeTheme name
bool$blAbsolutemode - absolute/relative path
bool$blIgnoreCustIgnore custom theme
Returns
string

Definition at line 1238 of file oxconfig.php.

oxConfig::getEdition ( )

Returns OXID eShop edition

Returns
string

Definition at line 1709 of file oxconfig.php.

oxConfig::getFullEdition ( )

Returns full eShop edition name

Returns
string

Definition at line 1721 of file oxconfig.php.

oxConfig::getGlobalParameter (   $sName)

Returns global parameter value

Parameters
string$sNamename of cached parameter
Returns
mixed

Definition at line 729 of file oxconfig.php.

oxConfig::getImageDir (   $blAdmin = false)

Finds and returns image folders path

Parameters
bool$blAdminWhether to force admin
Returns
string

Definition at line 1395 of file oxconfig.php.

oxConfig::getImagePath (   $sFile,
  $blAdmin = false 
)

Finds and returns image files or folders path

Parameters
string$sFileFile name
bool$blAdminWhether to force admin
Returns
string

Definition at line 1367 of file oxconfig.php.

oxConfig::getImageUrl (   $blAdmin = false,
  $blSSL = null,
  $blNativeImg = null,
  $sFile = null 
)

Finds and returns image folder url

Parameters
bool$blAdminWhether to force admin
bool$blSSLWhether to force ssl
bool$blNativeImgWhether to force native image dirs
string$sFileImage file name
Returns
string

Definition at line 1382 of file oxconfig.php.

static oxConfig::getInstance ( )
static

Returns oxConfig instance

Deprecated:
since v5.0 (2012-08-10); In order to get oxConfig instance use Registry functionality instead ( oxRegistry::getConfig() )
Returns
oxConfig

Definition at line 439 of file oxconfig.php.

oxConfig::getLogsDir ( )

Returns log files storage path

Returns
string

Definition at line 2099 of file oxconfig.php.

oxConfig::getMallShopUrl (   $blSSL = false)

Function returns mall shop url.

Parameters
bool$blSSL
Returns
null|string

Definition at line 2201 of file oxconfig.php.

oxConfig::getMasterPictureDir (   $blAdmin = false)

Finds and returns master pictures folder path

Parameters
bool$blAdminWhether to force admin
Returns
string

Definition at line 1423 of file oxconfig.php.

oxConfig::getMasterPicturePath (   $sFile,
  $blAdmin = false 
)

Finds and returns master picture path

Parameters
string$sFileFile name
bool$blAdminWhether to force admin
Returns
string

Definition at line 1436 of file oxconfig.php.

oxConfig::getModulesDir (   $blAbsolute = true)

Returns path to modules dir

Parameters
bool$blAbsolutemode - absolute/relative path
Returns
string

Definition at line 1575 of file oxconfig.php.

oxConfig::getOutDir (   $blAbsolute = true)

Returns path to out dir

Parameters
bool$blAbsolutemode - absolute/relative path
Returns
string

Definition at line 1134 of file oxconfig.php.

oxConfig::getOutUrl (   $blSSL = null,
  $blAdmin = null,
  $blNativeImg = false 
)

Returns url to out dir

Parameters
bool$blSSLWhether to force ssl
bool$blAdminWhether to force admin
bool$blNativeImgWhether to force native image dirs
Returns
string

Definition at line 1203 of file oxconfig.php.

oxConfig::getPackageInfo ( )

Returns build package info file content.

Returns
bool|string

Definition at line 1767 of file oxconfig.php.

static oxConfig::getParameter (   $sName,
  $blRaw = false 
)
static

Returns value of parameter stored in POST,GET. For security reasons performed checkParamSpecialChars(). use $blRaw very carefully if you want to get unescaped parameter.

Parameters
string$sNameName of parameter
bool$blRawGet unescaped parameter
Deprecated:
since v5.0.0 (2012-08-27); Use public getRequestParameter()
Returns
mixed

Definition at line 644 of file oxconfig.php.

oxConfig::getPictureDir (   $blAdmin)

Finds and returns product pictures folders path

Parameters
bool$blAdminWhether to force admin
Returns
string

Definition at line 1476 of file oxconfig.php.

oxConfig::getPicturePath (   $sFile,
  $blAdmin = false,
  $iLang = null,
  $iShop = null,
  $sTheme = null 
)

Finds and returns product pictures files or folders path

Parameters
string$sFileFile name
bool$blAdminWhether to force admin
int$iLangLanguage
int$iShopShop id
string$sThemetheme name
Returns
string

Definition at line 1411 of file oxconfig.php.

oxConfig::getPictureUrl (   $sFile,
  $blAdmin = false,
  $blSSL = null,
  $iLang = null,
  $iShopId = null,
  $sDefPic = "master/nopic.jpg" 
)

Finds and returns product picture file or folder url

Parameters
string$sFileFile name
bool$blAdminWhether to force admin
bool$blSSLWhether to force ssl
int$iLangLanguage
int$iShopIdShop id
string$sDefPicDefault (nopic) image path ["0/nopic.jpg"]
Returns
string

Definition at line 1453 of file oxconfig.php.

oxConfig::getRequestParameter (   $sName,
  $blRaw = false 
)

Returns value of parameter stored in POST,GET. For security reasons performed oxconfig->checkParamSpecialChars(). use $blRaw very carefully if you want to get unescaped parameter.

Parameters
string$sNameName of parameter
bool$blRawGet unescaped parameter
Returns
mixed

Definition at line 660 of file oxconfig.php.

oxConfig::getResourceDir (   $blAdmin)

Finds and returns resource (css, js, etc..) folders path

Parameters
bool$blAdminWhether to force admin
Returns
string

Definition at line 1607 of file oxconfig.php.

oxConfig::getResourcePath (   $sFile = '',
  $blAdmin = false 
)

Finds and returns resource (css, js, etc..) files or folders path

Parameters
string$sFileFile name
bool$blAdminWhether to force admin
Returns
string

Definition at line 1563 of file oxconfig.php.

oxConfig::getResourceUrl (   $sFile = '',
  $blAdmin = false,
  $blSSL = null,
  $iLang = null 
)

Finds and returns resource (css, js, etc..) file or folder url

Parameters
string$sFileFile name
bool$blAdminWhether to force admin
bool$blSSLWhether to force ssl
int$iLangLanguage id
Returns
string

Definition at line 1594 of file oxconfig.php.

oxConfig::getRevision ( )

Returns build revision number or false on read error.

Returns
int

Definition at line 1750 of file oxconfig.php.

oxConfig::getShopConfVar (   $sVarName,
  $sShopId = null,
  $sModule = '' 
)

Retrieves shop configuration parameters from DB.

Parameters
string$sVarNameVariable name
string$sShopIdShop ID
string$sModulemodule identifier
Returns
object - raw configuration value in DB

Definition at line 1882 of file oxconfig.php.

oxConfig::getShopCurrency ( )

Returns active shop currency.

Returns
string

Definition at line 1076 of file oxconfig.php.

oxConfig::getShopCurrentUrl (   $iLang = null)

Returns SSL or not SSL shop URL with index.php and sid

Parameters
int$iLanglanguage (optional)
Returns
string

Definition at line 1022 of file oxconfig.php.

oxConfig::getShopHomeUrl (   $iLang = null,
  $blAdmin = null 
)

Returns shop non SSL URL including index.php and sid.

Parameters
int$iLanglanguage
bool$blAdminif admin
Returns
string

Definition at line 1041 of file oxconfig.php.

oxConfig::getShopId ( )

Returns active shop ID.

Returns
int

Definition at line 796 of file oxconfig.php.

oxConfig::getShopIds ( )

Return active shop ids

Returns
array

Definition at line 2166 of file oxconfig.php.

oxConfig::getShopMainUrl ( )

Returns SSL or non SSL shop main URL without index.php

Returns
string

Definition at line 2121 of file oxconfig.php.

oxConfig::getShopSecureHomeUrl ( )

Returns shop SSL URL with index.php and sid.

Returns
string

Definition at line 1066 of file oxconfig.php.

oxConfig::getShopUrl (   $iLang = null,
  $blAdmin = null 
)

Returns config sShopURL or sMallShopURL if secondary shop

Parameters
int$iLanglanguage
bool$blAdminif set true, function returns shop url without checking language/subshops for different url.
Returns
string

Definition at line 922 of file oxconfig.php.

oxConfig::getShopUrlByLanguage (   $iLang,
  $blSSL = false 
)

Function returns shop url by given language. #680 per language another URL

Parameters
$iLang
$blSSL
Returns
null|string

Definition at line 2180 of file oxconfig.php.

oxConfig::getSslShopUrl (   $iLang = null)

Returns config sSSLShopURL or sMallSSLShopURL if secondary shop

Parameters
int$iLanglanguage (default is null)
Returns
string

Definition at line 948 of file oxconfig.php.

oxConfig::getTemplateBase (   $blAdmin = false)

Finds and returns base template folder url

Parameters
bool$blAdminWhether to force admin
Returns
string

Definition at line 1549 of file oxconfig.php.

oxConfig::getTemplateDir (   $blAdmin = false)

Finds and returns templates folders path

Parameters
bool$blAdminWhether to force admin
Returns
string

Definition at line 1522 of file oxconfig.php.

oxConfig::getTemplatePath (   $sFile,
  $blAdmin 
)

Finds and returns templates files or folders path

Parameters
string$sFileFile name
bool$blAdminWhether to force admin
Returns
string

Definition at line 1489 of file oxconfig.php.

oxConfig::getTemplateUrl (   $sFile = null,
  $blAdmin = false,
  $blSSL = null,
  $iLang = null 
)

Finds and returns template file or folder url

Parameters
string$sFileFile name
bool$blAdminWhether to force admin
bool$blSSLWhether to force ssl
int$iLangLanguage id
Returns
string

Definition at line 1537 of file oxconfig.php.

oxConfig::getTopActiveView ( )

Returns top active view object from views chain.

Returns
oxView

Definition at line 2015 of file oxconfig.php.

oxConfig::getTranslationsDir (   $sFile,
  $sDir,
  $blAbsolute = true 
)

Returns path to translations dir

Parameters
string$sFileFile name
string$sDirDirectory name
bool$blAbsolutemode - absolute/relative path
Returns
string

Definition at line 1168 of file oxconfig.php.

oxConfig::getUploadedFile (   $sParamName)

Returns uploaded file parameter

Parameters
array$sParamNameparam name
Returns
null

Definition at line 704 of file oxconfig.php.

oxConfig::getUrl (   $sFile,
  $sDir,
  $blAdmin = null,
  $blSSL = null,
  $blNativeImg = false,
  $iLang = null,
  $iShop = null,
  $sTheme = null 
)

Finds and returns file or folder url in out dir

Parameters
string$sFileFile name
string$sDirDirectory name
bool$blAdminWhether to force admin
bool$blSSLWhether to force ssl
bool$blNativeImgWhether to force native image dirs
int$iLangLanguage id
int$iShopShop id
string$sThemeTheme name
Returns
string

Definition at line 1348 of file oxconfig.php.

oxConfig::getVersion ( )

Returns shops version number (eg. '4.4.2')

Returns
string

Definition at line 1739 of file oxconfig.php.

oxConfig::getViewsDir (   $blAbsolute = true)

Returns path to out dir

Parameters
bool$blAbsolutemode - absolute/relative path
Returns
string

Definition at line 1150 of file oxconfig.php.

oxConfig::getWidgetUrl (   $iLang = null,
  $blAdmin = null 
)

Returns widget start non SSL URL including widget.php and sid.

Parameters
int$iLanglanguage
bool$blAdminif admin
Returns
string

Definition at line 1054 of file oxconfig.php.

oxConfig::hasActiveViewsChain ( )

Check if there is more than one active view

Returns
null

Definition at line 2061 of file oxconfig.php.

oxConfig::init ( )

Starts session manager

Exceptions
oxConnectionException
Returns
null

Definition at line 364 of file oxconfig.php.

oxConfig::isCurrentProtocol (   $sURL)

Compares current protocol to supplied url string

Parameters
string$sURLURL
Returns
bool true if $sURL is equal to current page URL

Definition at line 904 of file oxconfig.php.

oxConfig::isCurrentUrl (   $sURL)

Compares current URL to supplied string

Parameters
string$sURLURL
Returns
bool true if $sURL is equal to current page URL

Definition at line 887 of file oxconfig.php.

oxConfig::isDemoShop ( )

Checks if the shop is in demo mode.

Returns
bool

Definition at line 1697 of file oxconfig.php.

oxConfig::isMall ( )

Checks if shop is MALL. Returns true on success.

Returns
bool

Definition at line 1786 of file oxconfig.php.

oxConfig::isProductiveMode ( )

Returns true if current active shop is in productive mode or false if not

Returns
bool

Definition at line 1948 of file oxconfig.php.

oxConfig::isSsl ( )

Checks if WEB session is SSL. Returns true if yes.

Returns
bool

Definition at line 872 of file oxconfig.php.

oxConfig::isThemeOption (   $sName)

Returns true if option is theme option

Parameters
string$sNameoption name
Returns
bool

Definition at line 2111 of file oxconfig.php.

oxConfig::isUtf ( )

Returns true if current installation works in UTF8 mode, or false if not

Returns
bool

Definition at line 2089 of file oxconfig.php.

oxConfig::pageClose ( )

Unsets all session data.

Returns
null

Definition at line 622 of file oxconfig.php.

oxConfig::parseModuleChains (   $aModules)

Parse array of module chains to nested array

Parameters
array$aModulesModule array (config format)
Returns
array

Definition at line 2143 of file oxconfig.php.

oxConfig::saveShopConfVar (   $sVarType,
  $sVarName,
  $sVarVal,
  $sShopId = null,
  $sModule = '' 
)

Updates or adds new shop configuration parameters to DB. Arrays must be passed not serialized, serialized values are supported just for backward compatibility.

Parameters
string$sVarTypeVariable Type
string$sVarNameVariable name
mixed$sVarValVariable value (can be string, integer or array)
string$sShopIdShop ID, default is current shop
string$sModuleModule name (empty for base options)
Returns
null

Definition at line 1819 of file oxconfig.php.

oxConfig::setActiveView (   $oView)

View object setter

Parameters
object$oViewview object
Returns
null

Definition at line 2041 of file oxconfig.php.

oxConfig::setActShopCurrency (   $iCur)

Sets the actual currency

Parameters
int$iCur0 = EUR, 1 = GBP, 2 = CHF
Returns
null

Definition at line 1118 of file oxconfig.php.

oxConfig::setConfigParam (   $sName,
  $sValue 
)

Stores config parameter value in config

Parameters
string$sNameconfig parameter name
string$sValueconfig parameter value
Returns
null

Definition at line 335 of file oxconfig.php.

oxConfig::setGlobalParameter (   $sName,
  $sValue 
)

Sets global parameter value

Parameters
string$sNamename of parameter
mixed$sValuevalue to store
Returns
null

Definition at line 717 of file oxconfig.php.

oxConfig::setIsSsl (   $blIsSsl = false)

Set is shop url

Parameters
bool$blIsSsl- state bool value
Returns
string

Definition at line 831 of file oxconfig.php.

oxConfig::setShopId (   $sShopId)

Active Shop id setter

Parameters
string$sShopIdshop id
Returns
null

Definition at line 816 of file oxconfig.php.

Member Data Documentation

oxConfig::$_aAbsDynImageDir = array()
protected

Definition at line 264 of file oxconfig.php.

oxConfig::$_aActiveViews = array()
protected

Definition at line 165 of file oxconfig.php.

oxConfig::$_aConfigParams = array()
protected

Definition at line 179 of file oxconfig.php.

oxConfig::$_aGlobalParams = array()
protected

Definition at line 172 of file oxconfig.php.

oxConfig::$_aThemeConfigParams = array()
protected

Definition at line 186 of file oxconfig.php.

oxConfig::$_blInit = false
protected

Definition at line 280 of file oxconfig.php.

oxConfig::$_blIsSsl = null
protected

Definition at line 257 of file oxconfig.php.

oxConfig::$_iLanguageId = null
protected

Definition at line 193 of file oxconfig.php.

oxConfig::$_instance = null
staticprivate

Definition at line 141 of file oxconfig.php.

oxConfig::$_iShopId = null
protected

Definition at line 200 of file oxconfig.php.

oxConfig::$_oActCurrencyObject = null
protected

Definition at line 271 of file oxconfig.php.

oxConfig::$_oActShop = null
protected

Definition at line 156 of file oxconfig.php.

oxConfig::$_oStart = null
private

Definition at line 148 of file oxconfig.php.

oxConfig::$_sImageDir = 'img'
protected

Definition at line 215 of file oxconfig.php.

oxConfig::$_sMasterPictureDir = 'master'
protected

Definition at line 229 of file oxconfig.php.

oxConfig::$_sModulesDir = 'modules'
protected

Definition at line 250 of file oxconfig.php.

oxConfig::$_sOutDir = 'out'
protected

Definition at line 208 of file oxconfig.php.

oxConfig::$_sPictureDir = 'pictures'
protected

Definition at line 222 of file oxconfig.php.

oxConfig::$_sResourceDir = 'src'
protected

Definition at line 243 of file oxconfig.php.

oxConfig::$_sTemplateDir = 'tpl'
protected

Definition at line 236 of file oxconfig.php.

oxConfig::$aMultiShopTables
protected
Initial value:
array( 'oxarticles', 'oxdiscount', 'oxcategories', 'oxattribute',
'oxlinks', 'oxvoucherseries', 'oxmanufacturers',
'oxnews', 'oxselectlist', 'oxwrapping',
'oxdeliveryset', 'oxdelivery', 'oxvendor', 'oxobject2category')

Definition at line 131 of file oxconfig.php.

oxConfig::$blNativeImages = true
protected

Definition at line 124 of file oxconfig.php.

oxConfig::$blSessionUseCookies = null
protected

Definition at line 113 of file oxconfig.php.

oxConfig::$dbHost = null
protected

Definition at line 20 of file oxconfig.php.

oxConfig::$dbName = null
protected

Definition at line 27 of file oxconfig.php.

oxConfig::$dbPwd = null
protected

Definition at line 41 of file oxconfig.php.

oxConfig::$dbType = null
protected

Definition at line 48 of file oxconfig.php.

oxConfig::$dbUser = null
protected

Definition at line 34 of file oxconfig.php.

oxConfig::$iDebug = 0
protected

Definition at line 99 of file oxconfig.php.

oxConfig::$sAdminEmail = null
protected

Definition at line 106 of file oxconfig.php.

oxConfig::$sAdminSSLURL = null
protected

Definition at line 69 of file oxconfig.php.

oxConfig::$sCompileDir = null
protected

Definition at line 83 of file oxconfig.php.

oxConfig::$sShopDir = null
protected

Definition at line 76 of file oxconfig.php.

oxConfig::$sShopURL = null
protected

Definition at line 55 of file oxconfig.php.

oxConfig::$sSSLShopURL = null
protected

Definition at line 62 of file oxconfig.php.

const oxConfig::OXMODULE_MODULE_PREFIX = 'module:'

Definition at line 294 of file oxconfig.php.

const oxConfig::OXMODULE_THEME_PREFIX = 'theme:'

Definition at line 287 of file oxconfig.php.


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