PHP Class N98\Magento\Command\System\Setup\IncrementalCommand

Inheritance: extends N98\Magento\Command\AbstractMagentoCommand
Show file Open project: netz98/n98-magerun

Protected Properties

Property Type Description
$_config array
$_eventStash
$_input Symfony\Component\Console\Input\InputInterface
$_output Symfony\Component\Console\Output\OutputInterface
$_secondConfig mixed Loaded to avoid grabbing the cached version, and so we still have all our original information when we destroy the real configuration

Protected Methods

Method Description
_analyzeSetupResourceClasses ( ) : array
_callProtectedMethodFromObject ( string $method, object $object, array $args = [] ) : mixed
_checkCacheSettings ( ) : boolean
_getAllSetupResourceObjectThatNeedUpdates ( boolean | array $setupResources = false ) : array
_getAllSetupResourceObjects ( ) : array
_getAvaiableDataFilesFromResource ( Mage_Core_Model_Resource_Setup $setupResource, array $args = [] ) : array | mixed
_getAvaiableDbFilesFromResource ( Mage_Core_Model_Resource_Setup $setupResource, array $args = [] ) : array | mixed
_getConfiguredVersionFromResourceObject ( Object $object ) : mixed
_getDbDataVersionFromName ( string $name ) : string
_getDbVersionFromName ( string $name ) : string
_getProtectedPropertyFromObject ( string $property, object $object ) : mixed
_getResource ( ) : Mage_Core_Model_Resource
_getTestedVersions ( ) : array
_init ( ) : boolean
_listDetailedUpdateInformation ( array $needsUpdate )
_loadSecondConfig ( )
_log ( string $message )
_outputFileArray ( array $files )
_outputUpdateInformation ( array $needsUpdate )
_processExceptionDuringUpdate ( Exceptio\Exception $e, string $name, string $magentoExceptionOutput )
_restoreEventContext ( )
_runAllStructureUpdates ( array $needsUpdate )
_runNamedSetupResource ( string $name, array $needsUpdate, string $type ) Runs a single named setup resource
_runStructureOrDataScripts ( string $toUpdate, array $needsUpdate, string $type )
_setInput ( Symfony\Component\Console\Input\InputInterface $input )
_setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
_setProtectedPropertyFromObjectToValue ( string $property, object $object, mixed $value )
_stashEventContext ( )
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void

Method Details

_analyzeSetupResourceClasses() protected method

protected _analyzeSetupResourceClasses ( ) : array
return array

_callProtectedMethodFromObject() protected method

protected _callProtectedMethodFromObject ( string $method, object $object, array $args = [] ) : mixed
$method string
$object object
$args array
return mixed

_checkCacheSettings() protected method

protected _checkCacheSettings ( ) : boolean
return boolean

_getAllSetupResourceObjectThatNeedUpdates() protected method

protected _getAllSetupResourceObjectThatNeedUpdates ( boolean | array $setupResources = false ) : array
$setupResources boolean | array
return array

_getAllSetupResourceObjects() protected method

protected _getAllSetupResourceObjects ( ) : array
return array

_getAvaiableDataFilesFromResource() protected method

protected _getAvaiableDataFilesFromResource ( Mage_Core_Model_Resource_Setup $setupResource, array $args = [] ) : array | mixed
$setupResource Mage_Core_Model_Resource_Setup
$args array
return array | mixed

_getAvaiableDbFilesFromResource() protected method

protected _getAvaiableDbFilesFromResource ( Mage_Core_Model_Resource_Setup $setupResource, array $args = [] ) : array | mixed
$setupResource Mage_Core_Model_Resource_Setup
$args array
return array | mixed

_getConfiguredVersionFromResourceObject() protected method

protected _getConfiguredVersionFromResourceObject ( Object $object ) : mixed
$object Object
return mixed

_getDbDataVersionFromName() protected method

protected _getDbDataVersionFromName ( string $name ) : string
$name string
return string

_getDbVersionFromName() protected method

protected _getDbVersionFromName ( string $name ) : string
$name string
return string

_getProtectedPropertyFromObject() protected method

protected _getProtectedPropertyFromObject ( string $property, object $object ) : mixed
$property string
$object object
return mixed

_getResource() protected method

protected _getResource ( ) : Mage_Core_Model_Resource
return Mage_Core_Model_Resource

_getTestedVersions() protected method

protected _getTestedVersions ( ) : array
return array

_init() protected method

protected _init ( ) : boolean
return boolean

_listDetailedUpdateInformation() protected method

protected _listDetailedUpdateInformation ( array $needsUpdate )
$needsUpdate array

_loadSecondConfig() protected method

protected _loadSecondConfig ( )

_log() protected method

protected _log ( string $message )
$message string

_outputFileArray() protected method

protected _outputFileArray ( array $files )
$files array

_outputUpdateInformation() protected method

protected _outputUpdateInformation ( array $needsUpdate )
$needsUpdate array

_processExceptionDuringUpdate() protected method

protected _processExceptionDuringUpdate ( Exceptio\Exception $e, string $name, string $magentoExceptionOutput )
$e Exceptio\Exception
$name string
$magentoExceptionOutput string

_restoreEventContext() protected method

protected _restoreEventContext ( )

_runAllStructureUpdates() protected method

protected _runAllStructureUpdates ( array $needsUpdate )
$needsUpdate array

_runNamedSetupResource() protected method

This method nukes the global/resources node in the global config and then repopulates it with **only** the $name resource. Then it calls the standard Magento applyAllUpdates method. The benefit of this approach is we don't need to recreate the entire setup resource running logic ourselves. Yay for code reuse The downside is we should probably exit quickly, as anything else that uses the global/resources node is going to behave weird.
protected _runNamedSetupResource ( string $name, array $needsUpdate, string $type )
$name string
$needsUpdate array
$type string

_runStructureOrDataScripts() protected method

protected _runStructureOrDataScripts ( string $toUpdate, array $needsUpdate, string $type )
$toUpdate string
$needsUpdate array
$type string

_setInput() protected method

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

_setOutput() protected method

protected _setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

_setProtectedPropertyFromObjectToValue() protected method

protected _setProtectedPropertyFromObjectToValue ( string $property, object $object, mixed $value )
$property string
$object object
$value mixed

_stashEventContext() protected method

protected _stashEventContext ( )

configure() protected method

protected configure ( )

execute() protected method

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

Property Details

$_config protected property

protected array $_config
return array

$_eventStash protected property

protected $_eventStash

$_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

$_secondConfig protected property

Loaded to avoid grabbing the cached version, and so we still have all our original information when we destroy the real configuration
protected mixed $_secondConfig
return mixed