source/Core/Module/Module.php
public function getTemplates($sModuleId = null)
    {
        if (is_null($sModuleId)) {
            $sModuleId = $this->getId();
        }

        if (!$sModuleId) {
            return [];
        }

        $sShopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();

        return \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->getCol("SELECT oxtemplate FROM oxtplblocks WHERE oxmodule = '$sModuleId' AND oxshopid = '$sShopId'");
    }
public function getTemplates($sModuleId = null)
    {
        if (is_null($sModuleId)) {
            $sModuleId = $this->getId();
        }

        if (!$sModuleId) {
            return [];
        }

        $sShopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();

        return \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->getCol("SELECT oxtemplate FROM oxtplblocks WHERE oxmodule = '$sModuleId' AND oxshopid = '$sShopId'");
    }
public function getTemplates ( $ sModuleId = null ) { if ( is_null ( $ sModuleId ) ) { $ sModuleId = $ this -> getId ( ) ; } if ( ! $ sModuleId ) { return [ ] ; } $ sShopId = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopId ( ) ; return \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) -> getCol ( "SELECT oxtemplate FROM oxtplblocks WHERE oxmodule = '$sModuleId' AND oxshopid = '$sShopId'" ) ; }
Return templates affected by template blocks for given module id.

@todo extract oxtplblocks query to ModuleTemplateBlockRepository

@param string $sModuleId Module id

@return array
Return templates affected by template blocks for given module id .