Class

AppContext

Package: Core\Environment\context Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2014 12 22 Since: PHPBoost 3.0 - 2009 10 01 Located at: core/environment/context/AppContext.class.php

This class manages all the environment services. It's able to create each of them and return them.

Methods summary
public static integer
# get_uid( )

Returns a unique identifier (useful for example to generate some javascript ids)

public static
# set_request( HTTPRequestCustom $request )

set the

HTTPRequestCustom
public static HTTPRequestCustom
# get_request( )

Returns the

HTTPRequestCustom

object

public static
# set_response( HTTPResponseCustom $response )

set the

HTTPResponseCustom
public static HTTPResponseCustom
# get_response( )

Returns the

HTTPResponseCustom

object

public static
# init_bench( )

Inits the bench

public static Bench
# get_bench( )

Returns the current page's bench

public static
# set_session( SessionData $session )

Sets the session

public static SessionData
# get_session( )

Returns the current user's session

public static
# init_current_user( )

Inits the current user

public static CurrentUser
# get_current_user( )

Returns the current user

public static
# set_current_user( $current_user )
public static CacheService
# get_cache_service( )

Returns the cache service

public static
# set_cache_service( CacheService $cache_service )
public static
# init_extension_provider_service( )

Inits the extension provider service

public static ExtensionPointProviderService
public static MailService
public static ContentFormattingService
public static CaptchaService