You are here

function Vars::siteIsOffline in Variable API 6.2

Same name and namespace in other branches
  1. 7.2 vars.classes.inc \Vars::siteIsOffline()

Checks if the site is offline.

Return value

TRUE if the site is offline.

File

./vars.module, line 454
Implement an API to handle persistent variables.

Class

Vars
@file Implement an API to handle persistent variables.

Code

function siteIsOffline() {
  return (bool) $this
    ->offsetGet('site_offline');
}