35 \Psr\Log\LoggerInterface
$logger,
37 \
Magento\Framework\Event\ManagerInterface $eventManager,
61 \
Magento\Downloadable\Model\Sample::class,
78 [
'cpe' => $this->
getTable(
'catalog_product_entity')],
80 'cpe.%s = main_table.product_id',
81 $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField()
102 $ifNullDefaultTitle = $this->
getConnection()->getIfNullSql(
'st.title',
'd.title');
104 [
'd' => $this->
getTable(
'downloadable_sample_title')],
105 'd.sample_id=main_table.sample_id AND d.store_id = 0',
106 [
'default_title' =>
'title']
108 [
'st' => $this->
getTable(
'downloadable_sample_title')],
109 'st.sample_id=main_table.sample_id AND st.store_id = ' . (
int)
$storeId,
110 [
'store_title' =>
'title',
'title' => $ifNullDefaultTitle]
112 'main_table.sort_order ASC'
addProductToFilter($product)
addTitleToResult($storeId=0)
__construct(\Magento\Framework\Data\Collection\EntityFactoryInterface $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\EntityManager\MetadataPool $metadataPool, \Magento\Framework\DB\Adapter\AdapterInterface $connection=null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource=null)
addFieldToFilter($attribute, $condition=null)
_init($model, $resourceModel)
join($table, $cond, $cols=' *')