class Events (View source)

Functions for event management.

Methods

__construct(DatabaseInterface $dbi, Template $template, ResponseRenderer $response)

No description

void
handleEditor()

Handles editor requests for adding or editing an item

array
getDataFromRequest()

This function will generate the values that are required to for the editor

array|null
getDataFromName(string $name)

This function will generate the values that are required to complete the "Edit event" form given the name of a event.

string
getEditorForm(string $mode, string $operation, array $item)

Displays a form used to add/edit an event

string
getQueryFromRequest()

Composes the query necessary to create an event from an HTTP request.

bool
getEventSchedulerStatus()

No description

void
export()

No description

Details

__construct(DatabaseInterface $dbi, Template $template, ResponseRenderer $response)

No description

Parameters

DatabaseInterface $dbi

DatabaseInterface instance.

Template $template

Template instance.

ResponseRenderer $response

Response instance.

void handleEditor()

Handles editor requests for adding or editing an item

Return Value

void

array getDataFromRequest()

This function will generate the values that are required to for the editor

Return Value

array

Data necessary to create the editor.

array|null getDataFromName(string $name)

This function will generate the values that are required to complete the "Edit event" form given the name of a event.

Parameters

string $name

The name of the event.

Return Value

array|null

Data necessary to create the editor.

string getEditorForm(string $mode, string $operation, array $item)

Displays a form used to add/edit an event

Parameters

string $mode

If the editor will be used to edit an event or add a new one: 'edit' or 'add'.

string $operation

If the editor was previously invoked with JS turned off, this will hold the name of the current operation

array $item

Data for the event returned by getDataFromRequest() or getDataFromName()

Return Value

string

HTML code for the editor.

string getQueryFromRequest()

Composes the query necessary to create an event from an HTTP request.

Return Value

string

The CREATE EVENT query.

bool getEventSchedulerStatus()

No description

Return Value

bool

void export()

No description

Return Value

void