Bookmark.php 776 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Ui\Model\ResourceModel;
  7. use Magento\Framework\Model\ResourceModel\Db\AbstractDb;
  8. /**
  9. * Bookmark resource
  10. */
  11. class Bookmark extends AbstractDb
  12. {
  13. /**
  14. * @param \Magento\Framework\Model\ResourceModel\Db\Context $context
  15. * @param string $connectionName
  16. */
  17. public function __construct(
  18. \Magento\Framework\Model\ResourceModel\Db\Context $context,
  19. $connectionName = null
  20. ) {
  21. parent::__construct($context, $connectionName);
  22. }
  23. /**
  24. * Resource initialization
  25. *
  26. * @return void
  27. */
  28. protected function _construct()
  29. {
  30. $this->_init('ui_bookmark', 'bookmark_id');
  31. }
  32. }