PHP 인터페이스 Phalcon\Cli\Environment\EnvironmentInterface

파일 보기 프로젝트 열기: phalcon/incubator

공개 메소드들

메소드 설명
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