PHP Class Pimcore\Tool\Console

Datei anzeigen Open project: pimcore/pimcore Class Usage Examples

Protected Properties

Property Type Description
$executableCache array
$timeoutKillAfterSupport null | boolean

Public Methods

Method Description
checkCliExecution ( )
checkExecutingUser ( array $allowedUsers = [] )
exec ( $cmd, null $outputFile = null, null $timeout = null ) : string
execInBackground ( string $cmd, null | string $outputFile = null ) : integer
getExecutable ( $name, boolean $throwException = false ) : boolean | mixed | string
getOptionString ( $options, string $concatenator = '=', string $arrayConcatenator = ',' ) : string
getOptions ( $onlyFullNotationArgs = false ) : array Returns a hash with all options passed to a cli script
getPhpCli ( ) : mixed
getSystemEnvironment ( ) : string
getTimeoutBinary ( ) : boolean | string
runPhpScript ( $script, $arguments = "", $outputFile = null, $timeout = null ) : string
runPhpScriptInBackground ( $script, $arguments = "", $outputFile = null ) : string

Protected Methods

Method Description
buildPhpScriptCmd ( $script, $arguments ) : string
checkCjpeg ( $process ) : boolean
checkComposite ( $process ) : boolean
checkConvert ( $process ) : boolean
checkDummy ( $process ) : boolean
checkPngout ( $process ) : boolean
execInBackgroundUnix ( string $cmd, string $outputFile ) : integer
execInBackgroundWindows ( string $cmd, string $outputFile ) : integer
setupComposer ( )

Method Details

buildPhpScriptCmd() protected static method

protected static buildPhpScriptCmd ( $script, $arguments ) : string
$script
$arguments
return string

checkCjpeg() protected static method

protected static checkCjpeg ( $process ) : boolean
$process
return boolean

checkCliExecution() public static method

public static checkCliExecution ( )

checkComposite() protected static method

protected static checkComposite ( $process ) : boolean
$process
return boolean

checkConvert() protected static method

protected static checkConvert ( $process ) : boolean
$process
return boolean

checkDummy() protected static method

protected static checkDummy ( $process ) : boolean
$process
return boolean

checkExecutingUser() public static method

public static checkExecutingUser ( array $allowedUsers = [] )
$allowedUsers array

checkPngout() protected static method

protected static checkPngout ( $process ) : boolean
$process
return boolean

exec() public static method

public static exec ( $cmd, null $outputFile = null, null $timeout = null ) : string
$cmd
$outputFile null
$timeout null
return string

execInBackground() public static method

public static execInBackground ( string $cmd, null | string $outputFile = null ) : integer
$cmd string
$outputFile null | string
return integer

execInBackgroundUnix() protected static method

protected static execInBackgroundUnix ( string $cmd, string $outputFile ) : integer
$cmd string
$outputFile string
return integer

execInBackgroundWindows() protected static method

protected static execInBackgroundWindows ( string $cmd, string $outputFile ) : integer
$cmd string
$outputFile string
return integer

getExecutable() public static method

public static getExecutable ( $name, boolean $throwException = false ) : boolean | mixed | string
$name
$throwException boolean
return boolean | mixed | string

getOptionString() public static method

public static getOptionString ( $options, string $concatenator = '=', string $arrayConcatenator = ',' ) : string
$options
$concatenator string
$arrayConcatenator string
return string

getOptions() public static method

Returns a hash with all options passed to a cli script
public static getOptions ( $onlyFullNotationArgs = false ) : array
return array

getPhpCli() public static method

public static getPhpCli ( ) : mixed
return mixed

getSystemEnvironment() public static method

public static getSystemEnvironment ( ) : string
return string "windows" or "unix"

getTimeoutBinary() public static method

public static getTimeoutBinary ( ) : boolean | string
return boolean | string

runPhpScript() public static method

public static runPhpScript ( $script, $arguments = "", $outputFile = null, $timeout = null ) : string
$script
$arguments
$outputFile
$timeout
return string

runPhpScriptInBackground() public static method

public static runPhpScriptInBackground ( $script, $arguments = "", $outputFile = null ) : string
$script
$arguments
$outputFile
return string

setupComposer() protected static method

protected static setupComposer ( )

Property Details

$executableCache protected_oe static_oe property

protected static array $executableCache
return array

$timeoutKillAfterSupport protected_oe static_oe property

protected static null|bool $timeoutKillAfterSupport
return null | boolean