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-google-optimizer
Model
Code.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\GoogleOptimizer\Model
;
7
22
class
Code
extends
\Magento\Framework\Model\AbstractModel
23
{
27
const
ENTITY_TYPE_PRODUCT
=
'product'
;
28
29
const
ENTITY_TYPE_CATEGORY
=
'category'
;
30
31
const
ENTITY_TYPE_PAGE
=
'cms'
;
32
36
protected
$_validateEntryFlag
=
false
;
37
42
protected
function
_construct
()
43
{
44
parent::_construct();
45
$this->
_init
(\
Magento
\GoogleOptimizer\Model\
ResourceModel
\Code::class);
46
}
47
56
public
function
loadByEntityIdAndType
($entityId,
$entityType
,
$storeId
= 0)
57
{
58
$this->
getResource
()->loadByEntityType($this, $entityId,
$entityType
,
$storeId
);
59
$this->
_afterLoad
();
60
return
$this;
61
}
62
}
Magento\Framework\Model\AbstractModel
Definition:
AbstractModel.php:19
$storeId
$storeId
Definition:
customer_review_with_rating.php:14
Magento\Framework\Model\AbstractModel\getResource
getResource()
Definition:
AbstractModel.php:891
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\GoogleOptimizer\Model\Code
Definition:
Code.php:22
$entityType
$entityType
Definition:
attribute_set_with_image_attribute.php:13
Magento\GoogleOptimizer\Model
Definition:
Code.php:6
Magento\GoogleOptimizer\Model\Code\loadByEntityIdAndType
loadByEntityIdAndType($entityId, $entityType, $storeId=0)
Definition:
Code.php:56
Magento\GoogleOptimizer\Model\Code\ENTITY_TYPE_PRODUCT
const ENTITY_TYPE_PRODUCT
Definition:
Code.php:27
Magento\GoogleOptimizer\Model\Code\ENTITY_TYPE_PAGE
const ENTITY_TYPE_PAGE
Definition:
Code.php:31
Magento\Framework\Model\AbstractModel\_afterLoad
_afterLoad()
Definition:
AbstractModel.php:575
Magento\GoogleOptimizer\Model\Code\$_validateEntryFlag
$_validateEntryFlag
Definition:
Code.php:36
Magento
Magento\GoogleOptimizer\Model\Code\_construct
_construct()
Definition:
Code.php:42
Magento\GoogleOptimizer\Model\Code\ENTITY_TYPE_CATEGORY
const ENTITY_TYPE_CATEGORY
Definition:
Code.php:29
Magento\Framework\Model\AbstractModel\_init
_init($resourceModel)
Definition:
AbstractModel.php:213