Advertisement
Guest User

Untitled

a guest
May 8th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. /**
  2. *
  3. * @ This file is created by http://DeZender.Net
  4. * @ deZender (PHP5 Decoder for ionCube Encoder)
  5. *
  6. * @ Version : 3.0.8.0
  7. * @ Author : DeZender
  8. * @ Release on : 25.09.2017
  9. * @ Official site : http://DeZender.Net
  10. *
  11. */
  12.  
  13. namespace Unirgy\DropshipMulti\Helper;
  14.  
  15. class ProtectedCode
  16. {
  17. protected $_multiHlp = null;
  18. protected $_hlp = null;
  19. protected $_stockItemFactory = null;
  20. protected $_scopeConfig = null;
  21. protected $_modelProductFactory = null;
  22. protected $_eavConfig = null;
  23. protected $_stockRegistry = null;
  24. protected $_reindexFlag = true;
  25.  
  26. public function __construct()
  27. {
  28. $context = \Magento\Framework\App\ObjectManager::getInstance( )->get( '\\Unirgy\\DropshipMulti\\Helper\\ProtectedCode\\Context' );
  29. $this->_multiHlp = $context->_multiHlp;
  30. $this->_hlp = $context->_hlp;
  31. $this->_stockItemFactory = $context->_stockItemFactory;
  32. $this->_scopeConfig = $context->_scopeConfig;
  33. $this->_modelProductFactory = $context->_modelProductFactory;
  34. $this->_eavConfig = $context->_eavConfig;
  35. $this->_stockRegistry = $context->_stockRegistry;
  36. }
  37.  
  38. public function catalog_product_prepare_save($request, $product)
  39. {
  40. \Unirgy\Dropship\Helper\ProtectedCode::validateLicense( 'Unirgy_DropshipMulti' );
  41. $_obfuscate_DR4MLC48DiEbHiskMQwKHho2LgNcHiI = $request->getParam( 'udmulti_vendors' );
  42.  
  43. if (!(is_array( $_obfuscate_DR4MLC48DiEbHiskMQwKHho2LgNcHiI ))) {
  44. $_obfuscate_DTVAJSsGLhY3PVweCxMjPx4EPCEjKTI = $request->getParam( 'product' );
  45. if (!(is_array( $_obfuscate_DTVAJSsGLhY3PVweCxMjPx4EPCEjKTI )) || !(isset( $_obfuscate_DTVAJSsGLhY3PVweCxMjPx4EPCEjKTI['udmulti_vendors'] ))) {
  46. return;
  47. }
  48.  
  49. $_obfuscate_DR4MLC48DiEbHiskMQwKHho2LgNcHiI = $_obfuscate_DTVAJSsGLhY3PVweCxMjPx4EPCEjKTI['udmulti_vendors'];
  50. }
  51.  
  52. unset( $_obfuscate_DR4MLC48DiEbHiskMQwKHho2LgNcHiI['$$ROW'], $_obfuscate_DR4MLC48DiEbHiskMQwKHho2LgNcHiI['$ROW'] );
  53. $_obfuscate_DQcnMjsVQD8iJBUvBAsxHTchPjM8EiI = array( );
  54. .....................................................................
  55. ..................................................
  56. ...........................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement