KumbiaPHP beta2-dev
Framework PHP en español
flash.php
Ir a la documentación de este archivo.
00001 <?php
00023 class Flash {
00024 
00031         public static function show($name,$text)
00032         {
00033                 if(isset($_SERVER['SERVER_SOFTWARE'])){
00034                         echo '<div class="' , $name , ' flash">' , $text , '</div>', PHP_EOL;
00035                 } else {
00036                         echo $name , ': ' , strip_tags($text) , PHP_EOL;
00037                 }
00038         }
00039         
00045         public static function error($text)
00046         {     
00047                 return self::show('error',$text);
00048         }
00049 
00055         public static function warning($text)
00056         {
00057                 return self::show('warning',$text);
00058         }
00059         
00065         public static function info($text)
00066         {
00067                 return self::show('info',$text);
00068         }
00074         public static function valid($text)
00075         {
00076                 return self::show('valid',$text);
00077         }
00078         
00086         public static function notice($text)
00087         {
00088                 return self::show('info',$text);
00089         }
00090 
00098         public static function success($text)
00099         {
00100                 return self::show('valid',$text);
00101         }
00102 }
 Todo Estructuras de Datos Namespaces Archivos Funciones Variables Enumeraciones