PHP Interface N98\Magento\Command\Database\Compressor\Compressor

Show file Open project: netz98/n98-magerun Interface Usage Examples

Public Methods

Method Description
getCompressingCommand ( string $command, boolean $pipe = true ) : string Returns the command line for compressing the dump file.
getDecompressingCommand ( string $command, string $fileName, boolean $pipe = true ) : string Returns the command line for decompressing the dump file.
getFileName ( string $fileName, boolean $pipe = true ) : string Returns the file name for the compressed dump file.

Method Details

getCompressingCommand() public method

Returns the command line for compressing the dump file.
public getCompressingCommand ( string $command, boolean $pipe = true ) : string
$command string
$pipe boolean
return string

getDecompressingCommand() public method

Returns the command line for decompressing the dump file.
public getDecompressingCommand ( string $command, string $fileName, boolean $pipe = true ) : string
$command string MySQL client tool connection string
$fileName string Filename (shell argument escaped)
$pipe boolean
return string

getFileName() public method

Returns the file name for the compressed dump file.
public getFileName ( string $fileName, boolean $pipe = true ) : string
$fileName string
$pipe boolean
return string