Clear and render the alert messages of this and the previous requests.

@param string|null $custom
@return string
515841
public function render($custom = null)
    {
        $messages = $this->toArray();

        if ( ! empty ($messages)) {
            $this->clearMessages();
            return $this->theme->render(
                $custom,
                ['messages' => $this->withDefaults($messages)],
                'alert'
            );
        }

        return '';
    }
211112
public function render($messages = null)
	{
		if ($messages)
		{
			$this->setMessages($messages);
		}

		$messages = $this->getMessages();

		$output = array();
		foreach ($messages as $item)
		{
			$output[] = print_r($item['var'], true);
		}

		return implode("\n", $output);
	}
798687
public function clear($type = null)
    {
        if (is_null($type)) {
            $this->notifications = new Collection();
        } else {
            $notifications = new Collection();

            foreach ($this->notifications as $message) {
                if ($message->getType() != $type) {
                    $notifications->add($message);
                }
            }

            $this->notifications = $notifications;
        }

        return $this;
    }
418684
public function renderFlash($options = array())
    {
        $options['alerts'] = $this->alertManager->getFlashAlerts();

        if (empty($options['alerts'])) {
            return '';
        }

        return $this->alertHelper->render($options, $this->getTemplate($options));
    }
1120810
public function render_repeatable( $reset = false ) {

		$output = '<div class="uix-repeat" >';
		$output .= $this->render_template();
		if ( ! empty( $this->child ) ) {
			$output .= $this->render_children( $reset );
		}

		$output .= '<button type="button" class="button button-small uix-remover"><span class="dashicons dashicons-no"></span></button> </div>';

		return $output;

	}
1054347
public function render($exception)
    {
        if ($exception instanceof HTTPException) {
            return new Response($exception->getCode(), [], $exception->getMessage());
        }

        return null;
    }
186900
public function getNotificationTemplateData()
    {
        $fields = $this->Context->getValues();
        if (!is_array($fields)) {
            $fields = [];
        }
        $fields['Content'] = $this->Content;
        return $fields;
    }
636167
public void warning(String message, Map<String, Object> custom) {
    warning(null, custom, message);
  }
839533
protected function handleError($customMessage = null)
    {
        $message = new stdClass();
        $message->is_error = true;
        if (null !== $customMessage) {
            $message->message = $customMessage;
        }

        return $message;
    }
263844
public function render()
    {
        $alerts     = array();
        $namespaces = !is_null($this->namespaces) ? $this->namespaces : $this->availableNamespaces;

        foreach ($namespaces as $namespace) {
            $alert = $this->getAlert($namespace);

            if (is_object($alert)) {
                $alerts[] = $alert;
            }
        }

        return implode($alerts);
    }
861483
public function httpPostDeleteForHtml()
    {
        $isConfirmed = $this->getRequest()->getParameter('confirm') == 1;

        $response = null;
        if ($isConfirmed) {
            // If the operation has been confirmed, proceed.
            $response = $this->getDeletionResponse(
                $this->getRequest()->getParameter('ids')
            );
        } else {
            // If the operation is not confirmed, request confirmation.
            $selectedIds = $this->getSelectedIds();
            $response = $this->getDeletionConfirmationResponse($selectedIds);
        }

        return $response;
    }
838534
public function alert($msg)
    {
        if (is_array($msg)) {
            $msg = join("\n", $msg);
        }

        $this->last_selector = null;

        return $this->cmd(1, array($this->typecast($msg, true)));
    }
749015
public function getResetRequestForm($args_array = null)
    {
        $args = \MUtil_Ra::args(func_get_args());

        return $this->_loadClass('Form_ResetRequestForm', true, array($args));
    }
1033274
public function render() {
		// execute callback if we have one first
		if ( is_closure( $this->value ) ) {
			ob_start(); $return = call_user_func( $this->value ); $this->value = ob_get_clean().$return;
		}
		return '<'.$this->name.static::attr( $this->attr ).
			( !is_null( $this->value ) ? '>'.$this->value.'</'.$this->name.'>' : ' />' );
	}
389340
public function clearMessages()
    {
        $this->errorMessages = [];
        $this->infoMessages = [];
        $this->successMessages = [];
        $this->warningMessages = [];

        return $this;
    }
576475
protected function _view_alerts() {
		$msgs = RD::get_once(NULL, array(), FALSE);

		if(count($msgs))
			return View::factory('RD/alerts', array('messages' => $msgs))->render();
		else if(RD::has_messages())
		{
			return View::factory('RD/alerts', array('messages' => RD::get_current(null, $this->_dump_all_alerts)))->render();
		}
		else
			return '';
	}
1084772
public function render(CustomControl $customControl, Map $map)
    {
        $formatter = $this->getFormatter();

        return $formatter->renderObjectCall(
            $map,
            $formatter->renderProperty(
                'controls['.$this->controlPositionRenderer->render($customControl->getPosition()).']',
                'push'
            ),
            [$formatter->renderCall('('.$formatter->renderClosure($customControl->getControl()).')')]
        );
    }