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)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
c
d
e
f
g
h
i
m
p
r
s
t
u
+
Functions
_
c
d
e
f
g
h
i
m
p
r
s
t
u
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
c
d
e
f
g
m
o
r
s
t
v
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
vendor
magento
module-inventory-low-quantity-notification
Model
ResourceModel
Rss
NotifyStock
GetSourceItemsCollection.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryLowQuantityNotification\Model\ResourceModel\Rss\NotifyStock
;
9
10
use
Magento\Inventory\Model\ResourceModel\SourceItem\Collection
;
11
use Magento\Inventory\Model\ResourceModel\SourceItem\CollectionFactory;
12
use
Magento\InventoryApi\Api\Data\SourceItemInterface
;
13
17
class
GetSourceItemsCollection
18
{
22
private
$collectionFactory;
23
27
private
$selectBuilder;
28
33
public
function
__construct
(
34
CollectionFactory $collectionFactory,
35
SelectBuilder
$selectBuilder
36
) {
37
$this->collectionFactory = $collectionFactory;
38
$this->selectBuilder = $selectBuilder;
39
}
40
44
public
function
execute
()
45
{
46
$collection
= $this->collectionFactory->create();
47
$collection
->removeAllFieldsFromSelect();
48
$collection
->addFieldToSelect(
SourceItemInterface::SOURCE_CODE
);
49
$collection
->addFieldToSelect(
SourceItemInterface::QUANTITY
,
'qty'
);
50
51
$this->selectBuilder->build(
$collection
->getSelect());
52
53
return
$collection
;
54
}
55
}
Magento\InventoryApi\Api\Data\SourceItemInterface\QUANTITY
const QUANTITY
Definition:
SourceItemInterface.php:27
Magento\InventoryLowQuantityNotification\Model\ResourceModel\Rss\NotifyStock\GetSourceItemsCollection\execute
execute()
Definition:
GetSourceItemsCollection.php:44
Magento\InventoryApi\Api\Data\SourceItemInterface\SOURCE_CODE
const SOURCE_CODE
Definition:
SourceItemInterface.php:26
Magento\InventoryApi\Api\Data\SourceItemInterface
Definition:
SourceItemInterface.php:20
Magento\InventoryLowQuantityNotification\Model\ResourceModel\Rss\NotifyStock\SelectBuilder
Definition:
SelectBuilder.php:13
Magento\Inventory\Model\ResourceModel\SourceItem\Collection
Definition:
Collection.php:19
Magento\InventoryLowQuantityNotification\Model\ResourceModel\Rss\NotifyStock\GetSourceItemsCollection
Definition:
GetSourceItemsCollection.php:17
$collection
$collection
Definition:
catalog_category_with_apostrophe_rollback.php:17
Magento\InventoryLowQuantityNotification\Model\ResourceModel\Rss\NotifyStock
Definition:
ApplyBaseJoins.php:8
Magento\InventoryLowQuantityNotification\Model\ResourceModel\Rss\NotifyStock\GetSourceItemsCollection\__construct
__construct(CollectionFactory $collectionFactory, SelectBuilder $selectBuilder)
Definition:
GetSourceItemsCollection.php:33