CoolCMS API

ShipperFormTrait

Edit/add form of a shipper: basic fields (e-mail notice on/off, icon CSS class) + multilingual texts including the expedition notice template (`emailSubject`/`emailBody`; the `{$expeditionInformations}`/ `{$expeditionDatetime}`/`{$expeditionCode}` placeholders are substituted only when `OrderEmailGenerator` sends the e-mail, the form just stores the text).

Table of Contents

Methods

createComponentEditForm()  : Form
addShipperMainFields()  : void
addShipperTranslationFields()  : void
buildShipperEntity()  : Shipper
saveShipperForm()  : bool
setShipperFormDefaults()  : void

Methods

buildShipperEntity()

private buildShipperEntity(ArrayHash<string|int, mixed> $values) : Shipper
Parameters
$values : ArrayHash<string|int, mixed>
Return values
Shipper

saveShipperForm()

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

Search results