PHP Class N98\Magento\Command\Database\AbstractShowCommand

Inheritance: extends AbstractDatabaseCommand
Show file Open project: netz98/n98-magerun Class Usage Examples

Protected Properties

Property Type Description
$_allVariables array Contains all variables
$_importantVars array
$_input Symfony\Component\Console\Input\InputInterface
$_output Symfony\Component\Console\Output\OutputInterface
$_specialFormat array Key = variable name => value method name in this class
$showMethod

Protected Methods

Method Description
allowRounding ( string $name ) : boolean
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : void
formatDesc ( string $desc ) : string Formats the description
formatVariables ( array $vars ) : array
generateRows ( array $outputVars, boolean $hasDescription ) : array
getMaxValueWidth ( array $vars ) : integer
getVariableDescription ( array $row ) : array Extend or modify this method to add descriptions to other variables
initVariables ( string | null $variable = null )
renderTable ( array $header, array $rows )

Method Details

allowRounding() abstract protected method

abstract protected allowRounding ( string $name ) : boolean
$name string
return boolean

configure() protected method

protected configure ( )

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return void

formatDesc() protected method

Formats the description
protected formatDesc ( string $desc ) : string
$desc string
return string

formatVariables() protected method

protected formatVariables ( array $vars ) : array
$vars array
return array

generateRows() protected method

protected generateRows ( array $outputVars, boolean $hasDescription ) : array
$outputVars array
$hasDescription boolean
return array

getMaxValueWidth() protected method

protected getMaxValueWidth ( array $vars ) : integer
$vars array
return integer

getVariableDescription() protected method

Extend or modify this method to add descriptions to other variables
protected getVariableDescription ( array $row ) : array
$row array
return array

initVariables() protected method

protected initVariables ( string | null $variable = null )
$variable string | null

renderTable() protected method

protected renderTable ( array $header, array $rows )
$header array
$rows array

Property Details

$_allVariables protected property

Contains all variables
protected array $_allVariables
return array

$_importantVars protected property

protected array $_importantVars
return array

$_input protected property

protected InputInterface,Symfony\Component\Console\Input $_input
return Symfony\Component\Console\Input\InputInterface

$_output protected property

protected OutputInterface,Symfony\Component\Console\Output $_output
return Symfony\Component\Console\Output\OutputInterface

$_specialFormat protected property

Key = variable name => value method name in this class
protected array $_specialFormat
return array

$showMethod protected property

protected $showMethod