2017 © Pedro Peláez
 

library notification

Notification component for storing and retrieving flash data.

image

flextype-components/notification

Notification component for storing and retrieving flash data.

  • Thursday, April 19, 2018
  • by Awilum
  • Repository
  • 1 Watchers
  • 0 Stars
  • 83 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 66 % Grown

The README.md

Notification Component

Version MIT License Quality Score, (*1)

Notification component for storing and retrieving flash data., (*2)

Installation

composer require flextype-components/notification

Usage

use Flextype\Component\Notification\Notification;

Initializes the Notification service.
This will read notification/flash data from the $_SESSION variable and load it into the $this->previous array., (*3)

Notification::init();

Returns a specific variable from the Notifications array., (*4)

echo Notification::get('success');
echo Notification::get('errors');

Adds specific variable to the Notifications array., (*5)

Notification::set('success', 'Data has been saved with success!');
Notification::set('errors', 'Data not saved!');

Adds specific variable to the Notifications array for current page., (*6)

Notification::setNow('success', 'Success!');

Clears the Notifications array.
Data that previous pages stored will not be deleted, just the data that this page stored itself., (*7)

Notification::clean();

License

See LICENSE, (*8)

The Versions

19/04 2018

dev-master

9999999-dev https://github.com/flextype-components/notification

Notification component for storing and retrieving flash data.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

messages data notification flash

19/04 2018

v1.0.1

1.0.1.0 https://github.com/flextype-components/notification

Notification component for storing and retrieving flash data.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

messages data notification flash

19/04 2018

v1.0.0

1.0.0.0 https://github.com/flextype-components/notification

Notification component for storing and retrieving flash data.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

messages data notification flash