CoolCMS API

UnitFormTrait

Unit of measure form.

Only the full name is translated. The code abbreviation is deliberately not translated: it is printed next to quantities and must be identical across languages, otherwise it could not be matched.

Table of Contents

Methods

createComponentEditForm()  : Form
saveUnitForm()  : bool
setUnitFormDefaults()  : void

Methods

saveUnitForm()

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

Search results