CoolCMS API

DefaultTrait

The only presenter action (`default`): mounts the calendar, the "booking disabled" message or the cancel token.

See the TimeSlotPresenter docblock.

Table of Contents

Properties

$bookingCalendarFactory  : BookingCalendarFactory
$cancelToken  : string|null
Token from `?cancel=<token>` (one-time e-mail link); `null` when absent.
$company  : Company|null
Presented company; `null` means none, which is fail-closed like `booking_enabled = false`.

Methods

actionDefault()  : void
createComponentFrontCompanyBookingCalendar()  : BookingCalendar
`{control frontCompanyBookingCalendar}`; the name is global even though only this page uses it (convention `front<Module><Component>`).
renderDefault()  : void

Properties

$cancelToken

Token from `?cancel=<token>` (one-time e-mail link); `null` when absent.

private string|null $cancelToken = null

$company

Presented company; `null` means none, which is fail-closed like `booking_enabled = false`.

private Company|null $company = null

Methods

createComponentFrontCompanyBookingCalendar()

`{control frontCompanyBookingCalendar}`; the name is global even though only this page uses it (convention `front<Module><Component>`).

public createComponentFrontCompanyBookingCalendar() : BookingCalendar
Return values
BookingCalendar
On this page

Search results