bludit/kernel/helpers/alert.class.php
2015-05-05 01:00:01 +00:00

26 lines
390 B
PHP

<?php defined('BLUDIT') or die('Bludit CMS.');
class Alert {
// new
public static function set($value, $key='alert')
{
Session::set('displayed', false);
Session::set($key, $value);
}
public static function get($key='alert')
{
Session::set('displayed', true);
return Session::get($key);
}
public static function displayed()
{
return Session::get('displayed');
}
}