Attribute.php 1000 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Customer attribute resource model
  8. *
  9. * @author Magento Core Team <core@magentocommerce.com>
  10. */
  11. namespace Magento\Customer\Model\ResourceModel;
  12. class Attribute extends \Magento\Eav\Model\ResourceModel\Attribute
  13. {
  14. /**
  15. * Get EAV website table
  16. *
  17. * Get table, where website-dependent attribute parameters are stored
  18. * If realization doesn't demand this functionality, let this function just return null
  19. *
  20. * @return string|null
  21. */
  22. protected function _getEavWebsiteTable()
  23. {
  24. return $this->getTable('customer_eav_attribute_website');
  25. }
  26. /**
  27. * Get Form attribute table
  28. *
  29. * Get table, where dependency between form name and attribute ids is stored
  30. *
  31. * @return string|null
  32. */
  33. protected function _getFormAttributeTable()
  34. {
  35. return $this->getTable('customer_form_attribute');
  36. }
  37. }