Zend Framework
3.0
|
A static, utility class for interacting with Console environment. More...
Static Public Member Functions | |
static | getInstance ($forceAdapter=null, $forceCharset=null) |
Create and return Adapter instance. | |
static | resetInstance () |
Reset the console instance. | |
static | isWindows () |
Check if currently running under MS Windows. | |
static | isAnsicon () |
Check if running under MS Windows Ansicon. | |
static | isConsole () |
Check if running in a console environment (CLI) | |
static | overrideIsConsole ($flag) |
Override the "is console environment" flag. | |
static | detectBestAdapter () |
Try to detect best matching adapter. | |
static | __callStatic ($funcName, $arguments) |
Pass-thru static call to current AdapterInterface instance. | |
Static Protected Attributes | |
static | $instance |
static | $isConsole |
A static, utility class for interacting with Console environment.
Declared abstract to prevent from instantiating.
|
static |
Pass-thru static call to current AdapterInterface instance.
$funcName | |
$arguments |
|
static |
Try to detect best matching adapter.
|
static |
Create and return Adapter instance.
null | string | $forceAdapter | Optional adapter class name. Can be absolute namespace or class name relative to Zend If not provided, a best matching adapter will be automatically selected. |
null | string | $forceCharset | optional charset name can be absolute namespace or class name relative to Zend If not provided, charset will be detected automatically. |
Exception\InvalidArgumentException | |
Exception\RuntimeException |
|
static |
Check if running under MS Windows Ansicon.
|
static |
Check if running in a console environment (CLI)
By default, returns value of PHP_SAPI global constant. If $isConsole is set, and a boolean value, that value will be returned.
|
static |
Check if currently running under MS Windows.
|
static |
Override the "is console environment" flag.
null | bool | $flag |
|
static |
Reset the console instance.
|
staticprotected |
|
staticprotected |