PHP Класс Pimcore\Tool\Console

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$executableCache array
$timeoutKillAfterSupport null | boolean

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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 ( )

Описание методов

buildPhpScriptCmd() защищенный статический Метод

protected static buildPhpScriptCmd ( $script, $arguments ) : string
$script
$arguments
Результат string

checkCjpeg() защищенный статический Метод

protected static checkCjpeg ( $process ) : boolean
$process
Результат boolean

checkCliExecution() публичный статический Метод

public static checkCliExecution ( )

checkComposite() защищенный статический Метод

protected static checkComposite ( $process ) : boolean
$process
Результат boolean

checkConvert() защищенный статический Метод

protected static checkConvert ( $process ) : boolean
$process
Результат boolean

checkDummy() защищенный статический Метод

protected static checkDummy ( $process ) : boolean
$process
Результат boolean

checkExecutingUser() публичный статический Метод

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

checkPngout() защищенный статический Метод

protected static checkPngout ( $process ) : boolean
$process
Результат boolean

exec() публичный статический Метод

public static exec ( $cmd, null $outputFile = null, null $timeout = null ) : string
$cmd
$outputFile null
$timeout null
Результат string

execInBackground() публичный статический Метод

public static execInBackground ( string $cmd, null | string $outputFile = null ) : integer
$cmd string
$outputFile null | string
Результат integer

execInBackgroundUnix() защищенный статический Метод

protected static execInBackgroundUnix ( string $cmd, string $outputFile ) : integer
$cmd string
$outputFile string
Результат integer

execInBackgroundWindows() защищенный статический Метод

protected static execInBackgroundWindows ( string $cmd, string $outputFile ) : integer
$cmd string
$outputFile string
Результат integer

getExecutable() публичный статический Метод

public static getExecutable ( $name, boolean $throwException = false ) : boolean | mixed | string
$name
$throwException boolean
Результат boolean | mixed | string

getOptionString() публичный статический Метод

public static getOptionString ( $options, string $concatenator = '=', string $arrayConcatenator = ',' ) : string
$options
$concatenator string
$arrayConcatenator string
Результат string

getOptions() публичный статический Метод

Returns a hash with all options passed to a cli script
public static getOptions ( $onlyFullNotationArgs = false ) : array
Результат array

getPhpCli() публичный статический Метод

public static getPhpCli ( ) : mixed
Результат mixed

getSystemEnvironment() публичный статический Метод

public static getSystemEnvironment ( ) : string
Результат string "windows" or "unix"

getTimeoutBinary() публичный статический Метод

public static getTimeoutBinary ( ) : boolean | string
Результат boolean | string

runPhpScript() публичный статический Метод

public static runPhpScript ( $script, $arguments = "", $outputFile = null, $timeout = null ) : string
$script
$arguments
$outputFile
$timeout
Результат string

runPhpScriptInBackground() публичный статический Метод

public static runPhpScriptInBackground ( $script, $arguments = "", $outputFile = null ) : string
$script
$arguments
$outputFile
Результат string

setupComposer() защищенный статический Метод

protected static setupComposer ( )

Описание свойств

$executableCache защищенное статическое свойство

protected static array $executableCache
Результат array

$timeoutKillAfterSupport защищенное статическое свойство

protected static null|bool $timeoutKillAfterSupport
Результат null | boolean