ProductGroup
class ProductGroup implements PrimaryKeyInterface, BlockEntity
ProductGroup Class
Properties
| protected int | $id | ||
| protected ArrayCollection | $brands | Collection of Brands | |
| protected ArrayCollection | $categories | Collection of Categories | |
| protected ArrayCollection | $productGroupAttributes | Collection of ProductGroupAttribute | |
| protected ArrayCollection | $productGroupDiscountsUser | Collection of user specific discounts - class ProductGroupDiscountUser | |
| protected string | $name | Name of group | |
| protected bool | $isActive | ||
| protected DateTime | $from | ||
| protected DateTime | $to | ||
| protected string | $keywords | Products can be filtered by keywords | |
| protected array | $products | Final array of all ids of products in group | |
| protected array | $customProducts | Custom selected products | |
| protected string | $serializedSearchWrapper | Serialized version of ProductSearchWrapper | |
| protected int | $baseDiscount | Percent discount for one product | |
| protected array | $discounts | Array of product quantity discounts | |
| protected int | $priority | Priority of group | |
| protected int | $baseFixedDiscount | Fixed discount for single product | |
| protected array | $fixedDiscountsArray | Array of fixed product quantity discounts |
Methods
ProductGroup constructor.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Add Product Group Attribute to collection
Remove Product Group Attribute from collection
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 246
__construct()
ProductGroup constructor.
Initialize productGroupAttributes, categories and brands properties
at line 256
integer
getId()
at line 266
ProductGroup
setId(int $id)
at line 276
mixed
getBrands()
at line 286
ProductGroup
setBrands(mixed $brands)
at line 296
mixed
getCategories()
at line 306
ProductGroup
setCategories(mixed $categories)
at line 316
mixed
getProductGroupAttributes()
at line 326
ProductGroup
setProductGroupAttributes(mixed $productGroupAttributes)
at line 336
mixed
getName()
at line 346
ProductGroup
setName(mixed $name)
at line 356
mixed
getisActive()
at line 366
ProductGroup
setIsActive(mixed $isActive)
at line 376
mixed
getFrom()
at line 386
ProductGroup
setFrom(mixed $from)
at line 396
mixed
getTo()
at line 406
ProductGroup
setTo(mixed $to)
at line 416
mixed
getKeywords()
at line 426
ProductGroup
setKeywords(mixed $keywords)
at line 436
mixed
getProducts()
at line 446
ProductGroup
setProducts(mixed $products)
at line 456
mixed
getCustomProducts()
at line 466
ProductGroup
setCustomProducts(mixed $customProducts)
at line 478
addProductGroupAttribute(ProductGroupAttribute $productGroupAttribute)
Add Product Group Attribute to collection
at line 489
removeProductGroupAttribute(ProductGroupAttribute $productGroupAttribute)
Remove Product Group Attribute from collection
at line 520
addCategory(Category $category)
Add <a href=".
./../CategoryBundle\Entity\Category.html">Category to collection
at line 530
removeCategory(Category $category)
Remove <a href=".
./../CategoryBundle\Entity\Category.html">Category from collection