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
ProductWebsiteLink.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Model
;
8
9
class
ProductWebsiteLink
extends
\Magento\Framework\Api\AbstractSimpleObject
implements
10
\Magento\Catalog\Api\Data\ProductWebsiteLinkInterface
11
{
15
const
KEY_SKU
=
'sku'
;
16
const
WEBSITE_ID
=
'website_id'
;
22
public
function
getSku
()
23
{
24
return
$this->
_get
(self::KEY_SKU);
25
}
26
30
public
function
getWebsiteId
()
31
{
32
return
$this->
_get
(self::WEBSITE_ID);
33
}
34
39
public
function
setSku
($sku)
40
{
41
return
$this->
setData
(self::KEY_SKU, $sku);
42
}
43
47
public
function
setWebsiteId
(
$websiteId
)
48
{
49
return
$this->
setData
(self::WEBSITE_ID,
$websiteId
);
50
}
51
}
Magento\Catalog\Model\ProductWebsiteLink\setSku
setSku($sku)
Definition:
ProductWebsiteLink.php:39
Magento\Catalog\Model\ProductWebsiteLink\KEY_SKU
const KEY_SKU
Definition:
ProductWebsiteLink.php:15
Magento\Catalog\Model\ProductWebsiteLink\WEBSITE_ID
const WEBSITE_ID
Definition:
ProductWebsiteLink.php:16
Magento\Catalog\Model\ProductWebsiteLink\setWebsiteId
setWebsiteId($websiteId)
Definition:
ProductWebsiteLink.php:47
Magento\Framework\Api\AbstractSimpleObject
Definition:
AbstractSimpleObject.php:12
Magento\Catalog\Model\ProductWebsiteLink\getSku
getSku()
Definition:
ProductWebsiteLink.php:22
Magento\Framework\Api\AbstractSimpleObject\_get
_get($key)
Definition:
AbstractSimpleObject.php:35
Magento\Catalog\Model\ProductWebsiteLink
Definition:
ProductWebsiteLink.php:9
Magento\Catalog\Api\Data\ProductWebsiteLinkInterface
Definition:
ProductWebsiteLinkInterface.php:13
Magento\Catalog\Model
Magento\Framework\Api\AbstractSimpleObject\setData
setData($key, $value)
Definition:
AbstractSimpleObject.php:47
Magento\Catalog\Model\ProductWebsiteLink\getWebsiteId
getWebsiteId()
Definition:
ProductWebsiteLink.php:30
$websiteId
$websiteId
Definition:
products_with_websites_and_stores.php:11