Class ProductSettingsRepositoryReader

Class ProductSettingsRepositoryReader

ProductSettingsRepositoryReader implements ProductSettingsRepositoryReaderInterface

Methods summary

public __construct( CI_DB_query_builder $db, ProductFactoryInterface $productFactory, CustomerStatusProviderInterface $customerStatusProvider )

ProductSettingsRepositoryReader Constructor

public getById( IdType $productId ) : ProductSettingsInterface

Returns a product settings instance by the given product id.

protected _createProductByArray( array $data ) : GXEngineProduct

Creates an empty settings object, gets Data from the database

protected _setGroupPermissions( array $product, array $groupPermissionIds, ProductSettingsInterface $productSettings ) : CategorySettingsRepositoryReader

Sets the permitted customers statuses.

Properties summary

protected $db : CI_DB_query_builder

		
protected $customerStatusProvider : CustomerStatusProviderInterface

Customer Status Provider