<commit_before>## Introduction

Notice is simple and easy to use class for displaying notification messages to the user for Kohana 3.x.

## Instalation

	$ git submodule add git://github.com/loonies/kohana-notice.git modules/notice
	$ git submodule update --init

## General

A Notice message consist of:

*  Type - The message type
*  Message - The message itself
*  Variables - The message varibles
*  Items - Additional message items i.e. submessages

## Usage

Add a new message.

	Notice::add(Notice::ERROR, 'Unable to download :module. Please:', array('module' => $module), array(
		'Check your connection', 'Check configuration settings'
	));

Render the Notice view.

	View::factory('download')
		->bind('notice', $notice);

	$notice = Notice::render();<commit_msg>Updated the README file with the new changes<commit_after>## Introduction

Notice is simple and easy to use class for displaying notification messages to the user for Kohana 3.x.

## Instalation

	$ git submodule add git://github.com/loonies/kohana-notice.git modules/notice
	$ git submodule update --init

## General

A Notice message consist of:

*  Type - The message type
*  Message - The message itself
*  Variables - The message varibles
*  Items - Additional message items i.e. submessages

## Usage

Add a new message.

	Notice::add(Notice::ERROR, 'Unable to download :module. Please:', array('module' => $module), array(
		'Check your connection', 'Check configuration settings'
	));

Render the notifications.

	View::factory('download')
		->bind('notice', $notice);

	$notice = Notice::render();

Render the notifications as json (useful for AJAX response).

	Notice::render(NULL, 'json');

Get all the *error* notices as array.

	$errors = Notice::as_array(Notice::ERROR);

Clear the *warning* notices.

	Notice::clear(Notice::WARNING);
{'fraction_non_alphanumeric': 0.11696869851729819, 'fraction_numerical': 0.001098297638660077, 'mean_word_length': 4.406528189910979, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3238674', 'n_tokens_mistral': 558, 'n_tokens_neox': 515, 'n_words': 196}