* @link http://monstra.org * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ class Alert { /** * Protected constructor since this is a static class. * * @access protected */ protected function __construct() { // Nothing here } /** * Show success message * * * Alert::success('Message here...'); * * * @param string $message Message * @param integer $seconds Seconds */ public static function success($message, $seconds = 3) { // Redefine vars $message = (string) $message; $seconds = (int) $seconds; echo ''; } /** * Show warning message * * * Alert::warning('Message here...'); * * * @param string $message Message * @param integer $seconds Seconds */ public static function warning($message, $seconds = 3) { // Redefine vars $message = (string) $message; $seconds = (int) $seconds; echo ''; } /** * Show error message * * * Alert::error('Message here...'); * * * @param string $message Message * @param integer $seconds Seconds */ public static function error($message, $seconds = 3) { // Redefine vars $message = (string) $message; $seconds = (int) $seconds; echo ''; } }