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-rule
Observer
RulePricesStorage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\CatalogRule\Observer
;
8
9
class
RulePricesStorage
10
{
17
private
$rulePrices = [];
18
23
public
function
getRulePrice
(
$id
)
24
{
25
return
$this->rulePrices[
$id
] ??
false
;
26
}
27
32
public
function
hasRulePrice
(
$id
)
33
{
34
return
isset($this->rulePrices[
$id
]);
35
}
36
42
public
function
setRulePrice
(
$id
,
$price
)
43
{
44
$this->rulePrices[
$id
] =
$price
;
45
}
46
}
Magento\CatalogRule\Observer\RulePricesStorage
Definition:
RulePricesStorage.php:9
$id
$id
Definition:
fieldset.phtml:14
$price
$price
Definition:
product_alert.php:10
Magento\CatalogRule\Observer\RulePricesStorage\hasRulePrice
hasRulePrice($id)
Definition:
RulePricesStorage.php:32
Magento\CatalogRule\Observer\RulePricesStorage\getRulePrice
getRulePrice($id)
Definition:
RulePricesStorage.php:23
Magento\CatalogRule\Observer\RulePricesStorage\setRulePrice
setRulePrice($id, $price)
Definition:
RulePricesStorage.php:42
Magento\CatalogRule\Observer
Definition:
AddDirtyRulesNotice.php:6