PHP Interface Phalcon\Cli\Environment\EnvironmentInterface

Datei anzeigen Open project: phalcon/incubator

Public Methods

Method Description
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.

Method Details

getNumberOfColumns() public method

Gets the number of columns of the terminal.
public getNumberOfColumns ( ) : integer
return integer

getNumberOfRows() public method

Gets the number of rows of the terminal.
public getNumberOfRows ( ) : integer
return integer

hasColorSupport() public method

Checks the supports of colorization.
public hasColorSupport ( ) : boolean
return boolean

isConsole() public method

Checks if running in a console environment (CLI).
public isConsole ( ) : boolean
return boolean

isInteractive() public method

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]
return boolean

isWindows() public method

Checks if currently running under MS Windows.
public isWindows ( ) : boolean
return boolean