OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Core\TableViewNameGenerator Class Reference

Public Member Functions

 __construct ($config=null, $language=null)
 
 getViewName ($table, $languageId=null, $shopId=null)
 

Protected Member Functions

 getViewSuffix ($table, $languageId, $shopId, $isMultiLang)
 
 getConfig ()
 
 getLanguage ()
 

Private Attributes

 $config
 
 $language
 

Detailed Description

Generates view name for given table name.

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Core\TableViewNameGenerator::__construct (   $config = null,
  $language = null 
)
Parameters
\OxidEsales\Eshop\Core\Config$config
\OxidEsales\Eshop\Core\Language$language

Member Function Documentation

◆ getConfig()

OxidEsales\EshopCommunity\Core\TableViewNameGenerator::getConfig ( )
protected
Returns
\OxidEsales\Eshop\Core\Config

◆ getLanguage()

OxidEsales\EshopCommunity\Core\TableViewNameGenerator::getLanguage ( )
protected
Returns
\OxidEsales\Eshop\Core\Language

◆ getViewName()

OxidEsales\EshopCommunity\Core\TableViewNameGenerator::getViewName (   $table,
  $languageId = null,
  $shopId = null 
)

Return the view name of the given table if a view exists, otherwise the table name itself. Views usage can be disabled with blSkipViewUsage config option in case admin area is not reachable due to broken views, so that they could be regenerated.

Parameters
string$tableTable name
int$languageIdLanguage id [optional]
string$shopIdShop id, otherwise config->getShopId() is used [optional]
Returns
string

◆ getViewSuffix()

OxidEsales\EshopCommunity\Core\TableViewNameGenerator::getViewSuffix (   $table,
  $languageId,
  $shopId,
  $isMultiLang 
)
protected

Generates view suffix.

Parameters
string$table
int$languageId
int$shopId
bool$isMultiLang
Returns
string

Member Data Documentation

◆ $config

OxidEsales\EshopCommunity\Core\TableViewNameGenerator::$config
private

◆ $language

OxidEsales\EshopCommunity\Core\TableViewNameGenerator::$language
private

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