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\AsynchronousOperations\Controller\Adminhtml\Index;
class Index extends \Magento\Backend\App\Action
{
/**
* Authorization level of a basic admin session
*
* @see _isAllowed()
*/
const ADMIN_RESOURCE = 'Magento_Logging::system_magento_logging_bulk_operations';
/**
* @var \Magento\Framework\View\Result\PageFactory
*/
private $resultPageFactory;
/**
* @var string
*/
private $menuId;
/**
* Details constructor.
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
* @param string $menuId
*/
public function __construct(
\Magento\Backend\App\Action\Context $context,
\Magento\Framework\View\Result\PageFactory $resultPageFactory,
$menuId = 'Magento_AsynchronousOperations::system_magento_logging_bulk_operations'
) {
$this->resultPageFactory = $resultPageFactory;
$this->menuId = $menuId;
parent::__construct($context);
}
/**
* @inheritDoc
*/
protected function _isAllowed()
{
return parent::_isAllowed();
}
/**
* Bulk list action
*
* @return \Magento\Framework\View\Result\Page
*/
public function execute()
{
$resultPage = $this->resultPageFactory->create();
$resultPage->initLayout();
$this->_setActiveMenu($this->menuId);
$resultPage->getConfig()->getTitle()->prepend(__('Bulk Actions Log'));
return $resultPage;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\AsynchronousOperations\Controller\Adminhtml\Index;
class Index extends \Magento\Backend\App\Action
{
/**
* Authorization level of a basic admin session
*
* @see _isAllowed()
*/
const ADMIN_RESOURCE = 'Magento_Logging::system_magento_logging_bulk_operations';
/**
* @var \Magento\Framework\View\Result\PageFactory
*/
private $resultPageFactory;
/**
* @var string
*/
private $menuId;
/**
* Details constructor.
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
* @param string $menuId
*/
public function __construct(
\Magento\Backend\App\Action\Context $context,
\Magento\Framework\View\Result\PageFactory $resultPageFactory,
$menuId = 'Magento_AsynchronousOperations::system_magento_logging_bulk_operations'
) {
$this->resultPageFactory = $resultPageFactory;
$this->menuId = $menuId;
parent::__construct($context);
}
/**
* @inheritDoc
*/
protected function _isAllowed()
{
return parent::_isAllowed();
}
/**
* Bulk list action
*
* @return \Magento\Framework\View\Result\Page
*/
public function execute()
{
$resultPage = $this->resultPageFactory->create();
$resultPage->initLayout();
$this->_setActiveMenu($this->menuId);
$resultPage->getConfig()->getTitle()->prepend(__('Bulk Actions Log'));
return $resultPage;
}
}
Function Calls
| None |
Stats
| MD5 | f8366413cb1a5287aa8db3a5874507c6 |
| Eval Count | 0 |
| Decode Time | 129 ms |