CoolCMS API

ParameterFieldsTrait

Table of Contents

Methods

parameterKey()  : string
addParameterFields()  : void
controlHasItem()  : bool
Returns whether the select control has the given option among its items.

Methods

controlHasItem()

Returns whether the select control has the given option among its items.

private controlHasItem(BaseControl $element, int $id) : bool

Guards setDefaultValue() against a nonexistent or removed option. Select items are keyed by option id (int); the string variant is checked too, for text keys.

Parameters
$element : BaseControl
$id : int
Return values
bool
On this page

Search results