Ejemplo n.º 1
0
 /**
  * Show all messages
  * @param string $type can be one of "print", "log", or "return"
  * @return mixed
  */
 public static function show($type = 'print')
 {
     if ($type == 'log') {
         Hm_Functions::error_log(print_r(self::$msgs, true));
     } elseif ($type == 'return') {
         return self::$msgs;
     } else {
         print_r(self::$msgs);
     }
 }