Catalog.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Catalog\Helper;
  7. /**
  8. * Adminhtml Catalog helper
  9. *
  10. * @author Magento Core Team <core@magentocommerce.com>
  11. */
  12. class Catalog extends \Magento\Framework\App\Helper\AbstractHelper
  13. {
  14. /**
  15. * Attribute Tab block name for product edit
  16. *
  17. * @var string
  18. */
  19. protected $_attributeTabBlock = null;
  20. /**
  21. * Attribute Tab block name for category edit
  22. *
  23. * @var string
  24. */
  25. protected $_categoryAttributeTabBlock;
  26. /**
  27. * Retrieve Attribute Tab Block Name for Product Edit
  28. *
  29. * @return string
  30. */
  31. public function getAttributeTabBlock()
  32. {
  33. return $this->_attributeTabBlock;
  34. }
  35. /**
  36. * Set Custom Attribute Tab Block Name for Product Edit
  37. *
  38. * @param string $attributeTabBlock
  39. * @return $this
  40. */
  41. public function setAttributeTabBlock($attributeTabBlock)
  42. {
  43. $this->_attributeTabBlock = $attributeTabBlock;
  44. return $this;
  45. }
  46. /**
  47. * Retrieve Attribute Tab Block Name for Category Edit
  48. *
  49. * @return string
  50. */
  51. public function getCategoryAttributeTabBlock()
  52. {
  53. return $this->_categoryAttributeTabBlock;
  54. }
  55. /**
  56. * Set Custom Attribute Tab Block Name for Category Edit
  57. *
  58. * @param string $attributeTabBlock
  59. * @return $this
  60. */
  61. public function setCategoryAttributeTabBlock($attributeTabBlock)
  62. {
  63. $this->_categoryAttributeTabBlock = $attributeTabBlock;
  64. return $this;
  65. }
  66. }