Beispiel #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);
 }
 /**
  * Prepare default SELECT values
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setValues([['label' => __('No'), 'value' => '0'], ['label' => __('Yes'), 'value' => 1]]);
 }
Beispiel #3
0
 /**
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setValues(array(array('label' => __('No'), 'value' => 0), array('label' => __('Yes'), 'value' => 1)));
 }