Function __global->_warn_screen

Definitions

sources/failure.php

  • Get the Tempcode for a warn page.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$title Tempcode No No required parameter N/A N/A The title of the warn page
$text mixed No No required parameter N/A N/A The text to put on the warn page, provided in plain-text format or HTML Tempcode
$provide_back boolean No No True N/A N/A Whether to provide a back button
$support_match_key_messages boolean No No False N/A N/A Whether match key messages / redirects should be supported

Returns

  • The warn page
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the Tempcode for a warn page.
 *
 * @param  Tempcode $title The title of the warn page
 * @param  mixed $text The text to put on the warn page, provided in plain-text format or HTML Tempcode
 * @param  boolean $provide_back Whether to provide a back button
 * @param  boolean $support_match_key_messages Whether match key messages / redirects should be supported
 * @return Tempcode The warn page
 */

function _warn_screen(object $title, $text, bool $provide_back = true, bool $support_match_key_messages = false) : object