Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

Framework:Notification

gehrc edited this page Nov 28, 2014 · 2 revisions

###Description

Contains the 'Notification' class, which handles all messages displayed to the user from the framework.


####push()

public static

Pushes a message to the notification stack

Params

  • string $text Text to be displayed
  • string $level Error Level (default: 'info')
    • Accepted values: 'info', 'error', 'success', 'warning'
  • boolean $overwrite Flag to clear all notifications before adding this one (default: false)

Examples

Push a simple, informative message to the user

\Thinker\Framework\Notification::push("Welcome to THINKer!", 'info');

Push an error and clear other notfiications

\Thinker\Framework\Notification::push("An error has occurred.", 'error', true);

Clone this wiki locally