CoolCMS API

ProductSetEditFactory extends BaseComponentFactory
in package

FinalYes

Factory for {@see ProductSetEdit}; `AppContext` is injected by a decorator (`setAppContext()`), so the constructor does not call the parent constructor.

Table of Contents

Properties

$appContext  : AppContext
$control  : BaseComponent|null
$adminLanguageManager  : LanguageManager
$apiBridge  : ApiBridge
$commentThreadFactory  : CommentThreadFactory
$currencyManager  : CurrencyManager
$feedManager  : FeedManager
$feedParameterActionManager  : FeedParameterActionManager
$formActionsFactory  : FormActionsFactory
$langNavFactory  : LangNavFactory
$parameterGroupManager  : ParameterGroupManager
$parameterManager  : ParameterManager
$pickerFactory  : PickerFactory
$productCategoryManager  : ProductCategoryManager
$productManager  : ProductManager
$productSetFeeManager  : ProductSetFeeManager
$productSetLinkManager  : ProductSetLinkManager
$productSetManager  : ProductSetManager
$productStateManager  : ProductStateManager
$productTagManager  : ProductTagManager
$productVariantManager  : ProductVariantManager
$ratingThreadFactory  : RatingThreadFactory
$stockLevelManager  : StockLevelManager
$supplyKindManager  : SupplyKindManager
$unitManager  : UnitManager
$uploaderDropzoneFactory  : UploaderDropzoneFactory
$userGroupManager  : UserGroupManager
$vatManager  : VatManager
$warehouseManager  : WarehouseManager

Methods

__construct()  : mixed
create()  : ProductSetEdit
getAppContext()  : AppContext
getControl()  : BaseComponent
initControl()  : void
initializeAllContexts()  : void
setAppContext()  : $this
initialized()  : T
Stores the component as `$control`, initializes it and returns it with its concrete type (so `create(): Cart` does not return the generic `?BaseComponent` property).

Properties

Methods

__construct()

public __construct(ProductSetManager $productSetManager, ProductManager $productManager, ProductVariantManager $productVariantManager, ProductTagManager $productTagManager, ProductSetFeeManager $productSetFeeManager, ProductSetLinkManager $productSetLinkManager, ProductStateManager $productStateManager, UnitManager $unitManager, CurrencyManager $currencyManager, UserGroupManager $userGroupManager, VatManager $vatManager, ParameterManager $parameterManager, ParameterGroupManager $parameterGroupManager, ProductCategoryManager $productCategoryManager, PickerFactory $pickerFactory, UploaderDropzoneFactory $uploaderDropzoneFactory, LangNavFactory $langNavFactory, FormActionsFactory $formActionsFactory, LanguageManager $adminLanguageManager, CommentThreadFactory $commentThreadFactory, RatingThreadFactory $ratingThreadFactory, ApiBridge $apiBridge, WarehouseManager $warehouseManager, StockLevelManager $stockLevelManager, FeedManager $feedManager, FeedParameterActionManager $feedParameterActionManager, SupplyKindManager $supplyKindManager) : mixed
Parameters
$productSetManager : ProductSetManager
$productManager : ProductManager
$productVariantManager : ProductVariantManager
$productTagManager : ProductTagManager
$productSetFeeManager : ProductSetFeeManager
$productSetLinkManager : ProductSetLinkManager
$productStateManager : ProductStateManager
$unitManager : UnitManager
$currencyManager : CurrencyManager
$userGroupManager : UserGroupManager
$vatManager : VatManager
$parameterManager : ParameterManager
$parameterGroupManager : ParameterGroupManager
$productCategoryManager : ProductCategoryManager
$pickerFactory : PickerFactory
$uploaderDropzoneFactory : UploaderDropzoneFactory
$langNavFactory : LangNavFactory
$formActionsFactory : FormActionsFactory
$adminLanguageManager : LanguageManager
$commentThreadFactory : CommentThreadFactory
$ratingThreadFactory : RatingThreadFactory
$apiBridge : ApiBridge
$warehouseManager : WarehouseManager
$stockLevelManager : StockLevelManager
$feedManager : FeedManager
$feedParameterActionManager : FeedParameterActionManager
$supplyKindManager : SupplyKindManager

create()

public create(int|null $setId[, string $mode = 'standalone' ][, ProductSet|null $preloadedSet = null ][, int|null $productId = null ][, int|null $variantId = null ][, int|null $duplicateFromSetId = null ]) : ProductSetEdit
Parameters
$setId : int|null
$mode : string = 'standalone'
$preloadedSet : ProductSet|null = null
$productId : int|null = null
$variantId : int|null = null
$duplicateFromSetId : int|null = null
Return values
ProductSetEdit

initialized()

Stores the component as `$control`, initializes it and returns it with its concrete type (so `create(): Cart` does not return the generic `?BaseComponent` property).

protected initialized(T $control) : T
Parameters
$control : T
Tags
template
Return values
T
On this page

Search results