Property | Type | Description | |
---|---|---|---|
$connection | Magento\Framework\DB\Adapter\AdapterInterface | ||
$resource | Magento\Framework\App\ResourceConnection | ||
$storeManager | Magento\Store\Model\StoreManagerInterface |
Method | Description | |
---|---|---|
__construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager ) | Constructor. |
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. |
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. |
protected getConnection ( ) : Magento\Framework\DB\Adapter\AdapterInterface | ||
return | Magento\Framework\DB\Adapter\AdapterInterface |
protected AdapterInterface,Magento\Framework\DB\Adapter $connection | ||
return | Magento\Framework\DB\Adapter\AdapterInterface |
protected ResourceConnection,Magento\Framework\App $resource | ||
return | Magento\Framework\App\ResourceConnection |