final public
|
#
__construct( )
Static class - cannot be instantiated.
Static class - cannot be instantiated.
|
public static
|
|
public static
Nette\Configurator
|
#
getConfigurator( )
Gets "class behind Environment" configurator.
Gets "class behind Environment" configurator.
Returns
|
public static
|
#
setName( string $name )
Sets the current environment name.
Sets the current environment name.
Parameters
Throws
|
public static
string
|
#
getName( )
Returns the current environment name.
Returns the current environment name.
Returns
string
|
public static
|
#
setMode( string $mode, boolean $value = TRUE )
Sets the mode.
Parameters
- $mode
string mode identifier
- $value
boolean set or unset
|
public static
boolean
|
#
getMode( string $mode )
Returns the mode.
Parameters
- $mode
string mode identifier
Returns
boolean
|
public static
boolean
|
#
isConsole( )
Detects console (non-HTTP) mode.
Detects console (non-HTTP) mode.
Returns
boolean
|
public static
boolean
|
#
isProduction( )
Determines whether a server is running in production mode.
Determines whether a server is running in production mode.
Returns
boolean
|
public static
|
#
setVariable( string $name, mixed $value, boolean $expand = TRUE )
Sets the environment variable.
Sets the environment variable.
Parameters
- $name
string
- $value
mixed
- $expand
boolean
|
public static
mixed
|
#
getVariable( string $name, mixed $default = NULL )
Returns the value of an environment variable or $default if there is no
element set.
Returns the value of an environment variable or $default if there is no
element set.
Parameters
- $name
string
- $default
mixed default value to use if key not found
Returns
mixed
Throws
|
public static
array
|
#
getVariables( )
Returns the all environment variables.
Returns the all environment variables.
Returns
array
|
public static
string
|
#
expand( string $var )
Returns expanded variable.
Returns expanded variable.
Parameters
Returns
string
Throws
|
public static
Nette\IServiceLocator
|
#
getServiceLocator( )
Get initial instance of service locator.
Get initial instance of service locator.
Returns
|
public static
object
|
#
getService( string $name, array $options = NULL )
Gets the service object of the specified type.
Gets the service object of the specified type.
Parameters
- $name
string service name
- $options
array options in case service is not singleton
Returns
object
|
public static
|
#
setServiceAlias( string $service, string $alias )
Adds new Environment::get<Service>() method.
Adds new Environment::get<Service>() method.
Parameters
- $service
string service name
- $alias
string alias name
|
public static
object
|
#
__callStatic( string $name, array $args )
Calling to undefined static method.
Calling to undefined static method.
Parameters
- $name
string method name
- $args
array arguments
Returns
object service
|
public static
Nette\Web\HttpRequest
|
|
public static
Nette\Web\HttpContext
|
|
public static
Nette\Web\HttpResponse
|
|
public static
Nette\Application\Application
|
|
public static
Nette\Web\User
|
|
public static
Nette\Caching\Cache
|
|
public static
Nette\Web\Session
|
#
getSession( string $namespace = NULL )
Returns instance of session or session namespace.
Returns instance of session or session namespace.
Parameters
Returns
|
public static
ArrayObject
|
#
loadConfig( string|Nette\Config\Config $file = NULL )
Loads global configuration from file and process it.
Loads global configuration from file and process it.
Parameters
Returns
|
public static
mixed
|
#
getConfig( string $key = NULL, mixed $default = NULL )
Returns the global configuration.
Returns the global configuration.
Parameters
- $key
string key
- $default
mixed default value
Returns
mixed
|
public static
|
#
enterCriticalSection( string $key )
Enters the critical section, other threads are locked out.
Enters the critical section, other threads are locked out.
Parameters
|
public static
|
#
leaveCriticalSection( string $key )
Leaves the critical section, other threads can now enter it.
Leaves the critical section, other threads can now enter it.
Parameters
|