PHP 클래스 Phalcon\Cli\Environment\Environment

상속: implements Phalcon\Cli\Environment\EnvironmentInterface
파일 보기 프로젝트 열기: phalcon/incubator

보호된 프로퍼티들

프로퍼티 타입 설명
$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