Свойство | Тип | Описание | |
---|---|---|---|
$connection | Magento\Framework\DB\Adapter\AdapterInterface | ||
$resource | Magento\Framework\App\ResourceConnection | ||
$storeManager | Magento\Store\Model\StoreManagerInterface |
Метод | Описание | |
---|---|---|
__construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager ) | Constructor. |
Метод | Описание | |
---|---|---|
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 | ||
Результат | Magento\Framework\DB\Adapter\AdapterInterface |
protected AdapterInterface,Magento\Framework\DB\Adapter $connection | ||
Результат | Magento\Framework\DB\Adapter\AdapterInterface |
protected ResourceConnection,Magento\Framework\App $resource | ||
Результат | Magento\Framework\App\ResourceConnection |