OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Core\Module\ModuleTemplateBlockRepository Class Reference

Public Member Functions

 getBlocksCount ($modulesId, $shopId)
 
 getBlocks ($shopTemplateName, $activeModulesId, $shopId, $themesId=[])
 

Private Member Functions

 formActiveThemesIdQuery ($activeThemeIds=[])
 

Detailed Description

Provides a way to get content from module template block file.

Member Function Documentation

◆ formActiveThemesIdQuery()

OxidEsales\EshopCommunity\Core\Module\ModuleTemplateBlockRepository::formActiveThemesIdQuery (   $activeThemeIds = [])
private

To form sql query part for active themes.

Parameters
array$activeThemeIds
Returns
string

◆ getBlocks()

OxidEsales\EshopCommunity\Core\Module\ModuleTemplateBlockRepository::getBlocks (   $shopTemplateName,
  $activeModulesId,
  $shopId,
  $themesId = [] 
)

Get modules template blocks information filtered by provided parameters.

Parameters
string$shopTemplateNameshop template file name.
array$activeModulesIdlist of modules to get information about.
string$shopIdin which Shop modules must be active.
array$themesIdlist of themes to get information about.
Returns
array

◆ getBlocksCount()

OxidEsales\EshopCommunity\Core\Module\ModuleTemplateBlockRepository::getBlocksCount (   $modulesId,
  $shopId 
)

Return how many blocks of provided module overrides any template for active shop.

Parameters
array$modulesIdlist of modules to check if their template blocks overrides some shop block.
string$shopIdshop id to check if some module block overrides some template blocks in this Shop.
Returns
string count of blocks for Shop=$shopId from modules=$modulesId.

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