Collection.php 1.0 KB

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