Shop manager. Performs configuration and object loading or deletion.
◆ __construct()
OxidEsales\EshopCommunity\Application\Model\Shop::__construct |
( |
| ) |
|
Class constructor, initiates parent constructor (parent::oxBase()).
◆ _cleanInvalidViews()
OxidEsales\EshopCommunity\Application\Model\Shop::_cleanInvalidViews |
( |
| ) |
|
|
protected |
Gets all invalid views and drops them from database
◆ _getViewJoinAll()
OxidEsales\EshopCommunity\Application\Model\Shop::_getViewJoinAll |
( |
|
$sTable | ) |
|
|
protected |
Returns all language table view JOIN section
- Parameters
-
- Returns
- string $sSQL
◆ _getViewJoinLang()
OxidEsales\EshopCommunity\Application\Model\Shop::_getViewJoinLang |
( |
|
$sTable, |
|
|
|
$iLang |
|
) |
| |
|
protected |
Returns language table view JOIN section
- Parameters
-
string | $sTable | table name |
int | $iLang | language id |
- Returns
- string $sSQL
◆ _getViewSelect()
OxidEsales\EshopCommunity\Application\Model\Shop::_getViewSelect |
( |
|
$sTable, |
|
|
|
$iLang |
|
) |
| |
|
protected |
Returns table field name mapping sql section for single language views
- Parameters
-
string | $sTable | Table name |
int | $iLang | Language id |
- Returns
- string
◆ _getViewSelectMultilang()
OxidEsales\EshopCommunity\Application\Model\Shop::_getViewSelectMultilang |
( |
|
$sTable | ) |
|
|
protected |
Returns table fields sql section for multiple language views
- Parameters
-
- Returns
- string
◆ _prepareViewsQueries()
OxidEsales\EshopCommunity\Application\Model\Shop::_prepareViewsQueries |
( |
| ) |
|
|
protected |
Creates all view queries and adds them in query array
◆ _runQueries()
OxidEsales\EshopCommunity\Application\Model\Shop::_runQueries |
( |
| ) |
|
|
protected |
Runs stored queries Returns false when any of the queries fail, otherwise return true
- Returns
- bool
◆ addQuery()
OxidEsales\EshopCommunity\Application\Model\Shop::addQuery |
( |
|
$sQuery | ) |
|
Add a query to query array.
- Parameters
-
◆ addViewLanguageQuery()
OxidEsales\EshopCommunity\Application\Model\Shop::addViewLanguageQuery |
( |
|
$queryStart, |
|
|
|
$table, |
|
|
|
$languageId, |
|
|
|
$languageAbbr |
|
) |
| |
|
protected |
Adds view language query to query array.
- Parameters
-
string | $queryStart | |
string | $table | |
int | $languageId | |
string | $languageAbbr | |
◆ createViewQuery()
OxidEsales\EshopCommunity\Application\Model\Shop::createViewQuery |
( |
|
$sTable, |
|
|
|
$aLanguages = null |
|
) |
| |
Creates view query and adds it to query array.
- Parameters
-
string | $sTable | Table name |
array | $aLanguages | Language array( id => abbreviation ) |
◆ formDatabaseTablesArray()
OxidEsales\EshopCommunity\Application\Model\Shop::formDatabaseTablesArray |
( |
| ) |
|
|
protected |
Forms array of tables which are available.
- Returns
- array
◆ generateViews()
OxidEsales\EshopCommunity\Application\Model\Shop::generateViews |
( |
|
$multishopInheritCategories = false , |
|
|
|
$mallInherit = null |
|
) |
| |
(Re)generates shop views
- Parameters
-
bool | $multishopInheritCategories | Config option blMultishopInherit_oxcategories |
array | $mallInherit | Array of config options blMallInherit |
- Returns
- bool is all views generated successfully
◆ getDefaultCategory()
OxidEsales\EshopCommunity\Application\Model\Shop::getDefaultCategory |
( |
| ) |
|
Returns default category of the shop.
- Returns
- string
◆ getMultiShopTables()
OxidEsales\EshopCommunity\Application\Model\Shop::getMultiShopTables |
( |
| ) |
|
Get multishop table array
- Returns
- array
◆ getQueries()
OxidEsales\EshopCommunity\Application\Model\Shop::getQueries |
( |
| ) |
|
Database queries getter.
- Returns
- array
◆ getTables()
OxidEsales\EshopCommunity\Application\Model\Shop::getTables |
( |
| ) |
|
Database tables getter.
- Returns
- array
◆ isProductiveMode()
OxidEsales\EshopCommunity\Application\Model\Shop::isProductiveMode |
( |
| ) |
|
Returns true if shop in productive mode
- Returns
- bool
◆ isShopValid()
OxidEsales\EshopCommunity\Application\Model\Shop::isShopValid |
( |
| ) |
|
|
protected |
Checks whether current shop is valid.
- Returns
- bool
◆ setMultiShopTables()
OxidEsales\EshopCommunity\Application\Model\Shop::setMultiShopTables |
( |
|
$aMultiShopTables | ) |
|
Sets multi shop tables
- Parameters
-
string | $aMultiShopTables | multi shop tables |
◆ setQueries()
OxidEsales\EshopCommunity\Application\Model\Shop::setQueries |
( |
|
$aQueries | ) |
|
Database queries setter.
- Parameters
-
◆ setTables()
OxidEsales\EshopCommunity\Application\Model\Shop::setTables |
( |
|
$aTables | ) |
|
Database tables setter.
- Parameters
-
◆ $_aMultiShopTables
OxidEsales\EshopCommunity\Application\Model\Shop::$_aMultiShopTables = null |
|
protected |
◆ $_aQueries
OxidEsales\EshopCommunity\Application\Model\Shop::$_aQueries = [] |
|
protected |
◆ $_aTables
OxidEsales\EshopCommunity\Application\Model\Shop::$_aTables = null |
|
protected |
◆ $_blMultiShopInheritCategories
OxidEsales\EshopCommunity\Application\Model\Shop::$_blMultiShopInheritCategories = false |
|
protected |
◆ $_sClassName
OxidEsales\EshopCommunity\Application\Model\Shop::$_sClassName = 'oxshop' |
|
protected |
The documentation for this class was generated from the following file:
- /oxideshop-ce/source/Application/Model/Shop.php