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

Inheritance: extends N98\Magento\Command\AbstractMagentoCommand
Datei anzeigen Open project: netz98/n98-magerun

Protected Properties

Property Type Description
$baseFolder string
$codePool string
$configNodes array
$moduleDirectory string
$moduleName string
$testMode boolean
$vendorNamespace string

Public Methods

Method Description
getTestMode ( ) : boolean
setTestMode ( boolean $testMode )

Protected Methods

Method 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 method

protected addDefault ( SimpleXMLElement $simpleXml )
$simpleXml SimpleXMLElement

addEvent() protected method

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

addGlobalNode() protected method

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

addLayoutUpdate() protected method

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

addResourceModel() protected method

protected addResourceModel ( SimpleXMLElement $simpleXml )
$simpleXml SimpleXMLElement

addResourceModelNodeIfConfirmed() protected method

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

addRouter() protected method

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

addTranslate() protected method

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

asPrettyXml() protected method

Formats given string as pretty xml
protected asPrettyXml ( string $string ) : string
$string string
return string

askDefaultOptions() protected method

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

askEventsOptions() protected method

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

askLayoutUpdatesOptions() protected method

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

askResourceModelOptions() protected method

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

askRoutersOptions() protected method

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

askTranslateOptions() protected method

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

configure() protected method

protected configure ( )

determineModuleCodePool() protected method

Find module codepool from module directory
protected determineModuleCodePool ( ) : string
return string

execute() protected method

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
return integer | void

getConfigXml() protected method

Gets config XML
protected getConfigXml ( ) : SimpleXMLElement
return SimpleXMLElement

getCurrentConfigContent() protected method

Returns current content of /etc/config.xml
protected getCurrentConfigContent ( ) : string
return string

getDialog() protected method

protected getDialog ( ) : DialogHelper
return Symfony\Component\Console\Helper\DialogHelper

getLowercaseModuleName() protected method

protected getLowercaseModuleName ( ) : string
return string

getLowercaseModuleNamespace() protected method

protected getLowercaseModuleNamespace ( ) : string
return string

getModuleDir() protected method

protected getModuleDir ( ) : string
return string

getModuleNamespace() protected method

Gets module namespace e.g. Company_Modulename
protected getModuleNamespace ( ) : string
return string

getOutFile() protected method

protected getOutFile ( ) : string
return string

getTestMode() public method

public getTestMode ( ) : boolean
return boolean

hasAddDefaultOption() protected method

protected hasAddDefaultOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
return mixed

hasAddEventsOption() protected method

protected hasAddEventsOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
return mixed

hasAddLayoutUpdatesOptions() protected method

protected hasAddLayoutUpdatesOptions ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
return mixed

hasAddResourceModelOption() protected method

protected hasAddResourceModelOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
return mixed

hasAddRoutersOption() protected method

protected hasAddRoutersOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
return mixed

hasAddTranslateOption() protected method

protected hasAddTranslateOption ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
return mixed

initArguments() protected method

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

initDefaultConfigNodes() protected method

Initiates resource nodes specific values
protected initDefaultConfigNodes ( )

initEventsConfigNodes() protected method

Initiates events config nodes specific values
protected initEventsConfigNodes ( )

initLayoutUpdatesConfigNodes() protected method

Initiates layout updates nodes specific values

initResourceModelConfigNodes() protected method

Initiates resource nodes specific values

initRoutersConfigNodes() protected method

Initiates routers config nodes specific values
protected initRoutersConfigNodes ( )

initTranslateConfigNodes() protected method

Initiates layout updates nodes specific values
protected initTranslateConfigNodes ( )

putConfigXml() protected method

protected putConfigXml ( SimpleXMLElement $configXml )
$configXml SimpleXMLElement

removeChildNodeIfNotNull() protected method

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

setDefaultNode() protected method

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

setEventsNode() protected method

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

setGlobalNode() protected method

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 method

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

setModuleDirectory() protected method

protected setModuleDirectory ( string $moduleDir )
$moduleDir string

setResourceModelNode() protected method

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

setRoutersNode() protected method

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

setTestMode() public method

public setTestMode ( boolean $testMode )
$testMode boolean

setTranslateNode() protected method

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

setVersion() protected method

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 method

protected shouldAddAll ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
return mixed

shouldAddBlocks() protected method

protected shouldAddBlocks ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
return mixed

shouldAddHelpers() protected method

protected shouldAddHelpers ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
return mixed

shouldAddModels() protected method

protected shouldAddModels ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
return mixed

shouldSetVersion() protected method

protected shouldSetVersion ( Symfony\Component\Console\Input\InputInterface $input ) : mixed
$input Symfony\Component\Console\Input\InputInterface
return mixed

writeModuleConfig() protected method

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
return string

$codePool protected_oe property

protected string $codePool
return string

$configNodes protected_oe property

protected array $configNodes
return array

$moduleDirectory protected_oe property

protected string $moduleDirectory
return string

$moduleName protected_oe property

protected string $moduleName
return string

$testMode protected_oe property

protected bool $testMode
return boolean

$vendorNamespace protected_oe property

protected string $vendorNamespace
return string