PHP Class N98\Magento\Command\Developer\Module\UpdateCommand

Inheritance: extends N98\Magento\Command\AbstractMagentoCommand
Afficher le fichier Open project: netz98/n98-magerun

Protected Properties

Свойство Type Description
$baseFolder string
$codePool string
$configNodes array
$moduleDirectory string
$moduleName string
$testMode boolean
$vendorNamespace string

Méthodes publiques

Méthode Description
getTestMode ( ) : boolean
setTestMode ( boolean $testMode )

Méthodes protégées

Méthode Description
addDefault ( SimpleXMLElement $simpleXml )
addEvent ( SimpleXMLElement $simpleXml, $area, $event )
addGlobalNode ( SimpleXMLElement $configXml, string $type, string $classSuffix )
addLayoutUpdate ( SimpleXMLElement $simpleXml, $area, $module )
addResourceModel ( SimpleXMLElement $simpleXml )
addResourceModelNodeIfConfirmed ( Symfony\Component\Console\Output\OutputInterface $output, SimpleXMLElement $configXml )
addRouter ( SimpleXMLElement $simpleXml, $area )
addTranslate ( SimpleXMLElement $simpleXml, $area, $module )
asPrettyXml ( string $string ) : string Formats given string as pretty xml
askDefaultOptions ( Symfony\Component\Console\Output\OutputInterface $output ) Asks for default node options
askEventsOptions ( Symfony\Component\Console\Output\OutputInterface $output ) Asks for events node options
askLayoutUpdatesOptions ( Symfony\Component\Console\Output\OutputInterface $output ) Asks for layout updates node options
askResourceModelOptions ( Symfony\Component\Console\Output\OutputInterface $output ) Asks for routers node options
askRoutersOptions ( Symfony\Component\Console\Output\OutputInterface $output ) Asks for routers node options
askTranslateOptions ( Symfony\Component\Console\Output\OutputInterface $output ) Asks for translate node options
configure ( )
determineModuleCodePool ( ) : string Find module codepool from module directory
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
getConfigXml ( ) : SimpleXMLElement Gets config XML
getCurrentConfigContent ( ) : string Returns current content of /etc/config.xml
getDialog ( ) : DialogHelper
getLowercaseModuleName ( ) : string
getLowercaseModuleNamespace ( ) : string
getModuleDir ( ) : string
getModuleNamespace ( ) : string Gets module namespace e.g. Company_Modulename
getOutFile ( ) : string
hasAddDefaultOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
hasAddEventsOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
hasAddLayoutUpdatesOptions ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
hasAddResourceModelOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
hasAddRoutersOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
hasAddTranslateOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
initArguments ( Symfony\Component\Console\Input\InputInterface $input )
initDefaultConfigNodes ( ) Initiates resource nodes specific values
initEventsConfigNodes ( ) Initiates events config nodes specific values
initLayoutUpdatesConfigNodes ( ) Initiates layout updates nodes specific values
initResourceModelConfigNodes ( ) Initiates resource nodes specific values
initRoutersConfigNodes ( ) Initiates routers config nodes specific values
initTranslateConfigNodes ( ) Initiates layout updates nodes specific values
putConfigXml ( SimpleXMLElement $configXml )
removeChildNodeIfNotNull ( $node, $child ) Removes a child node if not null.
setDefaultNode ( Symfony\Component\Console\Input\InputInterface $input, SimpleXMLElement $configXml )
setEventsNode ( Symfony\Component\Console\Input\InputInterface $input, SimpleXMLElement $configXml )
setGlobalNode ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, SimpleXMLElement $configXml ) Sets global xml config node
setLayoutUpdatesNode ( Symfony\Component\Console\Input\InputInterface $input, SimpleXMLElement $configXml )
setModuleDirectory ( string $moduleDir )
setResourceModelNode ( Symfony\Component\Console\Input\InputInterface $input, SimpleXMLElement $configXml )
setRoutersNode ( Symfony\Component\Console\Input\InputInterface $input, SimpleXMLElement $configXml )
setTranslateNode ( Symfony\Component\Console\Input\InputInterface $input, SimpleXMLElement $configXml )
setVersion ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, SimpleXMLElement $configXml )
shouldAddAll ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
shouldAddBlocks ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
shouldAddHelpers ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
shouldAddModels ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
shouldSetVersion ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
writeModuleConfig ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Writes module config file for given options

Method Details

addDefault() protected méthode

protected addDefault ( SimpleXMLElement $simpleXml )
$simpleXml SimpleXMLElement

addEvent() protected méthode

protected addEvent ( SimpleXMLElement $simpleXml, $area, $event )
$simpleXml SimpleXMLElement
$area
$event

addGlobalNode() protected méthode

protected addGlobalNode ( SimpleXMLElement $configXml, string $type, string $classSuffix )
$configXml SimpleXMLElement
$type string e.g. "blocks"
$classSuffix string e.g. "_Block"

addLayoutUpdate() protected méthode

protected addLayoutUpdate ( SimpleXMLElement $simpleXml, $area, $module )
$simpleXml SimpleXMLElement
$area
$module

addResourceModel() protected méthode

protected addResourceModel ( SimpleXMLElement $simpleXml )
$simpleXml SimpleXMLElement

addResourceModelNodeIfConfirmed() protected méthode

protected addResourceModelNodeIfConfirmed ( Symfony\Component\Console\Output\OutputInterface $output, SimpleXMLElement $configXml )
$output Symfony\Component\Console\Output\OutputInterface
$configXml SimpleXMLElement

addRouter() protected méthode

protected addRouter ( SimpleXMLElement $simpleXml, $area )
$simpleXml SimpleXMLElement
$area

addTranslate() protected méthode

protected addTranslate ( SimpleXMLElement $simpleXml, $area, $module )
$simpleXml SimpleXMLElement
$area
$module

asPrettyXml() protected méthode

Formats given string as pretty xml
protected asPrettyXml ( string $string ) : string
$string string
Résultat string

askDefaultOptions() protected méthode

Asks for default node options
protected askDefaultOptions ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

askEventsOptions() protected méthode

Asks for events node options
protected askEventsOptions ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

askLayoutUpdatesOptions() protected méthode

Asks for layout updates node options
protected askLayoutUpdatesOptions ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

askResourceModelOptions() protected méthode

Asks for routers node options
protected askResourceModelOptions ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

askRoutersOptions() protected méthode

Asks for routers node options
protected askRoutersOptions ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

askTranslateOptions() protected méthode

Asks for translate node options
protected askTranslateOptions ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

configure() protected méthode

protected configure ( )

determineModuleCodePool() protected méthode

Find module codepool from module directory
protected determineModuleCodePool ( ) : string
Résultat string

execute() protected méthode

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Résultat integer | void

getConfigXml() protected méthode

Gets config XML
protected getConfigXml ( ) : SimpleXMLElement
Résultat SimpleXMLElement

getCurrentConfigContent() protected méthode

Returns current content of /etc/config.xml
protected getCurrentConfigContent ( ) : string
Résultat string

getDialog() protected méthode

protected getDialog ( ) : DialogHelper
Résultat Symfony\Component\Console\Helper\DialogHelper

getLowercaseModuleName() protected méthode

protected getLowercaseModuleName ( ) : string
Résultat string

getLowercaseModuleNamespace() protected méthode

protected getLowercaseModuleNamespace ( ) : string
Résultat string

getModuleDir() protected méthode

protected getModuleDir ( ) : string
Résultat string

getModuleNamespace() protected méthode

Gets module namespace e.g. Company_Modulename
protected getModuleNamespace ( ) : string
Résultat string

getOutFile() protected méthode

protected getOutFile ( ) : string
Résultat string

getTestMode() public méthode

public getTestMode ( ) : boolean
Résultat boolean

hasAddDefaultOption() protected méthode

protected hasAddDefaultOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
Résultat mixed

hasAddEventsOption() protected méthode

protected hasAddEventsOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
Résultat mixed

hasAddLayoutUpdatesOptions() protected méthode

protected hasAddLayoutUpdatesOptions ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
Résultat mixed

hasAddResourceModelOption() protected méthode

protected hasAddResourceModelOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
Résultat mixed

hasAddRoutersOption() protected méthode

protected hasAddRoutersOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
Résultat mixed

hasAddTranslateOption() protected méthode

protected hasAddTranslateOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
Résultat mixed

initArguments() protected méthode

protected initArguments ( Symfony\Component\Console\Input\InputInterface $input )
$input Symfony\Component\Console\Input\InputInterface

initDefaultConfigNodes() protected méthode

Initiates resource nodes specific values
protected initDefaultConfigNodes ( )

initEventsConfigNodes() protected méthode

Initiates events config nodes specific values
protected initEventsConfigNodes ( )

initLayoutUpdatesConfigNodes() protected méthode

Initiates layout updates nodes specific values

initResourceModelConfigNodes() protected méthode

Initiates resource nodes specific values

initRoutersConfigNodes() protected méthode

Initiates routers config nodes specific values
protected initRoutersConfigNodes ( )

initTranslateConfigNodes() protected méthode

Initiates layout updates nodes specific values
protected initTranslateConfigNodes ( )

putConfigXml() protected méthode

protected putConfigXml ( SimpleXMLElement $configXml )
$configXml SimpleXMLElement

removeChildNodeIfNotNull() protected méthode

Deals with duplications of nodes when already in config
protected removeChildNodeIfNotNull ( $node, $child )
$node
$child

setDefaultNode() protected méthode

protected setDefaultNode ( Symfony\Component\Console\Input\InputInterface $input, SimpleXMLElement $configXml )
$input Symfony\Component\Console\Input\InputInterface
$configXml SimpleXMLElement

setEventsNode() protected méthode

protected setEventsNode ( Symfony\Component\Console\Input\InputInterface $input, SimpleXMLElement $configXml )
$input Symfony\Component\Console\Input\InputInterface
$configXml SimpleXMLElement

setGlobalNode() protected méthode

Sets global xml config node
protected setGlobalNode ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, SimpleXMLElement $configXml )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$configXml SimpleXMLElement

setLayoutUpdatesNode() protected méthode

protected setLayoutUpdatesNode ( Symfony\Component\Console\Input\InputInterface $input, SimpleXMLElement $configXml )
$input Symfony\Component\Console\Input\InputInterface
$configXml SimpleXMLElement

setModuleDirectory() protected méthode

protected setModuleDirectory ( string $moduleDir )
$moduleDir string

setResourceModelNode() protected méthode

protected setResourceModelNode ( Symfony\Component\Console\Input\InputInterface $input, SimpleXMLElement $configXml )
$input Symfony\Component\Console\Input\InputInterface
$configXml SimpleXMLElement

setRoutersNode() protected méthode

protected setRoutersNode ( Symfony\Component\Console\Input\InputInterface $input, SimpleXMLElement $configXml )
$input Symfony\Component\Console\Input\InputInterface
$configXml SimpleXMLElement

setTestMode() public méthode

public setTestMode ( boolean $testMode )
$testMode boolean

setTranslateNode() protected méthode

protected setTranslateNode ( Symfony\Component\Console\Input\InputInterface $input, SimpleXMLElement $configXml )
$input Symfony\Component\Console\Input\InputInterface
$configXml SimpleXMLElement

setVersion() protected méthode

protected setVersion ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, SimpleXMLElement $configXml )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$configXml SimpleXMLElement

shouldAddAll() protected méthode

protected shouldAddAll ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
Résultat mixed

shouldAddBlocks() protected méthode

protected shouldAddBlocks ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
Résultat mixed

shouldAddHelpers() protected méthode

protected shouldAddHelpers ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
Résultat mixed

shouldAddModels() protected méthode

protected shouldAddModels ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
Résultat mixed

shouldSetVersion() protected méthode

protected shouldSetVersion ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
Résultat mixed

writeModuleConfig() protected méthode

Writes module config file for given options
protected writeModuleConfig ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

Property Details

$baseFolder protected_oe property

protected string $baseFolder
Résultat string

$codePool protected_oe property

protected string $codePool
Résultat string

$configNodes protected_oe property

protected array $configNodes
Résultat array

$moduleDirectory protected_oe property

protected string $moduleDirectory
Résultat string

$moduleName protected_oe property

protected string $moduleName
Résultat string

$testMode protected_oe property

protected bool $testMode
Résultat boolean

$vendorNamespace protected_oe property

protected string $vendorNamespace
Résultat string