Пример #1
0
 public function setId($id)
 {
     parent::setId($id);
     $params = $this->getParams();
     //set elementlist params from picklist params
     $params->set('allow_frontend_addto', (bool) $params->get('allowadd', false));
 }
Пример #2
0
 /**
  * Method to set the element id
  *
  * @param   int  $id  element ID number
  *
  * @return  void
  */
 public function setId($id)
 {
     parent::setId($id);
     $params = $this->getParams();
     // Set elementlist params from dropdown params
     $params->set('allow_frontend_addto', (bool) $params->get('allow_frontend_addtodropdown', false));
     $params->set('allowadd-onlylabel', (bool) $params->get('dd-allowadd-onlylabel', true));
     $params->set('savenewadditions', (bool) $params->get('dd-savenewadditions', false));
 }
Пример #3
0
 /**
  * set the element id
  * and maps parameter names for common ElementList options
  * @param int $id
  */
 public function setId($id)
 {
     parent::setId($id);
     $params = $this->getParams();
     //set elementlist params from checkbox params
     $params->set('options_per_row', $params->get('ck_options_per_row'));
     $params->set('allow_frontend_addto', (bool) $params->get('allow_frontend_addtocheckbox', false));
     $params->set('allowadd-onlylabel', (bool) $params->get('chk-allowadd-onlylabel', true));
     $params->set('savenewadditions', (bool) $params->get('chk-savenewadditions', false));
 }
Пример #4
0
 public function setId($id)
 {
     parent::setId($id);
     $params = $this->getParams();
     //set elementlist params from radio params
     $params->set('element_before_label', (bool) $params->get('radio_element_before_label', true));
     $params->set('allow_frontend_addto', (bool) $params->get('allow_frontend_addtoradio', false));
     $params->set('allowadd-onlylabel', (bool) $params->get('rad-allowadd-onlylabel', true));
     $params->set('savenewadditions', (bool) $params->get('rad-savenewadditions', false));
 }