Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Copyright Magento, Inc. All rights reserved. * See COPYING.txt for license ..
Decoded Output download
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Controller\Adminhtml\Product;
/**
* Adminhtml entity sets controller
*
* @author Magento Core Team <[email protected]>
*/
abstract class Set extends \Magento\Backend\App\Action
{
/**
* Authorization level of a basic admin session
*
* @see _isAllowed()
*/
const ADMIN_RESOURCE = 'Magento_Catalog::sets';
/**
* Core registry
*
* @var \Magento\Framework\Registry
*/
protected $_coreRegistry;
/**
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Framework\Registry $coreRegistry
*/
public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry)
{
$this->_coreRegistry = $coreRegistry;
parent::__construct($context);
}
/**
* Define in register catalog_product entity type code as entityType
*
* @return void
*/
protected function _setTypeId()
{
$this->_coreRegistry->register(
'entityType',
$this->_objectManager->create(\Magento\Catalog\Model\Product::class)->getResource()->getTypeId()
);
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Controller\Adminhtml\Product;
/**
* Adminhtml entity sets controller
*
* @author Magento Core Team <[email protected]>
*/
abstract class Set extends \Magento\Backend\App\Action
{
/**
* Authorization level of a basic admin session
*
* @see _isAllowed()
*/
const ADMIN_RESOURCE = 'Magento_Catalog::sets';
/**
* Core registry
*
* @var \Magento\Framework\Registry
*/
protected $_coreRegistry;
/**
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Framework\Registry $coreRegistry
*/
public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry)
{
$this->_coreRegistry = $coreRegistry;
parent::__construct($context);
}
/**
* Define in register catalog_product entity type code as entityType
*
* @return void
*/
protected function _setTypeId()
{
$this->_coreRegistry->register(
'entityType',
$this->_objectManager->create(\Magento\Catalog\Model\Product::class)->getResource()->getTypeId()
);
}
}
Function Calls
None |
Stats
MD5 | b740418205ba820e0747531e573b0d13 |
Eval Count | 0 |
Decode Time | 103 ms |