當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。