Collection.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Customer\Model\ResourceModel\Form\Attribute;
  7. /**
  8. * Customer Form Attribute Resource Collection
  9. *
  10. * @author Magento Core Team <core@magentocommerce.com>
  11. */
  12. class Collection extends \Magento\Eav\Model\ResourceModel\Form\Attribute\Collection
  13. {
  14. /**
  15. * Current module pathname
  16. *
  17. * @var string
  18. */
  19. protected $_moduleName = 'Magento_Customer';
  20. /**
  21. * Current EAV entity type code
  22. *
  23. * @var string
  24. */
  25. protected $_entityTypeCode = 'customer';
  26. /**
  27. * Resource initialization
  28. *
  29. * @return void
  30. */
  31. protected function _construct()
  32. {
  33. parent::_construct();
  34. $this->_init(\Magento\Eav\Model\Attribute::class, \Magento\Customer\Model\ResourceModel\Form\Attribute::class);
  35. }
  36. /**
  37. * Get EAV website table
  38. *
  39. * Get table, where website-dependent attribute parameters are stored.
  40. * If realization doesn't demand this functionality, let this function just return null
  41. *
  42. * @return string|null
  43. */
  44. protected function _getEavWebsiteTable()
  45. {
  46. return $this->getTable('customer_eav_attribute_website');
  47. }
  48. }