Class

Environment

Package: Core\Environment Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2019 03 26 Since: PHPBoost 3.0 - 2009 09 28 Contributor: Loic ROUCHON horn@phpboost.com Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Contributor: janus57 janus57@janus57.fr Located at: core/environment/Environment.class.php

This class manages all the environment that PHPBoost need to run.

It's able to initialize the environment that contains services (database, users management...) as well as the graphical environment.

Methods summary
public static
# load_imports( )

Loads all the files that the environment requires

public static
# init( )

Inits the environment and all its services.

public static
# try_init( )
public static
public static
public static
public static
public static
public static
public static
public static
public static
public static
public static
public static
public static string
# get_running_module_name( )

Retrieves the identifier (name of the folder) of the module which is currently executed.

public static
public static
public static The
# get_home_page( )

Retrieves the site start page.

public static string
# get_phpboost_version( )

Returns the full phpboost version with its build number

public static string
# get_phpboost_minor_version( )

Returns phpboost minor version (build number)

public static
# display( $content )

Displays the environment with content of the page.

public static
public static
# destroy( )
public static GraphicalEnvironment
public static
# try_to_increase_max_execution_time( )

This method is not called automatically but can be called if you know that an action can take a long time. By default, max execution time is 30 seconds. Note that according to PHP configuration, this function can fail.