Neuron-PHP

MaintenanceConfig
in package

Configuration handler for maintenance mode.

Table of Contents

Properties

$_config  : array<string|int, mixed>
$_settingSource  : ISettingSource|null

Methods

__construct()  : mixed
fromSettings()  : self
Create MaintenanceConfig from settings source
getAllowedIps()  : array<string|int, mixed>
Get allowed IP addresses from configuration
getCustomView()  : string|null
Get custom maintenance view path
getDefaultMessage()  : string
Get default maintenance message
getRetryAfter()  : int
Get default retry-after value
isEnabled()  : bool
Check if maintenance mode is enabled in configuration
shouldShowCountdown()  : bool
Check if countdown should be shown
getDefaults()  : array<string|int, mixed>
Get default configuration
loadConfig()  : void
Load configuration from settings source

Properties

Methods

getAllowedIps()

Get allowed IP addresses from configuration

public getAllowedIps() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCustomView()

Get custom maintenance view path

public getCustomView() : string|null
Return values
string|null

getDefaultMessage()

Get default maintenance message

public getDefaultMessage() : string
Return values
string

getRetryAfter()

Get default retry-after value

public getRetryAfter() : int
Return values
int

isEnabled()

Check if maintenance mode is enabled in configuration

public isEnabled() : bool
Return values
bool

shouldShowCountdown()

Check if countdown should be shown

public shouldShowCountdown() : bool
Return values
bool

getDefaults()

Get default configuration

private getDefaults() : array<string|int, mixed>
Return values
array<string|int, mixed>

loadConfig()

Load configuration from settings source

private loadConfig() : void

        
On this page

Search results