Class

AppContext

Package: core Author: Benoit Sautel <ben.popeye@phpboost.com> Desc: This class manages all the environment services. It's able to create each of them and return them. Located at core/environment/context/AppContext.class.php
Methods summary
public static integer
# get_uid( )
public static
# set_request( HTTPRequestCustom $request )
public static HTTPRequestCustom
# get_request( )
public static
# set_response( HTTPResponseCustom $response )
public static HTTPResponseCustom
# get_response( )
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( mixed $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