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-sales-rule
Model
Rule
Customer.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\SalesRule\Model\Rule
;
7
20
class
Customer
extends
\Magento\Framework\Model\AbstractModel
21
{
27
protected
function
_construct
()
28
{
29
parent::_construct();
30
$this->
_init
(\
Magento
\SalesRule\Model\
ResourceModel
\
Rule
\Customer::class);
31
}
32
40
public
function
loadByCustomerRule
(
$customerId
,
$ruleId
)
41
{
42
$this->
_getResource
()->loadByCustomerRule($this,
$customerId
,
$ruleId
);
43
return
$this;
44
}
45
}
Magento\Framework\Model\AbstractModel
Definition:
AbstractModel.php:19
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\SalesRule\Model\Rule\Customer\loadByCustomerRule
loadByCustomerRule($customerId, $ruleId)
Definition:
Customer.php:40
$ruleId
$ruleId
Definition:
catalog_rule_10_off_not_logged_rollback.php:17
Magento\SalesRule\Model\Rule\Customer
Definition:
Customer.php:20
Magento\Framework\Model\AbstractModel\_getResource
_getResource()
Definition:
AbstractModel.php:470
$customerId
$customerId
Definition:
quote_with_customer.php:16
Magento
Magento\SalesRule\Model\Rule\Customer\_construct
_construct()
Definition:
Customer.php:27
Magento\SalesRule\Model\Rule
Magento\SalesRule\Model\Rule
Definition:
Rule.php:68
Magento\Framework\Model\AbstractModel\_init
_init($resourceModel)
Definition:
AbstractModel.php:213