CoolCMS API

BlacklistFormTrait

Add/edit form of a blacklist item.

BasePresenter::createForm() provides the skeleton. Flat entity: value and typeId (type 1-3, select); type labels are in the translations.

Table of Contents

Methods

createComponentEditForm()  : Form
saveBlacklistForm()  : bool
Saves the form data; {@see \App\Core\Base\Admin\BasePresenter::createForm()} handles the redirect.
setBlacklistFormDefaults()  : void

Methods

saveBlacklistForm()

Saves the form data; {@see \App\Core\Base\Admin\BasePresenter::createForm()} handles the redirect.

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

Search results