AdvertParameterRuleContextRepositoryTrait
Scalar read of everything the parameter rules of an advert save need ({@see \App\Core\Form\Parameters\Rules\ParameterRuleEvaluator}): the parameters of the advert's categories, the rules with their sources, conditions and targets, and the active options of choice parameters.
Scalar because it runs in the save hook, where an ORM read would clear the unit of work. Table names come
from the advert table (cms_mod_<module>_adverts), so one code serves Bazaar and Comcat; the host also uses
AdvertHardDeleteRepositoryTrait, which provides advertTableName().
Tags
Table of Contents
Methods
-
parameterRuleContext()
: Rule>, options: array
>} - Items as the form builds them (`LoadingTrait`): only active top-level parameters with a type, either the default ones (first category with `use_default_parameters`) or those linked to the categories.
Methods
parameterRuleContext()
Items as the form builds them (`LoadingTrait`): only active top-level parameters with a type, either the default ones (first category with `use_default_parameters`) or those linked to the categories.
public
parameterRuleContext(array<int, int> $categoryIds) : Rule>, options: array>}
Parameters
- $categoryIds : array<int, int>