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-catalog
Model
Product
Condition.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Model\Product
;
7
8
use
Magento\Eav\Model\Entity\Collection\AbstractCollection
;
9
use
Magento\Framework\DB\Adapter\AdapterInterface
;
10
use
Magento\Framework\DB\Select
;
11
18
class
Condition
extends
\Magento\Framework\DataObject
implements Condition\ConditionInterface
19
{
25
public
function
applyToCollection
(
$collection
)
26
{
27
if
($this->getTable() && $this->getPkFieldName()) {
28
$collection
->joinTable(
29
$this->getTable(),
30
$this->getPkFieldName() .
'=entity_id'
,
31
[
'affected_product_id'
=> $this->getPkFieldName()]
32
);
33
}
34
return
$this;
35
}
36
42
public
function
getIdsSelect
($dbAdapter)
43
{
44
if
($this->getTable() && $this->getPkFieldName()) {
45
$select
= $dbAdapter->select()->from($this->getTable(), $this->getPkFieldName());
46
return
$select
;
47
}
48
return
''
;
49
}
50
}
Magento\Catalog\Model\Product\Condition\getIdsSelect
getIdsSelect($dbAdapter)
Definition:
Condition.php:42
Magento\Eav\Model\Entity\Collection\AbstractCollection
Definition:
AbstractCollection.php:23
Magento\Framework\DataObject
Definition:
DataObject.php:15
$select
$select
Definition:
catalog_rule_10_off_not_logged_rollback.php:14
Magento\Catalog\Model\Product
Definition:
ActionTest.php:6
Magento\Framework\DB\Adapter\AdapterInterface
Definition:
AdapterInterface.php:16
Magento\Catalog\Model\Product\Condition
Definition:
Condition.php:18
Magento\Framework\DB\Select
Definition:
ColumnsRenderer.php:6
$collection
$collection
Definition:
catalog_category_with_apostrophe_rollback.php:17
Magento\Catalog\Model\Product\Condition\applyToCollection
applyToCollection($collection)
Definition:
Condition.php:25