当前位置: 首页>>代码示例>>PHP>>正文


PHP AbstractElement::getOriginalData方法代码示例

本文整理汇总了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();
 }
开发者ID:niransingh,项目名称:magento2,代码行数:13,代码来源:Button.php

示例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();
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:10,代码来源:Command.php

示例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();
 }
开发者ID:sendpulse,项目名称:mageia,代码行数:7,代码来源:OauthWizard.php

示例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();
 }
开发者ID:magewonder,项目名称:magento2-smtp,代码行数:10,代码来源:SendTestEmail.php

示例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();
 }
开发者ID:mageplaza,项目名称:magento-2-seo-extension,代码行数:7,代码来源:Saverobot.php

示例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();
 }
开发者ID:dotmailer,项目名称:dotmailer-magento2-extension,代码行数:15,代码来源:Wishlist.php

示例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();
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:14,代码来源:Hint.php

示例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);
    }
开发者ID:aiesh,项目名称:magento2,代码行数:60,代码来源:Hint.php

示例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();
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:12,代码来源:ApiWizard.php

示例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();
 }
开发者ID:hientruong90,项目名称:magento2_installer,代码行数:12,代码来源:ApiWizard.php

示例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();
 }
开发者ID:aiesh,项目名称:magento2,代码行数:13,代码来源:Validatevat.php


注:本文中的Magento\Framework\Data\Form\Element\AbstractElement::getOriginalData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。