bludit/kernel/helpers/alert.class.php

26 lines
382 B
PHP
Raw Normal View History

2015-05-05 01:00:01 +00:00
<?php defined('BLUDIT') or die('Bludit CMS.');
2015-03-27 01:00:01 +00:00
class Alert {
// new
public static function set($value, $key='alert')
{
2015-05-14 22:07:45 +00:00
Session::set('defined', true);
2015-05-05 01:00:01 +00:00
2015-03-27 01:00:01 +00:00
Session::set($key, $value);
}
public static function get($key='alert')
{
2015-05-14 22:07:45 +00:00
Session::set('defined', false);
2015-05-05 01:00:01 +00:00
2015-03-27 01:00:01 +00:00
return Session::get($key);
}
2015-05-14 22:07:45 +00:00
public static function defined()
2015-05-05 01:00:01 +00:00
{
2015-05-14 22:07:45 +00:00
return Session::get('defined');
2015-05-05 01:00:01 +00:00
}
2015-03-27 01:00:01 +00:00
}