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.
*/
/**
* Grid column block that is displayed only if rollback allowed
*
* @author Magento Core Team <[email protected]>
*/
namespace Magento\Backup\Block\Adminhtml\Grid\Column;
/**
* @api
* @since 100.0.2
*/
class Rollback extends \Magento\Backend\Block\Widget\Grid\Column
{
/**
* @var \Magento\Backup\Helper\Data
*/
protected $_backupHelper;
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backup\Helper\Data $backupHelper
* @param array $data
*/
public function __construct(
\Magento\Backend\Block\Template\Context $context,
\Magento\Backup\Helper\Data $backupHelper,
array $data = []
) {
$this->_backupHelper = $backupHelper;
parent::__construct($context, $data);
}
/**
* Check permission for rollback
*
* @return bool
*/
public function isDisplayed()
{
return $this->_backupHelper->isRollbackAllowed();
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* Grid column block that is displayed only if rollback allowed
*
* @author Magento Core Team <[email protected]>
*/
namespace Magento\Backup\Block\Adminhtml\Grid\Column;
/**
* @api
* @since 100.0.2
*/
class Rollback extends \Magento\Backend\Block\Widget\Grid\Column
{
/**
* @var \Magento\Backup\Helper\Data
*/
protected $_backupHelper;
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backup\Helper\Data $backupHelper
* @param array $data
*/
public function __construct(
\Magento\Backend\Block\Template\Context $context,
\Magento\Backup\Helper\Data $backupHelper,
array $data = []
) {
$this->_backupHelper = $backupHelper;
parent::__construct($context, $data);
}
/**
* Check permission for rollback
*
* @return bool
*/
public function isDisplayed()
{
return $this->_backupHelper->isRollbackAllowed();
}
}
Function Calls
None |
Stats
MD5 | 5d11b119718cc897b6f896e45ed5d7ef |
Eval Count | 0 |
Decode Time | 115 ms |