class Maintenance (View source)

Methods

static bool
down()

Down site to maintenance mode

static bool
up()

Up site

static bool
enable(bool $enable)

Enable/disable maintenance mode

static void
ignoreif(callable $callback)

Up the site only in certain conditions, eg. the site administrator of the IP.

Details

static bool down()

Down site to maintenance mode

Return Value

bool

static bool up()

Up site

Return Value

bool

static protected bool enable(bool $enable)

Enable/disable maintenance mode

Parameters

bool $enable

Return Value

bool

static void ignoreif(callable $callback)

Up the site only in certain conditions, eg. the site administrator of the IP.

Parameters

callable $callback

Return Value

void