Display a continue page after quickgrading.

@param string $message - The message to display.
@return string
189999
protected function view_quickgrading_result($message) {
        $o = '';
        $o .= $this->get_renderer()->render(new assign_header($this->get_instance(),
                                                      $this->get_context(),
                                                      $this->show_intro(),
                                                      $this->get_course_module()->id,
                                                      get_string('quickgradingresult', 'assign')));
        $lastpage = optional_param('lastpage', null, PARAM_INT);
        $gradingresult = new assign_gradingmessage(get_string('quickgradingresult', 'assign'),
                                                   $message,
                                                   $this->get_course_module()->id,
                                                   false,
                                                   $lastpage);
        $o .= $this->get_renderer()->render($gradingresult);
        $o .= $this->view_footer();
        return $o;
    }
1025073
public static function page(array $message) {
    self::checkClient();
    self::validate($message, "page");

    return self::$client->page($message);
  }
794485
public static function success($message)
    {
        self::output(
            trim(self::$brand . ' ' . $message),
            "\033[32m%s\033[0m"
        );

        self::output(PHP_EOL);
    }
49925
public function format(string $message): string
    {
        if (null === $this->params) {
            return $message;
        }

        foreach ($this->transformParams($this->params) as $key => $value) {
            $message = str_replace($key, $value, $message);
        }

        return $message;
    }
216415
public function continueUssdMenu($user,$message,$menu){
        //verify response
        $menu_items = self::getMenuItems($user->menu_id);

        $i = 1;
        $choice = "";
        $next_menu_id = 0;
        foreach ($menu_items as $key => $value) {
            if(self::validationVariations(trim($message),$i,$value->description)){
                $choice = $value->id;
                $next_menu_id = $value->next_menu_id;

                break;
            }
            $i++;
        }
        if(empty($choice)){
            //get error, we could not understand your response
            $response = "We could not understand your response". PHP_EOL;


            $i = 1;
            $response = $menu->title.PHP_EOL;
            foreach ($menu_items as $key => $value) {
                $response = $response . $i . ": " . $value->description . PHP_EOL;
                $i++;
            }

            return $response;
            //save the response
        }else{
            //there is a selected choice
            $menu = ussd_menu::find($next_menu_id);
            //next menu switch
            $response = self::nextMenuSwitch($user,$menu);
            return $response;
        }

    }
333666
public function notify_success($message) {
        $n = new \core\output\notification($message, \core\output\notification::NOTIFY_SUCCESS);
        return $this->render($n);
    }
939652
public function get($message)
    {
        if (isset($this->messages[$message])) {
            $message = $this->messages[$message][0];
        }
        return $this->replacePlaceholders($message, array_slice(func_get_args(), 1));
    }
659777
protected function formatMessage($message, $format = [Console::FG_RED, Console::BOLD])
    {
        $stream = (PHP_SAPI === 'cli') ? \STDERR : \STDOUT;
        // try controller first to allow check for --color switch
        if ($this->app->controller instanceof Controller && $this->app->controller->isColorEnabled($stream)
            || $this->app instanceof Application && Console::streamSupportsAnsiColors($stream)) {
            $message = Console::ansiFormat($message, $format);
        }

        return $message;
    }
713440
public function translate($message)
    {
        if (isset($this->translations[$message])) {
            return $this->translations[$message];
        } else {
            return $message;
        }
    }
1338287
public function continueAction($message, $color = 'default') {
        if (!$this->currentAction)
            return;
        $color = ('default' == $color) ? $this->currentAction['color'] : $color;
        $r = (' ' . $this->timeItTook($this->currentAction['time']) . ' ' . $this->color($message, $color));
        $this->currentAction['length'] += 2 + $this->lastTimeLenght + $this->getTextLength($message);
        return $this->output($r);
    }
1024931
protected function formatMessage( $message )
	{
		if ( is_array( $message ) )
			return var_export( $message, true );
		elseif ( $message instanceof Jsonable )
			return $message->toJson();
		elseif ( $message instanceof Arrayable )
			return var_export( $message->toArray(), true );

		return $message;
	}
1056134
public static function displayAsEndSuccess(string $message, string $exit = "yes")
    {
        $colors = self::getManagerColorInstance();
        self::clear();
        echo "\n".$colors->getColoredString($message, "green", "transparent");
        if ($exit == "yes") {
            exit();
        }
    }
586618
public function url($message = null)
    {
        $this->setRule(__FUNCTION__, function($val)
                       {
                           return (strlen(trim($val)) === 0 || filter_var($val, FILTER_VALIDATE_URL) !== FALSE);
                       }, $message);
        return $this;
    }
330384
private static function message($message = '')
    {
        $message = sprintf("%s %d %d %s", date('Y-m-d H:i:s'), posix_getpid(), posix_getppid(), $message);
        Output::writeln(Colour::colour($message, Colour::GREEN));
    }
49276
public function push($message)
    {
        $status = array('success' => 0, 'failure' => 0);

        foreach (static::getPlatformServices() as $platform => $service_klass) {
            $service = new $service_klass();
            $query = App::collection('push_registrations')->where('platform', $platform);
            $query->chunk(self::MAX_RECIPIENTS_PER_REQUEST, function ($registrations) use (&$platform, &$service, &$status, $message) {
                try {
                    $chunk_status = $service->push($registrations, $message);
                    $status['success'] += $chunk_status['success'];
                    $status['failure'] += $chunk_status['failure'];
                } catch (\Exception $e) {
                    Logger::debug("PushNotification: platform: {$platform} -> {$e->getMessage()}");
                }
            });
        }

        return $status;
    }
210723
private function summarize($message)
    {
        $message = ltrim($message, "\n");
        if ($newLinePos = strpos($message, "\n")) {
            $message = substr($message, 0, $newLinePos);
        }

        return rtrim($message);
    }
583918
public static function exitWithErrorMessage($message)
    {
        Common::sendHeader('Content-Type: text/html; charset=utf-8');

        $message = str_replace("\n", "<br/>", $message);

        $output = "<html><body>".
            "<style>a{color:red;}</style>\n" .
            "<div style='color:red;font-size:120%; width:100%;margin: 30px;'>" .
            " <div style='width: 50px; float: left;'><img src='plugins/Morpheus/images/error_medium.png' /></div>" .
            "  <div style='margin-left: 70px; min-width: 950px;'>" .
            $message .
            "  </div>" .
            " </div>" .
            "</div>".
            "</body></html>";
        print($output);
        exit;
    }