PHP Class Phalcon\Cli\Environment\Environment

Inheritance: implements Phalcon\Cli\Environment\EnvironmentInterface
Afficher le fichier Open project: phalcon/incubator

Protected Properties

Свойство Type Description
$dimensions array Terminal dimensions

Méthodes publiques

Méthode Description
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.

Method Details

getDimensions() public méthode

Gets the terminal dimensions based on the current environment.
public getDimensions ( ) : array
Résultat array

getModeCon() public méthode

Runs and parses Microsoft DOS MODE CON command if it's available.
public getModeCon ( ) : null | string
Résultat null | string

getNumberOfColumns() public méthode

public getNumberOfColumns ( ) : integer
Résultat integer

getNumberOfRows() public méthode

public getNumberOfRows ( ) : integer
Résultat integer

getSttySize() public méthode

Runs and parses stty size command if it's available.
public getSttySize ( ) : null | string
Résultat null | string

hasColorSupport() public méthode

public hasColorSupport ( ) : boolean
Résultat boolean

isAnsicon() public méthode

When currently running under MS Windows checks if ANSI x3.64 is supported and enabled.
public isAnsicon ( ) : boolean
Résultat boolean

isConsole() public méthode

public isConsole ( ) : boolean
Résultat boolean

isInteractive() public méthode

public isInteractive ( integer | resource $fd = EnvironmentInterface::STDOUT ) : boolean
$fd integer | resource File descriptor, must be either a file resource or an integer [Optional]
Résultat boolean

isWindows() public méthode

public isWindows ( ) : boolean
Résultat boolean

setDimensions() public méthode

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

Property Details

$dimensions protected_oe property

Terminal dimensions
protected array $dimensions
Résultat array