PHP Класс Phalcon\Cli\Environment\Environment

Наследование: implements Phalcon\Cli\Environment\EnvironmentInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$dimensions array Terminal dimensions

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

Метод Описание
getDimensions ( ) : array Gets the terminal dimensions based on the current environment.
getModeCon ( ) : null | string Runs and parses Microsoft DOS MODE CON command if it's available.
getNumberOfColumns ( ) : integer
getNumberOfRows ( ) : integer
getSttySize ( ) : null | string Runs and parses stty size command if it's available.
hasColorSupport ( ) : boolean
isAnsicon ( ) : boolean When currently running under MS Windows checks if ANSI x3.64 is supported and enabled.
isConsole ( ) : boolean
isInteractive ( integer | resource $fd = EnvironmentInterface::STDOUT ) : boolean
isWindows ( ) : boolean
setDimensions ( integer $width, integer $height ) Sets terminal dimensions.

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

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

Gets the terminal dimensions based on the current environment.
public getDimensions ( ) : array
Результат array

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

Runs and parses Microsoft DOS MODE CON command if it's available.
public getModeCon ( ) : null | string
Результат null | string

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

public getNumberOfColumns ( ) : integer
Результат integer

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

public getNumberOfRows ( ) : integer
Результат integer

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

Runs and parses stty size command if it's available.
public getSttySize ( ) : null | string
Результат null | string

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

public hasColorSupport ( ) : boolean
Результат boolean

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

When currently running under MS Windows checks if ANSI x3.64 is supported and enabled.
public isAnsicon ( ) : boolean
Результат boolean

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

public isConsole ( ) : boolean
Результат boolean

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

public isInteractive ( integer | resource $fd = EnvironmentInterface::STDOUT ) : boolean
$fd integer | resource File descriptor, must be either a file resource or an integer [Optional]
Результат boolean

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

public isWindows ( ) : boolean
Результат boolean

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

Sets terminal dimensions.
public setDimensions ( integer $width, integer $height )
$width integer The width
$height integer The height

Описание свойств

$dimensions защищенное свойство

Terminal dimensions
protected array $dimensions
Результат array