extend flash message
@param string $message
@param string $type
@param string $comment
@param string $icon
@return \stdClass
542009
public function flashMessage($message, $type = 'default', $comment=null, $icon=null, $width=50, $iconSize="lg", $timeout=5)
    {
        $id = $this->getParameterId('flash');
        $presenter = $this->getPresenter();
        if($presenter instanceof Presenter){
            $messages = $presenter->getFlashSession()->$id;
        } else {
            $messages = null;
        }

        $messages[] = $flash = (object) [
             'title' => $message,
             'type' => $type,
             'comment' => $comment,
             'icon' => $icon,
             'width' => $width,
             'iconSize' =>$iconSize,
             'timeout' => $timeout
         ];
        $this->getTemplate()->flashes = $messages;
        if($presenter instanceof Presenter){
            $presenter->getFlashSession()->$id = $messages;
        }
        return $flash;
    }
642177
public function setFlash(string $message, string $type = 'info')
    {
        return $this
            ->set('page', 'flash', 'message', $message)
            ->set('page', 'flash', 'type', $type);
    }
789298
public function setMessage($message, $type = 'info', $parameters = [])
    {
        $this->getSession()->getFlashBag()->add($type, $this->translate($message, $parameters));
    }
1303366
public function flash(string $message, string $style = 'info'): self
    {
        $this->session->flash('alert.message', $message);
        $this->session->flash('alert.style', $style);

        return $this;
    }
728057
private function type($message, $type)
    {
        $this->type = $type;

        $this->message = $message;

        return $this;
    }
696620
public function setMessage($message, $type = 'info', $key = 'messages')
    {
        if ($message !== '') {

            $messages = (array) $this->get("$key.$type", array());

            if (!in_array($message, $messages)) {
                $messages[] = $message;
                $this->set("$key.$type", $messages);
            }
        }
    }
1058719
public function addFlash($type, $message)
    {
        if (is_array($message)) {
            $this->getMbRequest()->getFlashBag()->set($type, $message);
        } else {
            $this->getMbRequest()->getFlashBag()->add($type, $message);
        }

        return $this;
    }
789122
private function flash($type, $message)
	{
		// Determine the Current Session Flash Type
		$flash = Session::has($type) ? Session::get($type) : array();

		// Prevent Duplicate Messages from Appearing
		if(!in_array($message, $flash))
			$flash[] = $message; // Add the Message to the Flashes

		// Flash the Message
		Session::flash($type, $flash);
	}
971964
public function flashMessage(
        $message,
        $type = FlashMessage::TYPE_SUCCESS,
        $method = FlashMessage::METHOD_APPEND
    ) {
        $message = new FlashMessage($message, $type, $method);
        $this->register($message);

        return $message;
    }
365229
public function addMessage($messages, $type = 'info')
    {
        $this->session->getFlashBag()->add($messages, $type);

        return $this;
    }
1165226
public void addMessageNow(String message) {
    ActionMessages messages = (ActionMessages) now.get(Flash.MESSAGES);
    if (null == messages) {
      messages = new ActionMessages();
      now.put(Flash.MESSAGES, messages);
    }
    messages.getMessages().add(message);
  }
986353
public function addNotification(string $type, string $message, string $title = '', array $options = []): self
    {
        $this->notifications[] = [
            'type'    => in_array($type, $this->allowedTypes, true) ? $type : self::WARNING,
            'title'   => $this->escapeSingleQuote($title),
            'message' => $this->escapeSingleQuote($message),
            'options' => json_encode($options),
        ];

        $this->session->flash(self::TOASTR_NOTIFICATIONS, $this->notifications);

        return $this;
    }
253722
public function log($message, $type = self::MESSAGE_INFO) {
        $format = [$type == self::MESSAGE_ERROR ? Console::FG_RED : Console::FG_BLUE];
        Console::stdout(Console::ansiFormat($message . PHP_EOL, $format));
    }
636509
public function adminNotice($message, $type = 'success')
    {
        MbWPActionHook::addActionCallback('admin_notices', function () use ($message, $type) {
            echo self::adminNoticeTemplate($message, $type);
        });
    }
1134464
private function stdout($type, $message)
        {
            if (!defined('STDOUT') || !$this->debug) {
                return false;
            }

            $typeMap = array(
                'debug'   => array(36, '- debug -'),
                'info'    => array(37, '- info  -'),
                'error'   => array(31, '- error -'),
                'ok'      => array(32, '- ok    -'),
            );

            if (!Arrays::exists($type, $typeMap)) {
                throw new Exception('Socketio::stdout $type parameter must be debug, info, error or success. Got '.$type);
            }

            fwrite(STDOUT, "\033[".$typeMap[$type][0]."m".$typeMap[$type][1]."\033[37m  ".$message."\r\n");
        }
360234
public static function flash($message, $label = 'default')
    {
        if (!isset($_SESSION)) {
            throw new AtomikException('The session must be started before using Atomik::flash()');
        }
        
        Atomik::fireEvent('Atomik::Flash', array(&$message, &$label));
        
        if (!Atomik::has("session.__FLASH.$label")) {
            Atomik::set("session.__FLASH.$label", array());
        }
        Atomik::add("session.__FLASH.$label", $message);
    }
51034
public function setMessage($type, $message) {
		if (!$this->session->has('flashmsgs')) {
			$this->session->set('flashmsgs', array());
		}
		$temp = $this->session->get('flashmsgs');
		$temp[] = array('type' => $type, 'content' => $message);
		$this->session->set('flashmsgs', $temp);
	}