예제 #1
0
 /**
  * Constructor helper
  *
  * @return void
  */
 public function _construct()
 {
     parent::_construct();
     /*
     $options = array_intersect(array_combine($this->_defaultOptions, $this->_defaultOptions), $this->getOptions());
     $this->setOptions($options);
     */
     $this->setCssClass('element-' . self::CONTROL_TYPE);
 }
예제 #2
0
 /**
  * Prepare default SELECT values
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setValues([['label' => __('No'), 'value' => '0'], ['label' => __('Yes'), 'value' => 1]]);
 }
예제 #3
0
파일: Boolean.php 프로젝트: aiesh/magento2
 /**
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setValues(array(array('label' => __('No'), 'value' => 0), array('label' => __('Yes'), 'value' => 1)));
 }