PHP Class N98\Magento\Command\Database\AbstractShowCommand

Inheritance: extends AbstractDatabaseCommand
Afficher le fichier Open project: netz98/n98-magerun Class Usage Examples

Protected Properties

Свойство 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

Méthodes protégées

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

abstract protected allowRounding ( string $name ) : boolean
$name string
Résultat boolean

configure() protected méthode

protected configure ( )

execute() protected méthode

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
Résultat void

formatDesc() protected méthode

Formats the description
protected formatDesc ( string $desc ) : string
$desc string
Résultat string

formatVariables() protected méthode

protected formatVariables ( array $vars ) : array
$vars array
Résultat array

generateRows() protected méthode

protected generateRows ( array $outputVars, boolean $hasDescription ) : array
$outputVars array
$hasDescription boolean
Résultat array

getMaxValueWidth() protected méthode

protected getMaxValueWidth ( array $vars ) : integer
$vars array
Résultat integer

getVariableDescription() protected méthode

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

initVariables() protected méthode

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

renderTable() protected méthode

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

Property Details

$_allVariables protected_oe property

Contains all variables
protected array $_allVariables
Résultat array

$_importantVars protected_oe property

protected array $_importantVars
Résultat array

$_input protected_oe property

protected InputInterface,Symfony\Component\Console\Input $_input
Résultat Symfony\Component\Console\Input\InputInterface

$_output protected_oe property

protected OutputInterface,Symfony\Component\Console\Output $_output
Résultat Symfony\Component\Console\Output\OutputInterface

$_specialFormat protected_oe property

Key = variable name => value method name in this class
protected array $_specialFormat
Résultat array

$showMethod protected_oe property

protected $showMethod