CoolCMS API

ParameterFormItem
in package

Read onlyYes
FinalYes

Resolved parameter with per-form values for a given category context; input of {@see ParameterFieldBuilder}.

The consumer (advert form, filter box) aggregates across all selected categories:

  • required: OR (one category with required=true is enough),
  • order: the minimum,
  • groupId: first wins (the first category with a non-null groupId; later ones do not overwrite).

For default parameters (a category with useDefaultParameters=true, or no category) the values fall back to the Parameter entity itself (required, lft, parameterGroupId).

Shared by front end and admin.

Table of Contents

Properties

$groupId  : int|null
$order  : int
$parameter  : ParameterInterface
$required  : bool

Methods

__construct()  : mixed
getId()  : int|null

Properties

Methods

__construct()

public __construct(ParameterInterface $parameter[, int $order = 0 ][, bool $required = false ][, int|null $groupId = null ]) : mixed
Parameters
$parameter : ParameterInterface
$order : int = 0
$required : bool = false
$groupId : int|null = null
On this page

Search results