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-product-video
Model
ResourceModel
Video.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\ProductVideo\Model\ResourceModel
;
7
8
class
Video
extends
\Magento\Framework\Model\ResourceModel\Db\AbstractDb
9
{
15
public
function
_construct
()
16
{
17
$this->
_init
(
'catalog_product_entity_media_gallery_value_video'
,
'value_id'
);
18
}
19
26
public
function
insertOnDuplicate
(array
$data
, array
$fields
= [])
27
{
28
return
$this->
getConnection
()->insertOnDuplicate($this->
getMainTable
(), $data,
$fields
);
29
}
30
36
public
function
loadByIds
(array $ids)
37
{
38
$select
= $this->
getConnection
()->select()->from(
39
$this->
getMainTable
()
40
)->where(
41
'value_id IN(?)'
,
42
$ids
43
);
44
45
return
$this->
getConnection
()->fetchAll(
$select
);
46
}
47
}
Magento\Framework\Model\ResourceModel\Db\AbstractDb\getMainTable
getMainTable()
Definition:
AbstractDb.php:264
$fields
$fields
Definition:
details.phtml:14
Magento\Framework\Model\ResourceModel\Db\AbstractDb\_init
_init($mainTable, $idFieldName)
Definition:
AbstractDb.php:186
$select
$select
Definition:
catalog_rule_10_off_not_logged_rollback.php:14
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\ProductVideo\Model\ResourceModel\Video\_construct
_construct()
Definition:
Video.php:15
Magento\Framework\Model\ResourceModel\Db\AbstractDb
Definition:
AbstractDb.php:24
Magento\ProductVideo\Model\ResourceModel\Video\insertOnDuplicate
insertOnDuplicate(array $data, array $fields=[])
Definition:
Video.php:26
Magento\ProductVideo\Model\ResourceModel
Definition:
Video.php:6
Magento\ProductVideo\Model\ResourceModel\Video\loadByIds
loadByIds(array $ids)
Definition:
Video.php:36
Magento\Framework\Model\ResourceModel\Db\AbstractDb\getConnection
getConnection()
Definition:
AbstractDb.php:325
Magento\ProductVideo\Model\ResourceModel\Video
Definition:
Video.php:8