Function __global->_maintenance_password_check__init

Definitions

sources/crypt_maintenance.php

  • Prepare for checking the maintenance password.This call should be done within an if condition and appropriately handled when this returns false (if $silent_failure could be true).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$silent_failure boolean No No False N/A N/A Whether to proceed without exiting (false: instead of returning, we will exit if a maintenance password is not defined)

Returns

  • Whether a maintenance password is available and access should be allowed
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Prepare for checking the maintenance password.This call should be done within an if condition and appropriately handled when this returns false (if $silent_failure could be true).
 *
 * @param  boolean $silent_failure Whether to proceed without exiting (false: instead of returning, we will exit if a maintenance password is not defined)
 * @return boolean Whether a maintenance password is available and access should be allowed
 */

function _maintenance_password_check__init(bool $silent_failure = false) : bool