-
-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Fabrizio Balliano <fabrizio.balliano@gmail.com>
- Loading branch information
1 parent
8257ad9
commit ce254ce
Showing
8 changed files
with
322 additions
and
4 deletions.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
app/code/core/Mage/Adminhtml/controllers/Customer/Address/AttributeController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
/** | ||
* OpenMage | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to license@magento.com so we can send you a copy immediately. | ||
* | ||
* @category Mage | ||
* @package Mage_Adminhtml | ||
* @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
|
||
require_once 'Mage/Eav/controllers/Adminhtml/Attribute/AbstractController.php'; | ||
|
||
/** | ||
* Customer address attribute controller | ||
* | ||
* @category Mage | ||
* @package Mage_Adminhtml | ||
* @author Magento Core Team <core@magentocommerce.com> | ||
*/ | ||
|
||
class Mage_Adminhtml_Customer_Address_AttributeController extends Mage_Eav_Adminhtml_Attribute_AbstractController | ||
{ | ||
/** | ||
* Additional initialization | ||
* | ||
*/ | ||
protected function _construct() | ||
{ | ||
$this->_entityCode = Mage_Customer_Model_Address::ENTITY; | ||
} | ||
|
||
protected function _initAction() | ||
{ | ||
parent::_initAction(); | ||
|
||
$this->_title($this->__('Customers')) | ||
->_title($this->__('Attributes')) | ||
->_title($this->__('Manage Customer Address Attributes')); | ||
|
||
$this->_setActiveMenu('customer/attributes') | ||
->_addBreadcrumb( | ||
$this->__('Customers'), | ||
$this->__('Customers') | ||
) | ||
->_addBreadcrumb( | ||
$this->__('Manage Customer Address Attributes'), | ||
$this->__('Manage Customer Address Attributes') | ||
); | ||
|
||
return $this; | ||
} | ||
|
||
protected function _isAllowed() | ||
{ | ||
return Mage::getSingleton('admin/session')->isAllowed('customer/attributes/customer_address_attributes'); | ||
} | ||
|
||
} |
68 changes: 68 additions & 0 deletions
68
app/code/core/Mage/Adminhtml/controllers/Customer/Address/SetController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
/** | ||
* OpenMage | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to license@magento.com so we can send you a copy immediately. | ||
* | ||
* @category Mage | ||
* @package Mage_Adminhtml | ||
* @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
|
||
require_once 'Mage/Eav/controllers/Adminhtml/Set/AbstractController.php'; | ||
|
||
/** | ||
* Customer address attribute sets controller | ||
* | ||
* @category Mage | ||
* @package Mage_Adminhtml | ||
* @author Magento Core Team <core@magentocommerce.com> | ||
*/ | ||
|
||
class Mage_Adminhtml_Customer_Address_SetController extends Mage_Eav_Adminhtml_Set_AbstractController | ||
{ | ||
/** | ||
* Additional initialization | ||
* | ||
*/ | ||
protected function _construct() | ||
{ | ||
$this->_entityCode = Mage_Customer_Model_Address::ENTITY; | ||
} | ||
|
||
protected function _initAction() | ||
{ | ||
parent::_initAction(); | ||
|
||
$this->_title($this->__('Customers')) | ||
->_title($this->__('Attributes')) | ||
->_title($this->__('Manage Customer Address Attribute Sets')); | ||
|
||
$this->_setActiveMenu('customer/attributes') | ||
->_addBreadcrumb( | ||
$this->__('Customers'), | ||
$this->__('Customers') | ||
) | ||
->_addBreadcrumb( | ||
$this->__('Manage Customer Address Attribute Sets'), | ||
$this->__('Manage Customer Address Attribute Sets') | ||
); | ||
|
||
return $this; | ||
} | ||
|
||
protected function _isAllowed() | ||
{ | ||
return Mage::getSingleton('admin/session')->isAllowed('customer/attributes/customer_address_sets'); | ||
} | ||
|
||
} |
68 changes: 68 additions & 0 deletions
68
app/code/core/Mage/Adminhtml/controllers/Customer/AttributeController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
/** | ||
* OpenMage | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to license@magento.com so we can send you a copy immediately. | ||
* | ||
* @category Mage | ||
* @package Mage_Adminhtml | ||
* @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
|
||
require_once 'Mage/Eav/controllers/Adminhtml/Attribute/AbstractController.php'; | ||
|
||
/** | ||
* Customer attribute controller | ||
* | ||
* @category Mage | ||
* @package Mage_Adminhtml | ||
* @author Magento Core Team <core@magentocommerce.com> | ||
*/ | ||
|
||
class Mage_Adminhtml_Customer_AttributeController extends Mage_Eav_Adminhtml_Attribute_AbstractController | ||
{ | ||
/** | ||
* Additional initialization | ||
* | ||
*/ | ||
protected function _construct() | ||
{ | ||
$this->_entityCode = Mage_Customer_Model_Customer::ENTITY; | ||
} | ||
|
||
protected function _initAction() | ||
{ | ||
parent::_initAction(); | ||
|
||
$this->_title($this->__('Customers')) | ||
->_title($this->__('Attributes')) | ||
->_title($this->__('Manage Customer Attributes')); | ||
|
||
$this->_setActiveMenu('customer/attributes') | ||
->_addBreadcrumb( | ||
$this->__('Customers'), | ||
$this->__('Customers') | ||
) | ||
->_addBreadcrumb( | ||
$this->__('Manage Customer Attributes'), | ||
$this->__('Manage Customer Attributes') | ||
); | ||
|
||
return $this; | ||
} | ||
|
||
protected function _isAllowed() | ||
{ | ||
return Mage::getSingleton('admin/session')->isAllowed('customer/attributes/customer_attributes'); | ||
} | ||
|
||
} |
68 changes: 68 additions & 0 deletions
68
app/code/core/Mage/Adminhtml/controllers/Customer/SetController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
/** | ||
* OpenMage | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to license@magento.com so we can send you a copy immediately. | ||
* | ||
* @category Mage | ||
* @package Mage_Adminhtml | ||
* @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
|
||
require_once 'Mage/Eav/controllers/Adminhtml/Set/AbstractController.php'; | ||
|
||
/** | ||
* Customer attribute sets controller | ||
* | ||
* @category Mage | ||
* @package Mage_Adminhtml | ||
* @author Magento Core Team <core@magentocommerce.com> | ||
*/ | ||
|
||
class Mage_Adminhtml_Customer_SetController extends Mage_Eav_Adminhtml_Set_AbstractController | ||
{ | ||
/** | ||
* Additional initialization | ||
* | ||
*/ | ||
protected function _construct() | ||
{ | ||
$this->_entityCode = Mage_Customer_Model_Customer::ENTITY; | ||
} | ||
|
||
protected function _initAction() | ||
{ | ||
parent::_initAction(); | ||
|
||
$this->_title($this->__('Customers')) | ||
->_title($this->__('Attributes')) | ||
->_title($this->__('Manage Customer Attribute Sets')); | ||
|
||
$this->_setActiveMenu('customer/attributes') | ||
->_addBreadcrumb( | ||
$this->__('Customers'), | ||
$this->__('Customers') | ||
) | ||
->_addBreadcrumb( | ||
$this->__('Manage Customer Attribute Sets'), | ||
$this->__('Manage Customer Attribute Sets') | ||
); | ||
|
||
return $this; | ||
} | ||
|
||
protected function _isAllowed() | ||
{ | ||
return Mage::getSingleton('admin/session')->isAllowed('customer/attributes/customer_sets'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters