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-tax
Model
Api
SearchCriteria
JoinProcessor
CalculationData.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Tax\Model\Api\SearchCriteria\JoinProcessor
;
7
8
use
Magento\Framework\Api\SearchCriteria\CollectionProcessor\JoinProcessor\CustomJoinInterface
;
9
use
Magento\Framework\Data\Collection\AbstractDb
;
10
15
class
CalculationData
implements
CustomJoinInterface
16
{
18
const
CALCULATION_DATA_ALIAS
=
"cd"
;
19
24
public
function
apply
(
AbstractDb
$collection
)
25
{
26
$isNotApplied = !array_key_exists(
27
self::CALCULATION_DATA_ALIAS,
28
$collection
->getSelect()->getPart(\
Magento
\Framework\Db\Select::FROM)
29
);
30
if
($isNotApplied) {
31
$collection
->joinCalculationData(self::CALCULATION_DATA_ALIAS);
32
return
true
;
33
}
34
35
return
false
;
36
}
37
}
Magento\Framework\Data\Collection\AbstractDb
Definition:
AbstractDb.php:23
Magento\Tax\Model\Api\SearchCriteria\JoinProcessor\CalculationData\apply
apply(AbstractDb $collection)
Definition:
CalculationData.php:24
Magento\Tax\Model\Api\SearchCriteria\JoinProcessor\CalculationData
Definition:
CalculationData.php:15
Magento\Framework\Api\SearchCriteria\CollectionProcessor\JoinProcessor\CustomJoinInterface
Definition:
CustomJoinInterface.php:14
Magento
Magento\Tax\Model\Api\SearchCriteria\JoinProcessor\CalculationData\CALCULATION_DATA_ALIAS
const CALCULATION_DATA_ALIAS
Definition:
CalculationData.php:18
Magento\Tax\Model\Api\SearchCriteria\JoinProcessor
Definition:
CalculationData.php:6
$collection
$collection
Definition:
catalog_category_with_apostrophe_rollback.php:17