Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-import-export
Model
ResourceModel
History.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\ImportExport\Model\ResourceModel
;
7
14
class
History
extends
\Magento\Framework\Model\ResourceModel\Db\AbstractDb
15
{
21
protected
function
_construct
()
22
{
23
$this->
_init
(
'import_history'
,
'history_id'
);
24
}
25
32
public
function
getLastInsertedId
($userId)
33
{
34
$connection
= $this->
getConnection
();
35
$select
=
$connection
36
->select()
37
->from($this->
getMainTable
())
38
->order($this->
getIdFieldName
() .
' DESC'
)
39
->where(
'user_id = ?'
, $userId)
40
->limit(1);
41
42
return
$connection
->fetchOne(
$select
);
43
}
44
}
Magento\Framework\Model\ResourceModel\Db\AbstractDb\getMainTable
getMainTable()
Definition:
AbstractDb.php:264
Magento\ImportExport\Model\ResourceModel\History\_construct
_construct()
Definition:
History.php:21
Magento\ImportExport\Model\ResourceModel
Magento\Framework\Model\ResourceModel\Db\AbstractDb\_init
_init($mainTable, $idFieldName)
Definition:
AbstractDb.php:186
Magento\Framework\Model\ResourceModel\Db\AbstractDb\getIdFieldName
getIdFieldName()
Definition:
AbstractDb.php:248
Magento\ImportExport\Model\ResourceModel\History
Definition:
History.php:14
$select
$select
Definition:
catalog_rule_10_off_not_logged_rollback.php:14
Magento\ImportExport\Model\ResourceModel\History\getLastInsertedId
getLastInsertedId($userId)
Definition:
History.php:32
Magento\Framework\Model\ResourceModel\Db\AbstractDb
Definition:
AbstractDb.php:24
$connection
$connection
Definition:
bulk.php:13
Magento\Framework\Model\ResourceModel\Db\AbstractDb\getConnection
getConnection()
Definition:
AbstractDb.php:325