PHP Class Pimcore\Tool\Console

Afficher le fichier Open project: pimcore/pimcore Class Usage Examples

Protected Properties

Свойство Type Description
$executableCache array
$timeoutKillAfterSupport null | boolean

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

protected static buildPhpScriptCmd ( $script, $arguments ) : string
$script
$arguments
Résultat string

checkCjpeg() protected static méthode

protected static checkCjpeg ( $process ) : boolean
$process
Résultat boolean

checkCliExecution() public static méthode

public static checkCliExecution ( )

checkComposite() protected static méthode

protected static checkComposite ( $process ) : boolean
$process
Résultat boolean

checkConvert() protected static méthode

protected static checkConvert ( $process ) : boolean
$process
Résultat boolean

checkDummy() protected static méthode

protected static checkDummy ( $process ) : boolean
$process
Résultat boolean

checkExecutingUser() public static méthode

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

checkPngout() protected static méthode

protected static checkPngout ( $process ) : boolean
$process
Résultat boolean

exec() public static méthode

public static exec ( $cmd, null $outputFile = null, null $timeout = null ) : string
$cmd
$outputFile null
$timeout null
Résultat string

execInBackground() public static méthode

public static execInBackground ( string $cmd, null | string $outputFile = null ) : integer
$cmd string
$outputFile null | string
Résultat integer

execInBackgroundUnix() protected static méthode

protected static execInBackgroundUnix ( string $cmd, string $outputFile ) : integer
$cmd string
$outputFile string
Résultat integer

execInBackgroundWindows() protected static méthode

protected static execInBackgroundWindows ( string $cmd, string $outputFile ) : integer
$cmd string
$outputFile string
Résultat integer

getExecutable() public static méthode

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

getOptionString() public static méthode

public static getOptionString ( $options, string $concatenator = '=', string $arrayConcatenator = ',' ) : string
$options
$concatenator string
$arrayConcatenator string
Résultat string

getOptions() public static méthode

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

getPhpCli() public static méthode

public static getPhpCli ( ) : mixed
Résultat mixed

getSystemEnvironment() public static méthode

public static getSystemEnvironment ( ) : string
Résultat string "windows" or "unix"

getTimeoutBinary() public static méthode

public static getTimeoutBinary ( ) : boolean | string
Résultat boolean | string

runPhpScript() public static méthode

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

runPhpScriptInBackground() public static méthode

public static runPhpScriptInBackground ( $script, $arguments = "", $outputFile = null ) : string
$script
$arguments
$outputFile
Résultat string

setupComposer() protected static méthode

protected static setupComposer ( )

Property Details

$executableCache protected_oe static_oe property

protected static array $executableCache
Résultat array

$timeoutKillAfterSupport protected_oe static_oe property

protected static null|bool $timeoutKillAfterSupport
Résultat null | boolean