Example #1
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('select');
     $this->setExtType('multiple');
     $this->setSize(10);
 }
Example #2
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('select');
     $this->setExtType('combobox');
     $this->_prepareOptions();
 }
Example #3
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('textarea');
     $this->setExtType('textarea');
     $this->setRows(2);
     $this->setCols(15);
 }
 public function __construct($attributes = [])
 {
     parent::__construct($attributes);
     $this->setType('text');
     $this->setExtType('textfield');
     $this->_renderer = null;
     // disable renderer
 }
Example #5
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('text');
     $this->setExtType('textfield');
     if (isset($attributes['value'])) {
         $this->setValue($attributes['value']);
     }
 }
Example #6
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('file');
     $this->setExtType('imagefile');
     $this->setAutosubmit(false);
     $this->setData('autoSubmit', false);
     //$this->setExtType('file');
 }
Example #7
0
 /**
  * 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();
 }
Example #8
0
 /**
  * @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);
 }
Example #9
0
 /**
  * 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');
     }
 }
Example #10
0
 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'];
     }
 }
Example #11
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('slideshowhidden');
     $this->setExtType('hiddenfield');
 }
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('text');
     $this->setExtType('textfield');
 }
 /**
  * Init Element
  *
  * @param array $attributes
  */
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('checkbox');
     $this->setExtType('checkbox');
 }
Example #14
0
File: Tab.php Project: ahsanmage/vr
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('tab');
     $this->setExtType('multiselect');
 }
Example #15
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setTemplate('version/' . $attributes['version_type'] . '.phtml');
 }
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('textslideshowrespon');
     $this->setExtType('text');
 }
Example #17
0
 public function __construct($data)
 {
     parent::__construct($data);
 }
Example #18
0
 /**
  * Enter description here...
  *
  * @param array $attributes
  */
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->_renderer = Varien_Data_Form::getFieldsetRenderer();
     $this->setType('fieldset');
 }
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->_childBlock = Mage::app()->getLayout()->createBlock('aligent_customformelements/array_generic');
     $this->_childBlock->addData($attributes);
 }
Example #20
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('submitButton');
 }
Example #21
0
 /**
  * Enter description here...
  *
  * @param array $data
  */
 public function __construct($data)
 {
     parent::__construct($data);
     $this->setType('file');
 }
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('text');
     $this->addClass('input-text');
 }
Example #23
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->loadAttributesToData($attributes);
 }
Example #24
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('text');
     $this->setLineCount(2);
 }
Example #25
0
 public function __construct($attribute = array())
 {
     parent::__construct($attribute);
 }
Example #26
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->setType('link');
 }
Example #27
0
 /**
  * @param array $data
  */
 public function __construct($data)
 {
     parent::__construct($data);
     $this->setType('checkbox');
     $this->setValue('0');
 }