PHP Class N98\Magento\Command\AbstractMagentoStoreConfigCommand

Inheritance: extends AbstractMagentoCommand
Afficher le fichier Open project: netz98/n98-magerun

Protected Properties

Свойство Type Description
$commandDescription string
$commandName string
$configPath string
$falseName string
$scope string
$toggleComment string
$trueName string
$withAdminStore boolean Add admin store to interactive prompt

Méthodes protégées

Méthode Description
_afterSave ( Mage_Core_Model_Store $store, boolean $disabled )
_beforeSave ( Mage_Core_Model_Store $store, boolean $disabled )
_initStore ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : mixed
askAndSetDeveloperIp ( Symfony\Component\Console\Output\OutputInterface $output, Mage_Core_Model_Store $store, string | null $devRestriction ) : void Ask if the developer IP should be changed, and change it if required
configure ( )
detectAskAndSetDeveloperIp ( Mage_Core_Model_Store $store, boolean $enabled ) : void Determine if a developer restriction is in place, and if we're enabling something that will use it then notify and ask if it needs to be changed from its current value.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
setDeveloperIp ( Mage_Core_Model_Store $store, string $newDeveloperIp ) Set the restricted IP for developer access

Method Details

_afterSave() protected méthode

protected _afterSave ( Mage_Core_Model_Store $store, boolean $disabled )
$store Mage_Core_Model_Store
$disabled boolean

_beforeSave() protected méthode

protected _beforeSave ( Mage_Core_Model_Store $store, boolean $disabled )
$store Mage_Core_Model_Store
$disabled boolean

_initStore() protected méthode

protected _initStore ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : mixed
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Résultat mixed

askAndSetDeveloperIp() protected méthode

Ask if the developer IP should be changed, and change it if required
protected askAndSetDeveloperIp ( Symfony\Component\Console\Output\OutputInterface $output, Mage_Core_Model_Store $store, string | null $devRestriction ) : void
$output Symfony\Component\Console\Output\OutputInterface
$store Mage_Core_Model_Store
$devRestriction string | null
Résultat void

configure() protected méthode

protected configure ( )

detectAskAndSetDeveloperIp() protected méthode

Determine if a developer restriction is in place, and if we're enabling something that will use it then notify and ask if it needs to be changed from its current value.
protected detectAskAndSetDeveloperIp ( Mage_Core_Model_Store $store, boolean $enabled ) : void
$store Mage_Core_Model_Store
$enabled boolean
Résultat void

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

setDeveloperIp() protected méthode

Set the restricted IP for developer access
protected setDeveloperIp ( Mage_Core_Model_Store $store, string $newDeveloperIp )
$store Mage_Core_Model_Store
$newDeveloperIp string

Property Details

$commandDescription protected_oe property

protected string $commandDescription
Résultat string

$commandName protected_oe property

protected string $commandName
Résultat string

$configPath protected_oe property

protected string $configPath
Résultat string

$falseName protected_oe property

protected string $falseName
Résultat string

$scope protected_oe property

protected string $scope
Résultat string

$toggleComment protected_oe property

protected string $toggleComment
Résultat string

$trueName protected_oe property

protected string $trueName
Résultat string

$withAdminStore protected_oe property

Add admin store to interactive prompt
protected bool $withAdminStore
Résultat boolean