CoolCMS API

RuleEditorFactory extends BaseComponentFactory
in package

FinalYes

Factory for {@see RuleEditor}, called from a Nette Multiplier on the presenter (the key is `ruleId`).

The AppContext is injected by the decorator (setAppContext() in the decorators config), so the constructor does not call the parent constructor.

Table of Contents

Properties

$appContext  : AppContext
$control  : BaseComponent|null
$parameterManager  : ParameterManager
$parameterRuleManager  : ParameterRuleManager
$pickerFactory  : PickerFactory

Methods

__construct()  : mixed
create()  : RuleEditor
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

create()

public create(int $ruleId, int $selectId[, string $modalId = RuleEditor::DEFAULT_MODAL_ID ]) : RuleEditor
Parameters
$ruleId : int
$selectId : int
$modalId : string = RuleEditor::DEFAULT_MODAL_ID
Return values
RuleEditor

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