PHP Class Smile\ElasticsuiteCore\Model\ResourceModel\Indexer\AbstractIndexer

Author: Fanny DECLERCK ([email protected])
Mostrar archivo Open project: smile-sa/elasticsuite Class Usage Examples

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.
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

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_oe property

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

$resource protected_oe property

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

$storeManager protected_oe property

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