/** * Apply the settings of a fieldset * * @param array $data Fieldset data * @param string $masterElement Optional name of a checkbox that voids all other elements if unchecked. */ protected function _processFieldset($data, $masterElement = null) { if ($masterElement) { $clearValues = !$data[$masterElement]; } else { $clearValues = false; } foreach ($data as $option => $value) { if ($value == '' or $clearValues and $option != $masterElement) { $value = null; } $this->_object->setConfig($option, $value); } }
/** {@inheritdoc} */ public function getAllConfig() { $config = parent::getAllConfig(); $config['Scan']['scanThisNetwork'] = $this->getConfig('scanThisNetwork'); return $config; }