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


PHP Varien_Data_Form_Element_Abstract::getData方法代码示例

本文整理汇总了PHP中Varien_Data_Form_Element_Abstract::getData方法的典型用法代码示例。如果您正苦于以下问题:PHP Varien_Data_Form_Element_Abstract::getData方法的具体用法?PHP Varien_Data_Form_Element_Abstract::getData怎么用?PHP Varien_Data_Form_Element_Abstract::getData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Varien_Data_Form_Element_Abstract的用法示例。


在下文中一共展示了Varien_Data_Form_Element_Abstract::getData方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: render

    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $useContainerId = $element->getData('use_container_id');
        return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" class="ves-description">
					   <h3>	<a href="http://www.venustheme.com"><b>Magento - Venus Product Categories Block</b></a>  </h3>
								Show List Categories.<br>
							<br>
							
							<h4><b>Guide</b></h4>
							<ul>
								<li><a href="http://www.venustheme.com"> 1) Forum Support</a></li>
								<li><a href="http://www.venustheme.com"> 2) Submit A Request</a></li>
								<li><a href="http://www.venustheme.com"> 3) Submit A Ticket</a></li>
							</ul>
							<div>
								<h4>How to implement</h4>
								<ul>
									<li>&ltblock type="ves_productcategories/list" name="ves.list" /&gt</li>
									<li>{{block type="ves_productcategories/list" name="ves.list"}}</li>
								</ul>
								
							</div>
							<br>
							<div style="font-size:11px">@Copyright: <i><a href="http://www.venustheme.com" target="_blank">VenusTheme.Com</a></i></div>
					   </td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel());
    }
开发者ID:quanghuynt93,项目名称:VesSmartshop,代码行数:26,代码来源:Information.php

示例2: render

	public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $useContainerId = $element->getData('use_container_id');
        return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4 id="%s">%s</h4></td></tr>',
            $element->getHtmlId(), $element->getHtmlId(), $element->getLabel()
        );
    }
开发者ID:amal-nibaya,项目名称:PB-BEERSHOP,代码行数:7,代码来源:Spacer.php

示例3: _getElementHtml

 /**
  * Return element html
  *
  * @param  Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
 {
     $elementData = $element->getData();
     $status = (int) $elementData['value'] == 1;
     $text = $status ? 'Yes' : 'No';
     return Mage::helper('ratepaypayment')->__($text);
 }
开发者ID:nschoen,项目名称:magento-module,代码行数:13,代码来源:On.php

示例4: render

    /**
     * Render element html
     *
     * @param Varien_Data_Form_Element_Abstract $element
     * @return string
     */
    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $fieldIdSuffix = strstr($element->getHtmlId(), '_product_previewjs');
        //Replace the suffix with suffix appropriate for the background color picker in the current options group
        $bgcPickerId = str_replace($fieldIdSuffix, '_bg_color', $element->getHtmlId());
        $elements = array();
        $elements['product-item'] = array('bg_color' => 'background-color', 'hover_bg_color' => 'background-color', 'padding_top' => 'padding-top', 'padding_right' => 'padding-right', 'padding_bottom' => 'padding-bottom', 'padding_left' => 'padding-left', 'border_width' => 'border-width', 'border_color' => 'border-color', 'border_style' => 'border-style');
        $elements['product-name'] = array('name_fonts' => 'font-family', 'name_color' => 'color', 'name_hover_color' => 'color', '');
        $elements['price-box'] = array('price_color' => 'color');
        $elements['old-price'] = array('old_price_color' => 'color');
        $elements['special-price'] = array('special_price_color' => 'color');
        $elements['btn-cart'] = array('addtocart_color' => 'color', 'addtocart_hover_color' => 'color', 'addtocart_bg_color' => 'background-color', 'addtocart_hover_bg_color' => 'background-color');
        $elements['quickview'] = array('quickview_color' => 'color', 'quickview_hover_color' => 'color', 'quickview_bg_color' => 'background-color', 'quickview_hover_bg_color' => 'background-color');
        $elements['link-compare'] = array('compare_color' => 'color', 'compare_hover_color' => 'color', 'compare_bg_color' => 'background-color', 'compare_hover_bg_color' => 'background-color');
        $elements['link-wishlist'] = array('whishlist_color' => 'color', 'whishlist_hover_color' => 'color', 'whishlist_bg_color' => 'background-color', 'whishlist_hover_bg_color' => 'background-color');
        $elements['desc'] = array('short_description_color' => 'color');
        $elements['countdown-timmer'] = array('countdown_timer_color' => 'color');
        $elements['new-icon'] = array('new_label_color' => 'color', 'new_label_bg_color' => 'background-color');
        $elements['onsale'] = array('sale_label_color' => 'color', 'sale_label_bg_color' => 'background-color');
        $script = '';
        $script .= '<script type="text/javascript">
		jQuery(function(){
			';
        foreach ($elements as $k => $v) {
            if (is_array($v)) {
                foreach ($v as $key => $val) {
                    $htmlId = str_replace($fieldIdSuffix, '_' . $key, $element->getHtmlId());
                    $id = time();
                    $script .= '
						var tex' . $id . '	= jQuery("#' . $htmlId . '");
						tex' . $id . '.change(function() {
						var val = jQuery(this).val();
						var elemenClass = ".' . $k . '";
						';
                    if (preg_match('/hover/', $key)) {
                        $script .= 'var originalData = "";
								if(jQuery(elemenClass).css("' . $val . '") !== "undefined"){
									originalData = jQuery(elemenClass).css("' . $val . '");
								}
							';
                        $script .= 'jQuery(elemenClass).hover(function(){
								jQuery(elemenClass).css({"' . $val . '": val});
							},function(){
								if(originalData!=""){
									jQuery(elemenClass).css({"' . $val . '": originalData});
								}
							});';
                    } else {
                        $script .= 'jQuery(elemenClass).css({"' . $val . '": val});';
                    }
                    $script .= '}).change();';
                }
            }
        }
        $script .= '			
						});
						</script>';
        $useContainerId = $element->getData('use_container_id');
        return sprintf('<tr class="system-fieldset-sub-head fieldset-hidden" id="row_%s"><td colspan="5">%s</td></tr>', $element->getHtmlId(), $script);
    }
开发者ID:adrienManikon,项目名称:iPong,代码行数:66,代码来源:ProductPreviewJs.php

示例5: render

 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $editor = new TM_Core_Block_Adminhtml_Widget_Form_Element_Wysiwyg($element->getData());
     $editor->setId($element->getId());
     $editor->setForm($element->getForm());
     return parent::render($editor);
 }
开发者ID:santhosh400,项目名称:ecart,代码行数:7,代码来源:Wysiwyg.php

示例6: render

    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $useContainerId = $element->getData('use_container_id');
        return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" class="ves-description">
					   <h3>	<a href="http://www.venustheme.com"><b>Magento - Venus Deals Block</b></a>  </h3>
								The most elegant way to show list products of your magento store inside the smooth ProductCarousel. 
								the module supports multiple themes for fitting your design, easy to make owner themes by yourself, 
								and many kind of selecting products sources. 
								When you used, sure you will get highest effects while introducing your customers great products, featured products .<br>
							<br>
							
							<h4><b>Guide</b></h4>
							<ul>
								<li><a href="http://www.venustheme.com"> 1) Forum Support</a></li>
								<li><a href="http://www.venustheme.com"> 2) Submit A Request</a></li>
								<li><a href="http://www.venustheme.com"> 3) Submit A Ticket</a></li>
							</ul>
							<div>
								<h4>How to implement</h4>
								<ul>
									<li>&lt block type="ves_deals/deal_productlist" name="deals.list" /&gt</li>
									<li>{{block type="ves_deals/deal_productlist" name="deals.list"}}</li>
								</ul>
								
							</div>
							<br>
							<div style="font-size:11px">@Copyright: <i><a href="http://www.venustheme.com" target="_blank">VenusTheme.Com</a></i></div>
					   </td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel());
    }
开发者ID:quanghuynt93,项目名称:VesSmartshop,代码行数:29,代码来源:Information.php

示例7: render

 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     //return parent::render($element);
     $useContainerId = $element->getData('use_container_id');
     $block = $this->getLayout()->createBlock('core/template')->setTemplate('aheadgroups/baseall/extensionlist.phtml');
     $extensions = $block->renderView();
     return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4 id="%s">%s</h4></td></tr>', $element->getHtmlId(), $element->getHtmlId(), $extensions);
 }
开发者ID:CE-Webmaster,项目名称:CE-Hub,代码行数:8,代码来源:Extensionlist.php

示例8: render

 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $useContainerId = $element->getData('use_container_id');
     $remoteHtml = @file_get_contents('http://www.eyemaginetech.com/canvas/info/eyehubspot.php');
     if ($remoteHtml) {
         return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5">%s</td></tr>', $element->getHtmlId(), $remoteHtml);
     }
 }
开发者ID:shopgo-magento1,项目名称:Magento-HubspotIntegration,代码行数:14,代码来源:Info.php

示例9: _getElementHtml

 /**
  * Return element html
  *
  * @param  Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
 {
     $elementData = $element->getData();
     $status = (int) $elementData['value'] == 1;
     $text = $status ? 'Active' : 'Inactive';
     $color = $status ? 'green' : 'red';
     return '<p style="font-weight:bold; color: ' . $color . '">' . Mage::helper('ratepaypayment')->__($text) . '</p>';
 }
开发者ID:nschoen,项目名称:magento-module,代码行数:14,代码来源:Active.php

示例10: _getElementHtml

 /**
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
 {
     $elementData = $element->getData();
     $this->setElement($element);
     $url = Mage::helper("adminhtml")->getUrl('adminhtml/rapidcampaign_promotion/update');
     $html = $this->getLayout()->createBlock('adminhtml/widget_button')->setLabel($elementData['original_data']['button_label'])->setOnClick("setLocation('{$url}'); return false;")->toHtml();
     return $html;
 }
开发者ID:RapidCampaign,项目名称:rapid-magento-extension,代码行数:12,代码来源:Button.php

示例11: render

 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $useContainerId = $element->getData('use_container_id');
     return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" style="max-width:580px;"><h4 id="%s">%s</h4><p class="subheading-note" style="font-size:11px;font-style:italic;color:#999;"><span>%s</span></p></td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), $element->getComment());
     //Original:
     /*return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h2 id="%s">%s</h2></td></tr>',
     			$element->getHtmlId(), $element->getHtmlId(), $element->getLabel()
     		);*/
 }
开发者ID:vinayshuklasourcefuse,项目名称:sareez,代码行数:15,代码来源:Glace_Menumobile_Block_Adminhtml_System_Config_Form_Field_Heading.php

示例12: render

 /**
  * Checkbox render function
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $checkbox = new Varien_Data_Form_Element_Checkbox($element->getData());
     $checkbox->setForm($element->getForm());
     $elementHtml = $checkbox->getElementHtml() . sprintf('<label for="%s"><b>%s</b></label><p class="note">%s</p>', $element->getHtmlId(), $element->getLabel(), $element->getNote());
     $html = '<td class="label">&nbsp;</td>';
     $html .= '<td class="value">' . $elementHtml . '</td>';
     return $html;
 }
开发者ID:hazaeluz,项目名称:magento_connect,代码行数:15,代码来源:Checkbox.php

示例13: render

    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $useContainerId = $element->getData('use_container_id');
        return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" class="lof-description">
					   <h3>	<a target="_blank" href="http://landofcoder.com/our-porfolios/joomla-commercial-extensions/item/40-lof-cordion-module.html">. <b>Lof Twitter Module</b></a><p><i>The Lof Twitter - a Lightweight module  have released which develop on jquery library and power Lof\'s Core module, it\'s as  promised bring your site a new style.</i></p><ul><li><a href="http://landofcoder.com/submit-request.html">Report Bug </a></li><li><a href="http://landofcoder.com/forum/forum.html?id=24">Discussion</a></li></ul><p><b> - Short Userguide</b><p><img style="width:99%" src="../modules/mod_lofcordion/assets/ug-image-1.png"></p>Copyright <a href="http://landofcoder.com"><i>LandOfCoder.Com</i></a></p><script type="text/javascript" src="../modules/mod_lofcordion/assets/form.js"></script> <style>.lof-group{ padding:2px;color:#666;background:#CCC;cursor:hand; font-weight:bold; clear:both; cursor:pointer}</style>
							<br>
							<div style="font-size:11px">@Copyright: <i><a href="http://landofcoder.com" target="_blank">LandOfCoder.Com</a></i></div>
					   </td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel());
    }
开发者ID:amal-nibaya,项目名称:PB-BEERSHOP,代码行数:9,代码来源:Information.php

示例14: render

 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $editor = new Varien_Data_Form_Element_Editor($element->getData());
     // Prevent foreach error
     $editor->getConfig()->setPlugins(array());
     $editor->setId($element->getId());
     $editor->setForm($element->getForm());
     $editor->setValue(base64_decode($editor->getValue()));
     return parent::render($editor);
 }
开发者ID:booklein,项目名称:bookle,代码行数:10,代码来源:Wysiwyg.php

示例15: render

 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $useContainerId = $element->getData('use_container_id');
     return sprintf('<tr id="row_%s">
                         <td class="label">
                             <h4 id="%s">%s</h4>
                         </td>
                         <td class="label">%s</td>
                    </tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) . "index.php/anymarketcallback/index/sinc");
 }
开发者ID:AnyMarket,项目名称:magento,代码行数:16,代码来源:Callback.php


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