Class

MaintenanceConfig

Package: PHPBoost\Config Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2015 07 18 Since: PHPBoost 3.0 - 2010 07 05 Contributor: Julien BRISWALTER j1.seth@phpboost.com Located at: phpboost/config/MaintenanceConfig.class.php
AbstractConfigData implements ConfigData
Extended by MaintenanceConfig
Methods summary
public
public
public
public
public
public
public Date
# get_end_date( )
public
# set_end_date( Date $date )
public
public
# set_message( $message )
public
# get_auth( )
public
# set_auth( array $auth )
public
public
# set_display_duration( $display )
public
public
public
public
public
public string[mixed]
# get_default_values( )

Returns a map associating to each property name the corresponding default value

public static MaintenanceConfig
# load( )

Returns the configuration.

public static
# save( )

Saves the configuration in the database. Has it become persistent.

Constants summary
string ENABLED
# 'enabled'
string UNLIMITED_DURATION
# 'unlimited'
string END_DATE
# 'end_date'
string MESSAGE
# 'message'
string AUTH
# 'auth'
string DISPLAY_DURATION
# 'display_duration'
string DISPLAY_DURATION_FOR_ADMIN
# 'display_duration_admin'
integer ACCESS_WHEN_MAINTAIN_ENABLED_AUTHORIZATIONS
# 1