| @@ 7-51 (lines=45) @@ | ||
| 4 | ||
| 5 | use N98\Magento\Command\AbstractMagentoStoreConfigCommand; |
|
| 6 | ||
| 7 | class TemplateHintsBlocksCommand extends AbstractMagentoStoreConfigCommand |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var string |
|
| 11 | */ |
|
| 12 | protected $commandName = 'dev:template-hints-blocks'; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var string |
|
| 16 | */ |
|
| 17 | protected $commandDescription = 'Toggles template hints block names'; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * @var string |
|
| 21 | */ |
|
| 22 | protected $configPath = 'dev/debug/template_hints_blocks'; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * @var string |
|
| 26 | */ |
|
| 27 | protected $toggleComment = 'Template Hints Blocks'; |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @var string |
|
| 31 | */ |
|
| 32 | protected $scope = self::SCOPE_STORE_VIEW; |
|
| 33 | ||
| 34 | /** |
|
| 35 | * Add admin store to interactive prompt |
|
| 36 | * |
|
| 37 | * @var bool |
|
| 38 | */ |
|
| 39 | protected $withAdminStore = true; |
|
| 40 | ||
| 41 | /** |
|
| 42 | * If required, handle the output and possible change of the developer IP restrictions |
|
| 43 | * |
|
| 44 | * @param \Mage_Core_Model_Store $store |
|
| 45 | * @param bool $disabled |
|
| 46 | */ |
|
| 47 | protected function _afterSave(\Mage_Core_Model_Store $store, $disabled) |
|
| 48 | { |
|
| 49 | $this->detectAskAndSetDeveloperIp($store, $disabled); |
|
| 50 | } |
|
| 51 | } |
|
| 52 | ||
| @@ 7-51 (lines=45) @@ | ||
| 4 | ||
| 5 | use N98\Magento\Command\AbstractMagentoStoreConfigCommand; |
|
| 6 | ||
| 7 | class TemplateHintsCommand extends AbstractMagentoStoreConfigCommand |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var string |
|
| 11 | */ |
|
| 12 | protected $commandName = 'dev:template-hints'; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var string |
|
| 16 | */ |
|
| 17 | protected $commandDescription = 'Toggles template hints'; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * @var string |
|
| 21 | */ |
|
| 22 | protected $toggleComment = 'Template Hints'; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * @var string |
|
| 26 | */ |
|
| 27 | protected $configPath = 'dev/debug/template_hints'; |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @var string |
|
| 31 | */ |
|
| 32 | protected $scope = self::SCOPE_STORE_VIEW; |
|
| 33 | ||
| 34 | /** |
|
| 35 | * Add admin store to interactive prompt |
|
| 36 | * |
|
| 37 | * @var bool |
|
| 38 | */ |
|
| 39 | protected $withAdminStore = true; |
|
| 40 | ||
| 41 | /** |
|
| 42 | * If required, handle the output and possible change of the developer IP restrictions |
|
| 43 | * |
|
| 44 | * @param \Mage_Core_Model_Store $store |
|
| 45 | * @param bool $disabled |
|
| 46 | */ |
|
| 47 | protected function _afterSave(\Mage_Core_Model_Store $store, $disabled) |
|
| 48 | { |
|
| 49 | $this->detectAskAndSetDeveloperIp($store, $disabled); |
|
| 50 | } |
|
| 51 | } |
|
| 52 | ||