當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Varien_Data_Form_Element_Abstract::__construct方法代碼示例

本文整理匯總了PHP中Varien_Data_Form_Element_Abstract::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Varien_Data_Form_Element_Abstract::__construct方法的具體用法?PHP Varien_Data_Form_Element_Abstract::__construct怎麽用?PHP Varien_Data_Form_Element_Abstract::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Varien_Data_Form_Element_Abstract的用法示例。


在下文中一共展示了Varien_Data_Form_Element_Abstract::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('select');
     $this->setExtType('multiple');
     $this->setSize(10);
 }
開發者ID:hazaeluz,項目名稱:magento_connect,代碼行數:7,代碼來源:Multiselect.php

示例2: __construct

 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('select');
     $this->setExtType('combobox');
     $this->_prepareOptions();
 }
開發者ID:okite11,項目名稱:frames21,代碼行數:7,代碼來源:Select.php

示例3: __construct

 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('textarea');
     $this->setExtType('textarea');
     $this->setRows(2);
     $this->setCols(15);
 }
開發者ID:hazaeluz,項目名稱:magento_connect,代碼行數:8,代碼來源:Textarea.php

示例4: __construct

 public function __construct($attributes = [])
 {
     parent::__construct($attributes);
     $this->setType('text');
     $this->setExtType('textfield');
     $this->_renderer = null;
     // disable renderer
 }
開發者ID:rsquarem,項目名稱:MageGoogleShoppingApiV2,代碼行數:8,代碼來源:Googleshoppingautocomplete.php

示例5: __construct

 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('text');
     $this->setExtType('textfield');
     if (isset($attributes['value'])) {
         $this->setValue($attributes['value']);
     }
 }
開發者ID:joebushi,項目名稱:magento-mirror,代碼行數:9,代碼來源:Date.php

示例6: __construct

 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('file');
     $this->setExtType('imagefile');
     $this->setAutosubmit(false);
     $this->setData('autoSubmit', false);
     //$this->setExtType('file');
 }
開發者ID:okite11,項目名稱:frames21,代碼行數:9,代碼來源:Imagefile.php

示例7: __construct

 /**
  * Constructor
  *
  * @param array $attributes
  */
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     $this->_mediaUploader = isset($attributes['mediaUploader']) ? $attributes['mediaUploader'] : Mage::getSingleton('Mage_Adminhtml_Block_Media_Uploader');
     $this->_url = isset($attributes['url']) ? $attributes['url'] : Mage::getModel('Mage_Backend_Model_Url');
     $this->_coreHelper = isset($attributes['coreHelper']) ? $attributes['coreHelper'] : Mage::helper('Mage_Core_Helper_Data');
     $this->_catalogHelperData = isset($attributes['catalogHelperData']) ? $attributes['catalogHelperData'] : Mage::helper('Mage_Catalog_Helper_Data');
     $this->_maxFileSize = $this->_getFileMaxSize();
 }
開發者ID:,項目名稱:,代碼行數:14,代碼來源:

示例8: __construct

 /**
  * @param array $attributes
  */
 public function __construct(array $attributes = array())
 {
     if (isset($attributes['helperFactory'])) {
         $this->_helperFactory = $attributes['helperFactory'];
         unset($attributes['helperFactory']);
     } else {
         $this->_helperFactory = Mage::getSingleton('Mage_Core_Model_Factory_Helper');
     }
     parent::__construct($attributes);
 }
開發者ID:nickimproove,項目名稱:magento2,代碼行數:13,代碼來源:Export.php

示例9: __construct

 /**
  * Enter description here...
  *
  * @param array $attributes
  */
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->_renderer = Varien_Data_Form::getFieldsetRenderer();
     $this->setType('fieldset');
     if (isset($attributes['advancedSection'])) {
         $this->_labelAdvanceSection = $attributes['advancedSection'];
     } else {
         $this->_labelAdvanceSection = Mage::helper('Mage_Core_Helper_Data')->__('Additional Settings');
     }
 }
開發者ID:natxetee,項目名稱:magento2,代碼行數:16,代碼來源:Fieldset.php

示例10: __construct

 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     if (array_key_exists('label', $attributes)) {
         $this->label = $attributes['label'];
     }
     if (array_key_exists('onclick', $attributes)) {
         $this->onclick = $attributes['onclick'];
     }
     if (array_key_exists('comment', $attributes)) {
         $this->comment = $attributes['comment'];
     }
     if (array_key_exists('style', $attributes)) {
         $this->style = $attributes['style'];
     }
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:16,代碼來源:Button.php

示例11: __construct

 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('slideshowhidden');
     $this->setExtType('hiddenfield');
 }
開發者ID:CE-Webmaster,項目名稱:CE-Hub,代碼行數:6,代碼來源:Slideshowhidden.php

示例12: __construct

 /**
  * Init Element
  *
  * @param array $attributes
  */
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('checkbox');
     $this->setExtType('checkbox');
 }
開發者ID:shebin512,項目名稱:Magento_Zoff,代碼行數:11,代碼來源:Solrsearchgroupcheckboxes.php

示例13: __construct

 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setTemplate('version/' . $attributes['version_type'] . '.phtml');
 }
開發者ID:giuseppemorelli,項目名稱:Lesti_Version,代碼行數:5,代碼來源:Ajax.php

示例14: __construct

 public function __construct($data)
 {
     parent::__construct($data);
 }
開發者ID:technomagegithub,項目名稱:olgo.nl,代碼行數:4,代碼來源:Video.php

示例15: __construct

 /**
  * Enter description here...
  *
  * @param array $attributes
  */
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->_renderer = Varien_Data_Form::getFieldsetRenderer();
     $this->setType('fieldset');
 }
開發者ID:hyhoocchan,項目名稱:mage-local,代碼行數:11,代碼來源:Fieldset.php


注:本文中的Varien_Data_Form_Element_Abstract::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。