67 \
Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory,
70 \
Magento\Framework\Data\Collection\AbstractDb $resourceCollection =
null,
100 $this->
getResource()->saveItemTitleAndPrice($this);
101 return parent::afterSave();
111 return 'downloadable/tmp/links';
121 return 'downloadable/files/links';
131 return 'downloadable/tmp/link_samples';
141 return 'downloadable/files/link_samples';
162 return $this->
getData(self::KEY_TITLE);
171 return $this->
getData(self::KEY_PRICE);
180 return $this->
getData(self::KEY_IS_SHAREABLE);
189 return $this->
getData(self::KEY_SORT_ORDER);
198 return $this->
getData(self::KEY_NUMBER_OF_DOWNLOADS);
207 return $this->
getData(self::KEY_LINK_TYPE);
216 return $this->
getData(self::KEY_LINK_FILE);
226 return $this->
getData(self::KEY_LINK_FILE_CONTENT);
235 return $this->
getData(self::KEY_LINK_URL);
244 return $this->
getData(self::KEY_SAMPLE_TYPE);
253 return $this->
getData(self::KEY_SAMPLE_FILE);
263 return $this->
getData(self::KEY_SAMPLE_FILE_CONTENT);
272 return $this->
getData(self::KEY_SAMPLE_URL);
292 return $this->
setData(self::KEY_SORT_ORDER, $sortOrder);
301 return $this->
setData(self::KEY_IS_SHAREABLE, $isShareable);
324 return $this->
setData(self::KEY_NUMBER_OF_DOWNLOADS, $numberOfDownloads);
333 return $this->
setData(self::KEY_LINK_TYPE, $linkType);
344 return $this->
setData(self::KEY_LINK_FILE, $linkFile);
355 return $this->
setData(self::KEY_LINK_FILE_CONTENT, $linkFileContent);
366 return $this->
setData(self::KEY_LINK_URL, $linkUrl);
375 return $this->
setData(self::KEY_SAMPLE_TYPE, $sampleType);
386 return $this->
setData(self::KEY_SAMPLE_FILE, $sampleFile);
396 \
Magento\Downloadable\Api\Data\File\ContentInterface $sampleFileContent =
null 398 return $this->
setData(self::KEY_SAMPLE_FILE_CONTENT, $sampleFileContent);
409 return $this->
setData(self::KEY_SAMPLE_URL, $sampleUrl);
setLinkFileContent(\Magento\Downloadable\Api\Data\File\ContentInterface $linkFileContent=null)
__construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[])
_getExtensionAttributes()
setSampleFile($sampleFile)
getSearchableData($productId, $storeId)
setExtensionAttributes(\Magento\Downloadable\Api\Data\LinkExtensionInterface $extensionAttributes)
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
setIsShareable($isShareable)
setNumberOfDownloads($numberOfDownloads)
setSampleFileContent(\Magento\Downloadable\Api\Data\File\ContentInterface $sampleFileContent=null)
const XML_PATH_CONFIG_IS_SHAREABLE
const KEY_LINK_FILE_CONTENT
const LINK_SHAREABLE_CONFIG
const KEY_SAMPLE_FILE_CONTENT
const XML_PATH_LINKS_TITLE
const XML_PATH_DEFAULT_DOWNLOADS_NUMBER
getData($key='', $index=null)
setData($key, $value=null)
const XML_PATH_TARGET_NEW_WINDOW
setSampleType($sampleType)
const KEY_NUMBER_OF_DOWNLOADS