Developer_release_1.4.0

Class mint.backoffice_messages

Module for send messages to the backoffice 'OEM settings' page.

Usage:

    bm = require 'mint.backoffice_messages'
    -- Usage:
    -- bm:MSG_TYPE('message text') -- where MSG_TYPE is required message type
    bm:message('message text') -- send message with the 'message' message type
    

Methods

mint.backoffice_messages:MSG_TYPE (text, clear_messages) Send message to the backoffice 'OEM settings' page with MSG_TYPE message type.


Methods

mint.backoffice_messages:MSG_TYPE (text, clear_messages)
Send message to the backoffice 'OEM settings' page with MSG_TYPE message type. Replace MSG_TYPE with actual type.

Parameters:

  • text string Message to send
  • clear_messages boolean Clear messages before show flag

Returns:

    true (on success)

Or

  1. nil
  2. string Error message (on failure)

Usage:

    bm = require 'mint.backoffice_messages'
    bm:message('message text') -- send message with the 'message' message type
    bm:error('error text') -- send message with the 'error' message type
    bm:info('info text') -- send message with the 'info' message type
    bm:info('info text', true) -- send message with the 'info' message type,
                               -- the messages log will be cleared
generated by LDoc 1.4.6 Last updated 1980-01-01 00:00:00