maintenanceMode
in package
Maintenance mode utility class based on the former site_upgrade plugin
Tags
Table of Contents
Methods
- getButtonDefinition() : array<string|int, mixed>
- Gets the utility button definition
- getPlaceholderHTML() : string
- Gets the placeholder HTML page
- getPlaceHolderRSS() : string
- Gets the placeholder RSS feed
- getState() : string
- Gets the site state
- getStateNote() : string
- Gets the site state note
- getUtilityLinkHTML() : mixed
- Gets a link element with a link to the utiltiy if the current user has admin rights
- loadPlaceholderPage() : mixed
- Loads the placeholder page if the site is in test mode
- printStateNotice() : mixed
- Prins the site state notice on the backend
- restorePlaceholderFiles() : mixed
- Restores the placeholder files
- setState() : mixed
- Updates the site state
Methods
getButtonDefinition()
Gets the utility button definition
public
static getButtonDefinition() : array<string|int, mixed>
Return values
array<string|int, mixed>getPlaceholderHTML()
Gets the placeholder HTML page
public
static getPlaceholderHTML([mixed $corecss = false ]) : string
Parameters
- $corecss : mixed = false
Return values
stringgetPlaceHolderRSS()
Gets the placeholder RSS feed
public
static getPlaceHolderRSS() : string
Return values
stringgetState()
Gets the site state
public
static getState() : string
Tags
Return values
stringgetStateNote()
Gets the site state note
public
static getStateNote([string $which = null ]) : string
Parameters
- $which : string = null
-
Default null to get the note to the current status, 'open", 'closed" or "closed_for_test' to get the note on demand
Return values
stringgetUtilityLinkHTML()
Gets a link element with a link to the utiltiy if the current user has admin rights
public
static getUtilityLinkHTML() : mixed
loadPlaceholderPage()
Loads the placeholder page if the site is in test mode
public
static loadPlaceholderPage() : mixed
Tags
printStateNotice()
Prins the site state notice on the backend
public
static printStateNotice() : mixed
restorePlaceholderFiles()
Restores the placeholder files
public
static restorePlaceholderFiles() : mixed
Tags
setState()
Updates the site state
public
static setState(string $state[, obj $mutexobj = null ]) : mixed
Parameters
- $state : string
-
'open', 'closed', 'closed_for_test'
- $mutexobj : obj = null
-
A mutex object either from zpMutex or setupMutex classes