OXID eShop CE  4.10.8
 All Classes Namespaces Files Functions Variables Pages
oxViewConfig Class Reference
+ Inheritance diagram for oxViewConfig:
+ Collaboration diagram for oxViewConfig:

Public Member Functions

 getHomeLink ()
 getActContentLoadId ()
 getActTplName ()
 getActCurrency ()
 getLogoutLink ()
 getHelpPageLink ()
 getActCatId ()
 getActArticleId ()
 getActSearchParam ()
 getActSearchTag ()
 getActRecommendationId ()
 getActListType ()
 getActManufacturerId ()
 getContentId ()
 setViewConfigParam ($sName, $sValue)
 getViewConfigParam ($sName)
 setViewShop ($oShop, $aViewData)
 getSessionId ()
 getHiddenSid ()
 getSelfLink ()
 getSslSelfLink ()
 getBaseDir ()
 getCoreUtilsDir ()
 getSelfActionLink ()
 getCurrentHomeDir ()
 getBasketLink ()
 getOrderLink ()
 getPaymentLink ()
 getExeOrderLink ()
 getOrderConfirmLink ()
 getResourceUrl ($sFile=null)
 getTemplateDir ()
 getUrlTemplateDir ()
 getImageUrl ($sFile=null, $bSsl=null)
 getNoSslImageDir ()
 getPictureDir ()
 getAdminDir ()
 getActiveShopId ()
 isSsl ()
 getRemoteAddress ()
 getPopupIdent ()
 getPopupIdentRand ()
 getArtPerPageForm ()
 isBuyableParent ()
 showBirthdayFields ()
 showFinalStep ()
 getNrOfCatArticles ()
 getShowWishlist ()
 getShowCompareList ()
 getShowListmania ()
 getShowVouchers ()
 getShowGiftWrapping ()
 getActLanguageId ()
 getActLanguageAbbr ()
 getActiveClassName ()
 getTopActiveClassName ()
 getArtPerPageCount ()
 getNavUrlParams ()
 getNavFormParams ()
 getStockOnDefaultMessage ()
 getStockOffDefaultMessage ()
 getShopVersion ()
 getAjaxLink ()
 isMultiShop ()
 getServiceUrl ()
 getRemoteAccessToken ()
 getActionClassName ()
 getTopActionClassName ()
 getFbAppId ()
 getShowBasketTimeout ()
 getBasketTimeLeft ()
 getShowFbConnect ()
 getTsDomain ()
 getTsRatings ()
 getTsRatingUrl ()
 showTs ($sType)
 getTsId ()
 isTplBlocksDebugMode ()
 getPasswordLength ()
 getCountryList ()
 getModulePath ($sModule, $sFile= '')
 getModuleUrl ($sModule, $sFile= '')
 isModuleActive ($sModuleId, $sVersionFrom=null, $sVersionTo=null)
 getViewThemeParam ($sName)
 showSelectLists ()
 showSelectListsInList ()
 isAltImageServerConfigured ()
 isFunctionalityEnabled ($sParamName)
 getActiveTheme ()
 getShopLogo ()
 setShopLogo ($sLogo)
 getSessionChallengeToken ()
 getEdition ()
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 __construct ()
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _getHelpContentIdents ()

Protected Attributes

 $_oShop = null
 $_aViewData = null
 $_aConfigParams = array()
 $_sHelpPageLink = null
 $_oCountryList = null
 $_aTrustedShopRatings = null
 $_sActiveTheme = null
 $_sShopLogo = null

Private Member Functions

 _moduleExists ($sModuleId, $aModuleVersions)
 _isModuleEnabled ($sModuleId)
 _isModuleVersionCorrect ($sModuleId, $sVersionFrom, $sVersionTo)

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

View config data access class. Keeps most of getters needed for formatting various urls, config parameters, session information etc.

Definition at line 8 of file oxviewconfig.php.

Member Function Documentation

oxViewConfig::_getHelpContentIdents ( )
protected

Returns help content link idents

Returns
array

Definition at line 190 of file oxviewconfig.php.

oxViewConfig::_isModuleEnabled (   $sModuleId)
private

Checks whether module is enabled.

Parameters
string$sModuleIdModule id
Returns
bool

Definition at line 1586 of file oxviewconfig.php.

oxViewConfig::_isModuleVersionCorrect (   $sModuleId,
  $sVersionFrom,
  $sVersionTo 
)
private

Checks whether module version is between given range.

Parameters
string$sModuleIdModule id
string$sVersionFromVersion from
string$sVersionToVersion to
Returns
bool

Definition at line 1606 of file oxviewconfig.php.

oxViewConfig::_moduleExists (   $sModuleId,
  $aModuleVersions 
)
private

Checks if module exists.

Parameters
string$sModuleIdModule id
array$aModuleVersionsModules from oxconfig 'aModuleVersions'
Returns
bool

Definition at line 1568 of file oxviewconfig.php.

oxViewConfig::getActArticleId ( )

Returns active article id

Returns
string

Definition at line 234 of file oxviewconfig.php.

oxViewConfig::getActCatId ( )

Returns active category id

Returns
string

Definition at line 224 of file oxviewconfig.php.

oxViewConfig::getActContentLoadId ( )

Returns active template name (if set)

Returns
string

Definition at line 111 of file oxviewconfig.php.

oxViewConfig::getActCurrency ( )

Returns active currency id

Returns
string

Definition at line 137 of file oxviewconfig.php.

oxViewConfig::getActionClassName ( )

Returns name of a view class, which will be active for an action (given a generic fnc, e.g. logout)

Returns
string

Definition at line 1082 of file oxviewconfig.php.

oxViewConfig::getActiveClassName ( )

Returns name of active view class

Returns
string

Definition at line 924 of file oxviewconfig.php.

oxViewConfig::getActiveShopId ( )

Returns currently open shop id

Returns
string

Definition at line 692 of file oxviewconfig.php.

oxViewConfig::getActiveTheme ( )

Returns active theme name

Returns
string

Definition at line 1504 of file oxviewconfig.php.

oxViewConfig::getActLanguageAbbr ( )

Returns session language id

Returns
string

Definition at line 914 of file oxviewconfig.php.

oxViewConfig::getActLanguageId ( )

Returns session language id

Returns
string

Definition at line 898 of file oxviewconfig.php.

oxViewConfig::getActListType ( )

Returns active listtype parameter

Returns
string

Definition at line 278 of file oxviewconfig.php.

oxViewConfig::getActManufacturerId ( )

Returns active manufacturer id

Returns
string

Definition at line 288 of file oxviewconfig.php.

oxViewConfig::getActRecommendationId ( )

Returns active recommendation id parameter

Deprecated:
since v5.3 (2016-06-17); Listmania will be moved to an own module.
Returns
string

Definition at line 268 of file oxviewconfig.php.

oxViewConfig::getActSearchParam ( )

Returns active search parameter

Returns
string

Definition at line 244 of file oxviewconfig.php.

oxViewConfig::getActSearchTag ( )

Returns active search tag parameter

Deprecated:
v5.3 (2016-05-04); Tags will be moved to own module.
Returns
string

Definition at line 256 of file oxviewconfig.php.

oxViewConfig::getActTplName ( )

Returns active manufacturer id

Returns
string

Definition at line 127 of file oxviewconfig.php.

oxViewConfig::getAdminDir ( )

Returns admin path

Returns
string

Definition at line 677 of file oxviewconfig.php.

oxViewConfig::getAjaxLink ( )

Returns AJAX request url

Returns
string

Definition at line 1036 of file oxviewconfig.php.

oxViewConfig::getArtPerPageCount ( )

Returns max number of items shown on page

Returns
int

Definition at line 945 of file oxviewconfig.php.

oxViewConfig::getArtPerPageForm ( )

Returns list view paging url

Returns
string

Definition at line 768 of file oxviewconfig.php.

oxViewConfig::getBaseDir ( )

Returns shops base directory path

Returns
string

Definition at line 436 of file oxviewconfig.php.

oxViewConfig::getBasketLink ( )

Returns shops basket link

Returns
string

Definition at line 502 of file oxviewconfig.php.

oxViewConfig::getBasketTimeLeft ( )

return the seconds left until basket expiration

Returns
int

Definition at line 1126 of file oxviewconfig.php.

oxViewConfig::getContentId ( )

Returns active content id

Returns
string

Definition at line 298 of file oxviewconfig.php.

oxViewConfig::getCoreUtilsDir ( )

Returns shops utility directory path

Returns
string

Definition at line 457 of file oxviewconfig.php.

oxViewConfig::getCountryList ( )

Return country list

Returns
oxcountrylist

Definition at line 1315 of file oxviewconfig.php.

oxViewConfig::getCurrentHomeDir ( )

Returns shops home path

Returns
string

Definition at line 487 of file oxviewconfig.php.

oxViewConfig::getEdition ( )

Return shop edition (EE|CE|PE)

Returns
string

Definition at line 1628 of file oxviewconfig.php.

oxViewConfig::getExeOrderLink ( )

Returns shops order execution link

Returns
string

Definition at line 547 of file oxviewconfig.php.

oxViewConfig::getFbAppId ( )

Returns facebook application key value

Deprecated:
since v5.3 (2016-05-20); Facebook will be extracted into module.
Returns
string

Definition at line 1105 of file oxviewconfig.php.

oxViewConfig::getHelpPageLink ( )

Returns shop help link

Returns
string

Definition at line 202 of file oxviewconfig.php.

oxViewConfig::getHiddenSid ( )

Returns forms hidden session parameters

Returns
string

Definition at line 379 of file oxviewconfig.php.

oxViewConfig::getHomeLink ( )

Returns shops home link

Returns
string

Definition at line 74 of file oxviewconfig.php.

oxViewConfig::getImageUrl (   $sFile = null,
  $bSsl = null 
)

Returns image url

Parameters
string$sFileImage file name
bool$bSslWhether to force SSL
Returns
string

Definition at line 629 of file oxviewconfig.php.

oxViewConfig::getLogoutLink ( )

Returns shop logout link

Returns
string

Definition at line 147 of file oxviewconfig.php.

oxViewConfig::getModulePath (   $sModule,
  $sFile = '' 
)

return path to the requested module file

Parameters
string$sModulemodule name (directory name in modules dir)
string$sFilefile name to lookup
Exceptions
oxFileException
Returns
string

Definition at line 1337 of file oxviewconfig.php.

oxViewConfig::getModuleUrl (   $sModule,
  $sFile = '' 
)

return url to the requested module file

Parameters
string$sModulemodule name (directory name in modules dir)
string$sFilefile name to lookup
Exceptions
oxFileException
Returns
string

Definition at line 1368 of file oxviewconfig.php.

oxViewConfig::getNavFormParams ( )

Returns navigation forms parameters

Returns
string

Definition at line 982 of file oxviewconfig.php.

oxViewConfig::getNavUrlParams ( )

Returns navigation url parameters

Returns
string

Definition at line 955 of file oxviewconfig.php.

oxViewConfig::getNoSslImageDir ( )

Returns non ssl image url

Returns
string

Definition at line 646 of file oxviewconfig.php.

oxViewConfig::getNrOfCatArticles ( )

Returns config param "aNrofCatArticles" value

Returns
array

Definition at line 815 of file oxviewconfig.php.

oxViewConfig::getOrderConfirmLink ( )

Returns shops order confirmation link

Returns
string

Definition at line 562 of file oxviewconfig.php.

oxViewConfig::getOrderLink ( )

Returns shops order link

Returns
string

Definition at line 517 of file oxviewconfig.php.

oxViewConfig::getPasswordLength ( )

min length of password

Returns
int

Definition at line 1297 of file oxviewconfig.php.

oxViewConfig::getPaymentLink ( )

Returns shops payment link

Returns
string

Definition at line 532 of file oxviewconfig.php.

oxViewConfig::getPictureDir ( )

Returns dynamic (language related) image url Left for compatibility reasons for a while. Will be removed in future

Returns
string

Definition at line 662 of file oxviewconfig.php.

oxViewConfig::getPopupIdent ( )

Returns basket popup identifier

Returns
string

Definition at line 738 of file oxviewconfig.php.

oxViewConfig::getPopupIdentRand ( )

Returns random basket popup identifier

Returns
string

Definition at line 753 of file oxviewconfig.php.

oxViewConfig::getRemoteAccessToken ( )

Returns session Remote Access token. Later you can pass the token over rtoken URL param when you want to access the shop, for example, from different client.

Returns
string

Definition at line 1069 of file oxviewconfig.php.

oxViewConfig::getRemoteAddress ( )

Returns visitor ip address

Returns
string

Definition at line 723 of file oxviewconfig.php.

oxViewConfig::getResourceUrl (   $sFile = null)

Returns shops resource url

Parameters
string$sFileresource file name
Returns
string

Definition at line 579 of file oxviewconfig.php.

oxViewConfig::getSelfActionLink ( )

Returns shops action link

Returns
string

Definition at line 472 of file oxviewconfig.php.

oxViewConfig::getSelfLink ( )

Returns shops self link

Returns
string

Definition at line 401 of file oxviewconfig.php.

oxViewConfig::getServiceUrl ( )

Returns service url

Returns
string

Definition at line 1058 of file oxviewconfig.php.

oxViewConfig::getSessionChallengeToken ( )

retrieve session challenge token from session

Returns
string

Definition at line 1549 of file oxviewconfig.php.

oxViewConfig::getSessionId ( )

Returns session id

Deprecated:
v5.1.0 Use conditional sid getter oxView::getSidForWidget() for widgets instead
Returns
string

Definition at line 364 of file oxviewconfig.php.

oxViewConfig::getShopLogo ( )

Returns shop logo image file name from config option

Returns
string

Definition at line 1519 of file oxviewconfig.php.

oxViewConfig::getShopVersion ( )

Returns shop version defined in view

Returns
string

Definition at line 1026 of file oxviewconfig.php.

oxViewConfig::getShowBasketTimeout ( )

should basket timeout counter be shown?

Returns
bool

Definition at line 1115 of file oxviewconfig.php.

oxViewConfig::getShowCompareList ( )

Returns config param "bl_showCompareList" value

Returns
bool

Definition at line 847 of file oxviewconfig.php.

oxViewConfig::getShowFbConnect ( )

Checks if Facebook connect is on. If yes, also checks if Facebook application id and secure key are entered in config table.

Deprecated:
since v5.3 (2016-05-20); Facebook will be extracted into module.
Returns
bool

Definition at line 1143 of file oxviewconfig.php.

oxViewConfig::getShowGiftWrapping ( )

Returns config param "bl_showGiftWrapping" value

Returns
bool

Definition at line 888 of file oxviewconfig.php.

oxViewConfig::getShowListmania ( )

Returns config param "bl_showListmania" value

Deprecated:
since v5.3 (2016-06-17); Listmania will be moved to an own module.
Returns
bool

Definition at line 868 of file oxviewconfig.php.

oxViewConfig::getShowVouchers ( )

Returns config param "bl_showVouchers" value

Returns
bool

Definition at line 878 of file oxviewconfig.php.

oxViewConfig::getShowWishlist ( )

Returns config param "bl_showWishlist" value

Returns
bool

Definition at line 837 of file oxviewconfig.php.

oxViewConfig::getSslSelfLink ( )

Returns shops self ssl link

Returns
string

Definition at line 416 of file oxviewconfig.php.

oxViewConfig::getStockOffDefaultMessage ( )

Returns config param "blStockOnDefaultMessage" value

Returns
string

Definition at line 1016 of file oxviewconfig.php.

oxViewConfig::getStockOnDefaultMessage ( )

Returns config param "blStockOnDefaultMessage" value

Returns
string

Definition at line 1006 of file oxviewconfig.php.

oxViewConfig::getTemplateDir ( )

Returns shops current (related to language) templates path

Returns
string

Definition at line 596 of file oxviewconfig.php.

oxViewConfig::getTopActionClassName ( )

Returns name of a class of top view in the chain (given a generic fnc, e.g. logout)

Returns
string

Definition at line 1093 of file oxviewconfig.php.

oxViewConfig::getTopActiveClassName ( )

Returns name of a class of top view in the chain (given a generic fnc, e.g. logout)

Returns
string

Definition at line 935 of file oxviewconfig.php.

oxViewConfig::getTsDomain ( )

Returns Trusted shops domain name (includes "http://")

Deprecated:
since 5.3.0 (2016.04.28); Use Trusted Shops Module instead.
Returns
string

Definition at line 1163 of file oxviewconfig.php.

oxViewConfig::getTsId ( )

Returns Trusted Shops id

Deprecated:
since 5.3.0 (2016.04.19); Use Trusted Shops Module instead.
Returns
string

Definition at line 1264 of file oxviewconfig.php.

oxViewConfig::getTsRatings ( )

Gets Trusted shops ratings from Trusted shops

Deprecated:
since 5.3.0 (2016.04.19); Use Trusted Shops Module instead.
Returns
array

Definition at line 1181 of file oxviewconfig.php.

oxViewConfig::getTsRatingUrl ( )

Trusted Shops ratings url

Deprecated:
since 5.3.0 (2016.04.19); Use Trusted Shops Module instead.
Returns
string | bool

Definition at line 1204 of file oxviewconfig.php.

oxViewConfig::getUrlTemplateDir ( )

Returns shops current templates url

Returns
string

Definition at line 611 of file oxviewconfig.php.

oxViewConfig::getViewConfigParam (   $sName)

Returns current view config parameter

Parameters
string$sNamename of parameter to get
Returns
mixed

Definition at line 327 of file oxviewconfig.php.

oxViewConfig::getViewThemeParam (   $sName)

return param value

Parameters
string$sNameparam name
Returns
mixed

Definition at line 1440 of file oxviewconfig.php.

oxViewConfig::isAltImageServerConfigured ( )

Checks if alternative image server is configured.

Returns
bool

Definition at line 1479 of file oxviewconfig.php.

oxViewConfig::isBuyableParent ( )

Returns "blVariantParentBuyable" parent article config state

Returns
string

Definition at line 783 of file oxviewconfig.php.

oxViewConfig::isFunctionalityEnabled (   $sParamName)

Get config parameter for view to check if functionality is turned on or off.

Parameters
string$sParamNameconfig parameter name.
Returns
bool

Definition at line 1494 of file oxviewconfig.php.

oxViewConfig::isModuleActive (   $sModuleId,
  $sVersionFrom = null,
  $sVersionTo = null 
)

Check if module is active. If versionFrom or|and versionTo is defined - also checks module versions.

Parameters
string$sModuleIdmodule id.
string$sVersionFrommodule from version.
string$sVersionTomodule to version.
Returns
bool

Definition at line 1415 of file oxviewconfig.php.

oxViewConfig::isMultiShop ( )

Returns multishop status

Returns
bool

Definition at line 1046 of file oxviewconfig.php.

oxViewConfig::isSsl ( )

Returns ssl mode (on/off)

Returns
string

Definition at line 707 of file oxviewconfig.php.

oxViewConfig::isTplBlocksDebugMode ( )

true if blocks javascript code be enabled in templates

Returns
bool

Definition at line 1287 of file oxviewconfig.php.

oxViewConfig::setShopLogo (   $sLogo)

Sets shop logo

Parameters
string$sLogoshop logo image file name

Definition at line 1539 of file oxviewconfig.php.

oxViewConfig::setViewConfigParam (   $sName,
  $sValue 
)

Sets view config parameter, which can be accessed in templates in two ways:

$oViewConf->getViewConfigParam( $sName )

Parameters
string$sNamename of parameter
mixed$sValueparameter value

Definition at line 311 of file oxviewconfig.php.

oxViewConfig::setViewShop (   $oShop,
  $aViewData 
)

Sets shop object and view data to view config. This is needed mostly for old templates

Parameters
oxshop$oShopshop object
array$aViewDataview data array

Definition at line 351 of file oxviewconfig.php.

oxViewConfig::showBirthdayFields ( )

Returns config param "blShowBirthdayFields" value

Returns
string

Definition at line 793 of file oxviewconfig.php.

oxViewConfig::showFinalStep ( )

Returns config param "blShowFinalStep" value

Deprecated:
since 2012-11-19. Option blShowFinalStep is removed
Returns
bool

Definition at line 805 of file oxviewconfig.php.

oxViewConfig::showSelectLists ( )

Returns true if selection lists must be displayed in details page

Returns
bool

Definition at line 1457 of file oxviewconfig.php.

oxViewConfig::showSelectListsInList ( )

Returns true if selection lists must be displayed in details page

Returns
bool

Definition at line 1467 of file oxviewconfig.php.

oxViewConfig::showTs (   $sType)

Returns true if Trusted Shops feature is On

Deprecated:
since 5.3.0 (2016.04.19); Use Trusted Shops Module instead.
Parameters
string$sTypetype of element to check
Returns
bool

Definition at line 1236 of file oxviewconfig.php.

Member Data Documentation

oxViewConfig::$_aConfigParams = array()
protected

Definition at line 30 of file oxviewconfig.php.

oxViewConfig::$_aTrustedShopRatings = null
protected

Definition at line 53 of file oxviewconfig.php.

oxViewConfig::$_aViewData = null
protected

Definition at line 23 of file oxviewconfig.php.

oxViewConfig::$_oCountryList = null
protected

Definition at line 44 of file oxviewconfig.php.

oxViewConfig::$_oShop = null
protected

Definition at line 16 of file oxviewconfig.php.

oxViewConfig::$_sActiveTheme = null
protected

Definition at line 60 of file oxviewconfig.php.

oxViewConfig::$_sHelpPageLink = null
protected

Help page link

Returns
string

Definition at line 37 of file oxviewconfig.php.

oxViewConfig::$_sShopLogo = null
protected

Definition at line 67 of file oxviewconfig.php.


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