本文整理汇总了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);
}
示例2: __construct
public function __construct($attributes = array())
{
parent::__construct($attributes);
$this->setType('select');
$this->setExtType('combobox');
$this->_prepareOptions();
}
示例3: __construct
public function __construct($attributes = array())
{
parent::__construct($attributes);
$this->setType('textarea');
$this->setExtType('textarea');
$this->setRows(2);
$this->setCols(15);
}
示例4: __construct
public function __construct($attributes = [])
{
parent::__construct($attributes);
$this->setType('text');
$this->setExtType('textfield');
$this->_renderer = null;
// disable renderer
}
示例5: __construct
public function __construct($attributes = array())
{
parent::__construct($attributes);
$this->setType('text');
$this->setExtType('textfield');
if (isset($attributes['value'])) {
$this->setValue($attributes['value']);
}
}
示例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');
}
示例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();
}
示例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);
}
示例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');
}
}
示例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'];
}
}
示例11: __construct
public function __construct($attributes = array())
{
parent::__construct($attributes);
$this->setType('slideshowhidden');
$this->setExtType('hiddenfield');
}
示例12: __construct
/**
* Init Element
*
* @param array $attributes
*/
public function __construct($attributes = array())
{
parent::__construct($attributes);
$this->setType('checkbox');
$this->setExtType('checkbox');
}
示例13: __construct
public function __construct($attributes = array())
{
parent::__construct($attributes);
$this->setTemplate('version/' . $attributes['version_type'] . '.phtml');
}
示例14: __construct
public function __construct($data)
{
parent::__construct($data);
}
示例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');
}