Print a success message.

It is a function of the Jaxon\Request\Interfaces\Alert interface.

@param string              $message              The text of the message
@param string|null         $title                The title of the message

@return void
186470
public function success($message, $title = null)
    {
        return $this->getAlertLibrary(true)->success((string)$message, (string)$title);
    }
183272
protected function notify($title, $message, $icon = null)
    {
        $icon = is_string($icon) ? $icon : $this->icon;

        $this->execute("notify-send -t 2000 -i {$icon} '{$title}' '$message'");
    }
197306
public static function output($message, $data = null)
    {
        if (static::$mode == "html") {
            static::html($message, $data);
        } else {
            static::text($message, $data);
        }
    }
641047
public function setTitle($title = null)
    {
        if ($title === null) {
            $this->title = null;
        }
        else {
            $this->title = (string) $title;
        }
        return $this;
    }
1086747
public function setMessage($title, $message) {
		if ($message == '') throw new \InvalidArgumentException('message parameter is empty');
		$this->title = $title;
		$this->message = $message;
	}
1199153
public function print_confirm_required($title, $message) {
        global $PAGE, $OUTPUT, $CFG;

        $PAGE->navbar->add($title);
        $PAGE->set_title($title);
        $PAGE->set_heading($PAGE->course->fullname);
        echo $OUTPUT->header();
        notice($message, "$CFG->wwwroot/index.php");
    }
1355674
public function success(?string $message = null): Log
    {
        if (!is_null($message)) {
            $this->message = $message;
        }
        $this->type = 'success';
        Alertify::flash();
        return $this;
    }
691767
protected function showError($title, $messages = '', $output)
    {
        $output->writeln("<error>$title</error>");
        $output->writeln('');
        if (is_array($messages)) {
            foreach ($messages as $message) {
                $output->writeln("<comment>$message</comment>");
            }
            $output->writeln('');
        } elseif ($messages != '') {
            $output->writeln("<comment>$messages</comment>");
            $output->writeln('');
        }
    }
1287658
public static function printResult($title, $objectName, $objectId = null, $request = null, $response = null)
    {
        self::printOutput($title, $objectName, $objectId, $request, $response, false);
    }
917245
private function message(
        $message,
        $title = '',
        array $placeholders = [],
        $level = 'info',
        $dismissible = true,
        $overlay = false
    ) {
        $message = $this->getTranslation($message, $placeholders);

        if ( ! empty($title)) {
            $title = $this->getTranslation($title, $placeholders);
        }

        $flash = [
            'message'     => $message,
            'title'       => $title,
            'level'       => $level,
            'dismissible' => $dismissible,
            'overlay'     => $overlay,
            'class'       => $this->classNames[$level]
        ];

        $messages = $this->getExistingFlashMessages();
        $messages[] = $flash;

        $this->session->flash($this->sessionKey, $messages);

        return $this;
    }
374035
public function printHTMLHeader($title)
    {
        $this->_htmlFilterOutput(
            str_replace(
                '__TITLE__', $title,
                (empty($this->_output_header)
                ? '<html><head><title>__TITLE__</title></head><body><h1>__TITLE__</h1>'
                : $this->_output_header)
            )
        );
    }
1023233
public static function write($message = null, $padding = null)
    {
        if ($padding > 0) {
            $message = str_pad($message, $padding, ' ');
        }

        self::stdOut($message);
    }
255283
public function showError($view, $message, $title = null)
    {
        return $this->show($view, 'error', $message, $title);
    }
864028
public function overlay($message, $title = 'Notice')
    {
        $this->message($message, $title);

        $this->session->flash('flash_notification.overlay', true);

        return $this;
    }
234425
public function setTitle($title)
	{
		if ( $title == $this->getTitle() ) { return; }

		$this->_values['title'] = (string) $title;
		$this->setModified();
	}
1160779
protected function showSuccess($title, $messages = '', $output)
    {
        $output->writeln("<info>$title</info>");
        $output->writeln('');
        if (is_array($messages)) {
            foreach ($messages as $message) {
                $output->writeln("$message");
            }
            $output->writeln('');
        } elseif ($messages != '') {
            $output->writeln($messages);
            $output->writeln('');
        }
    }
1123990
public function printDebug($message)
    {
        if ($this->output->getVerbosity() == OutputInterface::VERBOSITY_DEBUG) {
            $this->printOut('[DEBUG] '.$message);
        }
    }