Class

MaintenanceConfig

Package: phpboost Author: Benoit SAUTEL <ben.popeye@phpboost.com> Desc Located at phpboost/config/MaintenanceConfig.class.php
AbstractConfigData implements ConfigData
Extended by MaintenanceConfig
Methods summary
public
public
# set_maintenance_enabled( mixed $enabled )
public
public
public
public
# set_unlimited_maintenance( mixed $unlimited )
public Date
# get_end_date( )
public
# set_end_date( Date $date )
public
public
# set_message( mixed $message )
public
# get_auth( )
public
# set_auth( array $auth )
public
public
# set_display_duration( mixed $display )
public
public
# set_display_duration_for_admin( mixed $display )
public
public
public
public string[mixed]
# get_default_values( )
public static MaintenanceConfig
# load( )

Returns the configuration.

public static
# save( )

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

Methods inherited from AbstractConfigData
__construct(), get_property(), set_default_values(), set_property(), synchronize()
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
#