CoolCMS API

ParameterGroupFormTrait

Add/edit form of a parameter group (multilingual texts only).

Per language: name (required when the translation is active) and the search form label (searchFormLabel). Translations are an owned collection saved through the object-graph cascade (Api hydrateForPersist). Shared by Bazaar, Comcat and Eshop; see ParameterFormTrait for the class-string getter pattern.

TODO: editing of ParameterRule rules is not ported to this form yet.

Table of Contents

Methods

createComponentEditForm()  : Form
displayTargetColumn()  : string
Target column of the display rules for the group (`cms_mod_{module}_parameter_groups_parameter_group_id`).
parameterGroupEntityClass()  : string
parameterGroupManager()  : Manager
parameterGroupTextEntityClass()  : string
saveParameterGroupForm()  : bool
setParameterGroupFormDefaults()  : void

Methods

displayTargetColumn()

Target column of the display rules for the group (`cms_mod_{module}_parameter_groups_parameter_group_id`).

protected abstract displayTargetColumn() : string
Return values
string

parameterGroupEntityClass()

protected abstract parameterGroupEntityClass() : string
Return values
string

parameterGroupTextEntityClass()

protected abstract parameterGroupTextEntityClass() : string
Return values
string

saveParameterGroupForm()

private saveParameterGroupForm(ArrayHash<string|int, mixed> $values) : bool
Parameters
$values : ArrayHash<string|int, mixed>
Return values
bool
On this page

Search results