Dailydeal.php 1004 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace Smartwave\Dailydeals\Model;
  3. class Dailydeal extends \Magento\Framework\Model\AbstractModel
  4. {
  5. /**
  6. * Cache tag
  7. *
  8. * @var string
  9. */
  10. const CACHE_TAG = 'sw_dailydeals_dailydeal';
  11. /**
  12. * Cache tag
  13. *
  14. * @var string
  15. */
  16. protected $_cacheTag = 'sw_dailydeals_dailydeal';
  17. /**
  18. * Event prefix
  19. *
  20. * @var string
  21. */
  22. protected $_eventPrefix = 'sw_dailydeals_dailydeal';
  23. /**
  24. * Initialize resource model
  25. *
  26. * @return void
  27. */
  28. protected function _construct()
  29. {
  30. $this->_init('Smartwave\Dailydeals\Model\ResourceModel\Dailydeal');
  31. }
  32. /**
  33. * Get identities
  34. *
  35. * @return array
  36. */
  37. public function getIdentities()
  38. {
  39. return [self::CACHE_TAG . '_' . $this->getId()];
  40. }
  41. /**
  42. * get entity default values
  43. *
  44. * @return array
  45. */
  46. public function getDefaultValues()
  47. {
  48. $values = [];
  49. return $values;
  50. }
  51. }