Update.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Widget\Model\Layout;
  7. /**
  8. * Layout Update model class
  9. *
  10. * @method int getIsTemporary() getIsTemporary()
  11. * @method int getLayoutLinkId() getLayoutLinkId()
  12. * @method string getUpdatedAt() getUpdatedAt()
  13. * @method string getXml() getXml()
  14. * @method \Magento\Widget\Model\Layout\Update setIsTemporary() setIsTemporary(int $isTemporary)
  15. * @method \Magento\Widget\Model\Layout\Update setHandle() setHandle(string $handle)
  16. * @method \Magento\Widget\Model\Layout\Update setXml() setXml(string $xml)
  17. * @method \Magento\Widget\Model\Layout\Update setStoreId() setStoreId(int $storeId)
  18. * @method \Magento\Widget\Model\Layout\Update setThemeId() setThemeId(int $themeId)
  19. * @method \Magento\Widget\Model\Layout\Update setUpdatedAt() setUpdatedAt(string $updateDateTime)
  20. */
  21. class Update extends \Magento\Framework\Model\AbstractModel
  22. {
  23. /**
  24. * @param \Magento\Framework\Model\Context $context
  25. * @param \Magento\Framework\Registry $registry
  26. * @param \Magento\Framework\Model\ResourceModel\AbstractResource $resource
  27. * @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
  28. * @param array $data
  29. */
  30. public function __construct(
  31. \Magento\Framework\Model\Context $context,
  32. \Magento\Framework\Registry $registry,
  33. \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
  34. \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
  35. array $data = []
  36. ) {
  37. parent::__construct($context, $registry, $resource, $resourceCollection, $data);
  38. }
  39. /**
  40. * Layout Update model initialization
  41. *
  42. * @return void
  43. */
  44. protected function _construct()
  45. {
  46. $this->_init(\Magento\Widget\Model\ResourceModel\Layout\Update::class);
  47. }
  48. }