当前位置: 首页>>代码示例>>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;未经允许,请勿转载。