ProductPermissionSetter

Implements \ProductPermissionSetterInterface

Class ProductPermissionSetter

category

System

package

Product

subpackage

Repositories

Methods

ProductPermissionSetter constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Sets the Customer Status Permissions for all products which are linked with the provided category ID.

setProductsPermissionByCategoryId(\IdType $categoryId, \IdType $customerStatusId, \BoolType $permitted) : \ProductPermissionSetterInterface

Arguments

$categoryId

\IdType

$customerStatusId

\IdType

$permitted

\BoolType

Response

\ProductPermissionSetterInterface

Same instance for chained method calls.

Properties

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder