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;
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
use Magento\Framework\Controller\ResultFactory;
/**
* Backend reload of product create/edit form
*/
class Reload extends \Magento\Catalog\Controller\Adminhtml\Product implements HttpPostActionInterface
{
/**
* {@inheritdoc}
*/
public function execute()
{
if (!$this->getRequest()->getParam('set')) {
return $this->resultFactory->create(ResultFactory::TYPE_FORWARD)->forward('noroute');
}
$product = $this->productBuilder->build($this->getRequest());
/** @var \Magento\Framework\View\Result\Layout $resultLayout */
$resultLayout = $this->resultFactory->create(ResultFactory::TYPE_LAYOUT);
$resultLayout->getLayout()->getUpdate()->addHandle(['catalog_product_' . $product->getTypeId()]);
$resultLayout->getLayout()->getUpdate()->removeHandle('default');
$resultLayout->setHeader('Content-Type', 'application/json', true);
return $resultLayout;
}
}
?>
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;
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
use Magento\Framework\Controller\ResultFactory;
/**
* Backend reload of product create/edit form
*/
class Reload extends \Magento\Catalog\Controller\Adminhtml\Product implements HttpPostActionInterface
{
/**
* {@inheritdoc}
*/
public function execute()
{
if (!$this->getRequest()->getParam('set')) {
return $this->resultFactory->create(ResultFactory::TYPE_FORWARD)->forward('noroute');
}
$product = $this->productBuilder->build($this->getRequest());
/** @var \Magento\Framework\View\Result\Layout $resultLayout */
$resultLayout = $this->resultFactory->create(ResultFactory::TYPE_LAYOUT);
$resultLayout->getLayout()->getUpdate()->addHandle(['catalog_product_' . $product->getTypeId()]);
$resultLayout->getLayout()->getUpdate()->removeHandle('default');
$resultLayout->setHeader('Content-Type', 'application/json', true);
return $resultLayout;
}
}
Function Calls
None |
Stats
MD5 | 54d8d2206b78563221cbfb2c30850241 |
Eval Count | 0 |
Decode Time | 99 ms |