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

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

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

Метод Описание
getNumberOfColumns ( ) : integer Gets the number of columns of the terminal.
getNumberOfRows ( ) : integer Gets the number of rows of the terminal.
hasColorSupport ( ) : boolean Checks the supports of colorization.
isConsole ( ) : boolean Checks if running in a console environment (CLI).
isInteractive ( integer | resource $fd = self::STDOUT ) : boolean Checks if the file descriptor is an interactive terminal.
isWindows ( ) : boolean Checks if currently running under MS Windows.

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

getNumberOfColumns() публичный метод

Gets the number of columns of the terminal.
public getNumberOfColumns ( ) : integer
Результат integer

getNumberOfRows() публичный метод

Gets the number of rows of the terminal.
public getNumberOfRows ( ) : integer
Результат integer

hasColorSupport() публичный метод

Checks the supports of colorization.
public hasColorSupport ( ) : boolean
Результат boolean

isConsole() публичный метод

Checks if running in a console environment (CLI).
public isConsole ( ) : boolean
Результат boolean

isInteractive() публичный метод

Checks if the file descriptor is an interactive terminal.
public isInteractive ( integer | resource $fd = self::STDOUT ) : boolean
$fd integer | resource File descriptor, must be either a file resource or an integer [Optional]
Результат boolean

isWindows() публичный метод

Checks if currently running under MS Windows.
public isWindows ( ) : boolean
Результат boolean