本文整理汇总了PHP中Magento\Framework\Data\Form\Element\AbstractElement::getOriginalData方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractElement::getOriginalData方法的具体用法?PHP AbstractElement::getOriginalData怎么用?PHP AbstractElement::getOriginalData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Framework\Data\Form\Element\AbstractElement
的用法示例。
在下文中一共展示了AbstractElement::getOriginalData方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _getElementHtml
/**
* Get the button and scripts contents
*
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
* @return string
*/
protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element)
{
$originalData = $element->getOriginalData();
$buttonLabel = !empty($originalData['button_label']) ? $originalData['button_label'] : $this->_vatButtonLabel;
$this->addData(['button_label' => __($buttonLabel), 'html_id' => $element->getHtmlId()]);
return $this->_toHtml();
}
示例2: _getElementHtml
/**
* {@inheritdoc}
*/
protected function _getElementHtml(AbstractElement $element)
{
$originalData = $element->getOriginalData();
$buttonLabel = $originalData['button_label'];
$this->addData(['button_label' => __($buttonLabel), 'html_id' => $element->getHtmlId(), 'ajax_url' => $this->_urlBuilder->getUrl('searchsphinx/command/' . $this->getAction())]);
return $this->_toHtml();
}
示例3: _getElementHtml
protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element)
{
$originalData = $element->getOriginalData();
$label = $originalData['button_label'];
$this->addData(array('button_label' => __($label), 'button_url' => $this->authorizeRequestUrl(), 'html_id' => $element->getHtmlId()));
return $this->_toHtml();
}
示例4: _getElementHtml
/**
* @codeCoverageIgnore
*/
protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element)
{
$originalData = $element->getOriginalData();
$label = $originalData['button_label'];
$this->addData(['button_label' => __($label), 'button_url' => $this->getUrl('magewondersmtp/email/test'), 'html_id' => $element->getHtmlId()]);
return $this->_toHtml();
}
示例5: _getElementHtml
protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element)
{
$originalData = $element->getOriginalData();
$buttonLabel = !empty($originalData['button_label']) ? $originalData['button_label'] : $this->_saveButtonLabel;
$this->addData(['button_label' => __($buttonLabel), 'html_id' => $element->getHtmlId(), 'ajax_url' => $this->_urlBuilder->getUrl('seo/system_config_robot/save')]);
return $this->_toHtml();
}
示例6: _getElementHtml
/**
* Get the button and scripts contents.
*
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
*
* @return string
*/
public function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element)
{
$originalData = $element->getOriginalData();
$buttonLabel = !empty($originalData['button_label']) ? $originalData['button_label'] : $this->buttonLabel;
$url = $this->_urlBuilder->getUrl('dotdigitalgroup_email/addressbook/save');
$this->addData(['button_label' => __($buttonLabel), 'html_id' => $element->getHtmlId(), 'ajax_url' => $url]);
return $this->_toHtml();
}
示例7: render
/**
* Render fieldset html
*
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
* @return string
*/
public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element)
{
$elementOriginalData = $element->getOriginalData();
if (isset($elementOriginalData['help_link'])) {
$this->setHelpLink($elementOriginalData['help_link']);
}
return $this->toHtml();
}
示例8: render
/**
* Render fieldset html
*
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
* @return string
*/
public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element)
{
$elementOriginalData = $element->getOriginalData();
if (isset($elementOriginalData['help_link'])) {
$this->setHelpLink($elementOriginalData['help_link']);
}
$js = '
paypalToggleSolution = function(id, url) {
var doScroll = false;
Fieldset.toggleCollapse(id, url);
if ($(this).hasClassName("open")) {
$$(".with-button button.button").each(function(anotherButton) {
if (anotherButton != this && $(anotherButton).hasClassName("open")) {
$(anotherButton).click();
doScroll = true;
}
}.bind(this));
}
if (doScroll) {
var pos = Element.cumulativeOffset($(this));
window.scrollTo(pos[0], pos[1] - 45);
}
}
togglePaypalSolutionConfigureButton = function(button, enable) {
var $button = $(button);
$button.disabled = !enable;
if ($button.hasClassName("disabled") && enable) {
$button.removeClassName("disabled");
} else if (!$button.hasClassName("disabled") && !enable) {
$button.addClassName("disabled");
}
}
// check store-view disabling Express Checkout
document.observe("dom:loaded", function() {
$$(".pp-method-express button.button").each(function(ecButton){
var ecEnabler = $$(".paypal-ec-enabler")[0];
if (typeof ecButton == "undefined" || typeof ecEnabler != "undefined") {
return;
}
var $ecButton = $(ecButton);
$$(".with-button button.button").each(function(configureButton) {
if (configureButton != ecButton && !configureButton.disabled
&& !$(configureButton).hasClassName("paypal-ec-separate")
) {
togglePaypalSolutionConfigureButton(ecButton, false);
}
});
});
});
';
return $this->toHtml() . $this->_jsHelper->getScript($js);
}
示例9: _getElementHtml
/**
* Get the button and scripts contents
*
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
* @return string
*/
protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element)
{
$originalData = $element->getOriginalData();
$this->addData(['button_label' => __($originalData['button_label']), 'button_url' => $originalData['button_url'], 'html_id' => $element->getHtmlId(), 'sandbox_button_label' => __($originalData['sandbox_button_label']), 'sandbox_button_url' => $originalData['sandbox_button_url'], 'sandbox_html_id' => 'sandbox_' . $element->getHtmlId()]);
return $this->_toHtml();
}
示例10: _getElementHtml
/**
* Get the button and scripts contents
*
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
* @return string
*/
protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element)
{
$originalData = $element->getOriginalData();
$this->addData(['query' => $this->createQuery(['partnerId' => $originalData['partner_id'], 'partnerLogoUrl' => $this->_assetRepo->getUrl($originalData['partner_logo_url']), 'receiveCredentials' => $originalData['receive_credentials'], 'showPermissions' => $originalData['show_permissions'], 'displayMode' => $originalData['display_mode'], 'productIntentID' => $originalData['product_intent_id']]), 'button_label' => __($originalData['button_label']), 'button_url' => $originalData['button_url'], 'html_id' => $element->getHtmlId(), 'sandbox_button_label' => __($originalData['sandbox_button_label']), 'sandbox_button_url' => $originalData['sandbox_button_url'], 'sandbox_html_id' => 'sandbox_' . $element->getHtmlId()]);
return $this->_toHtml();
}
示例11: _getElementHtml
/**
* Get the button and scripts contents
*
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
* @return string
*/
protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element)
{
$originalData = $element->getOriginalData();
$buttonLabel = !empty($originalData['button_label']) ? $originalData['button_label'] : $this->_vatButtonLabel;
$this->addData(array('button_label' => __($buttonLabel), 'html_id' => $element->getHtmlId(), 'ajax_url' => $this->_urlBuilder->getUrl('customer/system_config_validatevat/validate')));
return $this->_toHtml();
}