PHP 클래스 pharext\ExecCmd

파일 보기 프로젝트 열기: m6w6/pharext 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $command, $verbose = false )
getOutput ( ) : string Retrieve output of cmd run
getStatus ( ) : integer Retrieve exit code of cmd run
run ( array $args = null ) : ExecCmd Run the command
setSu ( string $sudo = false ) (Re-)set sudo command

비공개 메소드들

메소드 설명
progress ( string $string, integer $flags ) : string Output handler that displays some progress while soaking output
suExec ( string $command, boolean $verbose = null ) : integer Execute a program with escalated privileges handling interactive password prompt

메소드 상세

__construct() 공개 메소드

public __construct ( string $command, $verbose = false )
$command string

getOutput() 공개 메소드

Retrieve output of cmd run
public getOutput ( ) : string
리턴 string

getStatus() 공개 메소드

Retrieve exit code of cmd run
public getStatus ( ) : integer
리턴 integer

run() 공개 메소드

Run the command
public run ( array $args = null ) : ExecCmd
$args array
리턴 ExecCmd self

setSu() 공개 메소드

(Re-)set sudo command
public setSu ( string $sudo = false )
$sudo string