PHP Class Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\AbstractIndexer

Author: Aurelien FOUCRET ([email protected])
Show file Open project: smile-sa/elasticsuite

Protected Properties

Property Type Description
$connection Magento\Framework\DB\Adapter\AdapterInterface
$resource Magento\Framework\App\ResourceConnection
$storeManager Magento\Store\Model\StoreManagerInterface

Public Methods

Method Description
__construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager ) Constructor.

Protected Methods

Method Description
getConnection ( ) : Magento\Framework\DB\Adapter\AdapterInterface Return database connection.
getRootCategoryId ( Magento\Store\Api\Data\StoreInterface | integer | string $store ) : integer Retrieve store root category id.
getStore ( integer $storeId ) : Magento\Store\Api\Data\StoreInterface Get store by id.
getTable ( string $tableName ) : string Get table name using the adapter.

Method Details

__construct() public method

Constructor.
public __construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager )
$resource Magento\Framework\App\ResourceConnection Database adpater.
$storeManager Magento\Store\Model\StoreManagerInterface Store manager.

getConnection() protected method

Return database connection.
protected getConnection ( ) : Magento\Framework\DB\Adapter\AdapterInterface
return Magento\Framework\DB\Adapter\AdapterInterface

getRootCategoryId() protected method

Retrieve store root category id.
protected getRootCategoryId ( Magento\Store\Api\Data\StoreInterface | integer | string $store ) : integer
$store Magento\Store\Api\Data\StoreInterface | integer | string Store id.
return integer

getStore() protected method

Get store by id.
protected getStore ( integer $storeId ) : Magento\Store\Api\Data\StoreInterface
$storeId integer Store id.
return Magento\Store\Api\Data\StoreInterface

getTable() protected method

Get table name using the adapter.
protected getTable ( string $tableName ) : string
$tableName string Table name.
return string

Property Details

$connection protected property

protected AdapterInterface,Magento\Framework\DB\Adapter $connection
return Magento\Framework\DB\Adapter\AdapterInterface

$resource protected property

protected ResourceConnection,Magento\Framework\App $resource
return Magento\Framework\App\ResourceConnection

$storeManager protected property

protected StoreManagerInterface,Magento\Store\Model $storeManager
return Magento\Store\Model\StoreManagerInterface