PHP Интерфейс Kraken\Environment\EnvironmentInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
getEnv ( string $name ) : string | null Search the different places for environment variables and return first value found.
getOption ( string $key ) : string | boolean Return PHP ini.setting for key=$key.
registerErrorHandler ( callable $handler ) Register Error Handler.
registerExceptionHandler ( callable $handler ) Register Exception Handler.
registerShutdownHandler ( callable $handler ) Register Shutdown Handler.
registerTerminationHandler ( callable $handler ) Register Termination Handler.
removeEnv ( string $name ) Remove an environment variable.
removeOption ( string $key ) : string | boolean Restore PHP ini.setting of key=$key to its default value.
setEnv ( string $name, string | null $value ) Set an environment variable.
setOption ( string $key, string $val ) : string | boolean Set PHP ini.settings of key=$key to value=$val.

Описание методов

getEnv() публичный Метод

Search the different places for environment variables and return first value found.
public getEnv ( string $name ) : string | null
$name string
Результат string | null

getOption() публичный Метод

Return PHP ini.setting for key=$key.
public getOption ( string $key ) : string | boolean
$key string
Результат string | boolean

registerErrorHandler() публичный Метод

Register Error Handler.
public registerErrorHandler ( callable $handler )
$handler callable

registerExceptionHandler() публичный Метод

Register Exception Handler.
public registerExceptionHandler ( callable $handler )
$handler callable

registerShutdownHandler() публичный Метод

Register Shutdown Handler.
public registerShutdownHandler ( callable $handler )
$handler callable

registerTerminationHandler() публичный Метод

Register Termination Handler.
public registerTerminationHandler ( callable $handler )
$handler callable

removeEnv() публичный Метод

Remove an environment variable.
public removeEnv ( string $name )
$name string

removeOption() публичный Метод

Restore PHP ini.setting of key=$key to its default value.
public removeOption ( string $key ) : string | boolean
$key string
Результат string | boolean

setEnv() публичный Метод

The environment variable value is stripped of single and double quotes.
public setEnv ( string $name, string | null $value )
$name string
$value string | null

setOption() публичный Метод

Set PHP ini.settings of key=$key to value=$val.
public setOption ( string $key, string $val ) : string | boolean
$key string
$val string
Результат string | boolean