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\Block\Adminhtml\Product\Attribute\Set\Main;
use Magento\Backend\Block\Widget\Form;
class Formattribute extends \Magento\Backend\Block\Widget\Form\Generic
{
/**
* Prepare the form
*
* @return void
*/
protected function _prepareForm()
{
/** @var \Magento\Framework\Data\Form $form */
$form = $this->_formFactory->create();
$fieldset = $form->addFieldset('set_fieldset', ['legend' => __('Add New Attribute')]);
$fieldset->addField(
'new_attribute',
'text',
['label' => __('Name'), 'name' => 'new_attribute', 'required' => true]
);
$fieldset->addField(
'submit',
'note',
[
'text' => $this->getLayout()->createBlock(
\Magento\Backend\Block\Widget\Button::class
)->setData(
['label' => __('Add Attribute'), 'onclick' => 'this.form.submit();', 'class' => 'add']
)->toHtml()
]
);
$form->setUseContainer(true);
$form->setMethod('post');
$this->setForm($form);
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Block\Adminhtml\Product\Attribute\Set\Main;
use Magento\Backend\Block\Widget\Form;
class Formattribute extends \Magento\Backend\Block\Widget\Form\Generic
{
/**
* Prepare the form
*
* @return void
*/
protected function _prepareForm()
{
/** @var \Magento\Framework\Data\Form $form */
$form = $this->_formFactory->create();
$fieldset = $form->addFieldset('set_fieldset', ['legend' => __('Add New Attribute')]);
$fieldset->addField(
'new_attribute',
'text',
['label' => __('Name'), 'name' => 'new_attribute', 'required' => true]
);
$fieldset->addField(
'submit',
'note',
[
'text' => $this->getLayout()->createBlock(
\Magento\Backend\Block\Widget\Button::class
)->setData(
['label' => __('Add Attribute'), 'onclick' => 'this.form.submit();', 'class' => 'add']
)->toHtml()
]
);
$form->setUseContainer(true);
$form->setMethod('post');
$this->setForm($form);
}
}
Function Calls
| None |
Stats
| MD5 | a627e3de18198c8875559173287b78e5 |
| Eval Count | 0 |
| Decode Time | 68 ms |