Author.php 586 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © 2016 Ihor Vansach (ihor@magefan.com). All rights reserved.
  4. * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
  5. *
  6. * Glory to Ukraine! Glory to the heroes!
  7. */
  8. namespace Magefan\Blog\Model\ResourceModel;
  9. /**
  10. * Blog author resource model
  11. */
  12. class Author extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
  13. {
  14. /**
  15. * Initialize resource model
  16. * Get tablename from config
  17. *
  18. * @return void
  19. */
  20. protected function _construct()
  21. {
  22. $this->_init('admin_user', 'user_id');
  23. }
  24. }