mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
46 lines
1.0 KiB
PHP
46 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
|
|
/**
|
|
* Customer EAV additional attribute resource collection
|
|
*
|
|
* @author Magento Core Team <core@magentocommerce.com>
|
|
*/
|
|
namespace Magento\Customer\Model\ResourceModel\Attribute;
|
|
|
|
class Collection extends \Magento\Eav\Model\ResourceModel\Attribute\Collection
|
|
{
|
|
/**
|
|
* Default attribute entity type code
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $_entityTypeCode = 'customer';
|
|
|
|
/**
|
|
* Default attribute entity type code
|
|
*
|
|
* @return string
|
|
*/
|
|
protected function _getEntityTypeCode()
|
|
{
|
|
return $this->_entityTypeCode;
|
|
}
|
|
|
|
/**
|
|
* Get EAV website table
|
|
*
|
|
* Get table, where website-dependent attribute parameters are stored
|
|
* If realization doesn't demand this functionality, let this function just return null
|
|
*
|
|
* @return string|null
|
|
*/
|
|
protected function _getEavWebsiteTable()
|
|
{
|
|
return $this->getTable('customer_eav_attribute_website');
|
|
}
|
|
}
|