public function radioList($items, $options = []) { if (!isset($options['itemOptions'])) { $options['itemOptions'] = ['labelOptions' => ['class' => 'radio-inline radio-styled']]; } $items = parent::checkboxList($items, $options); return $items; }
public function bitMask($items, $options = []) { $result = []; foreach ($items as $id => $name) { if ($this->model->{$this->attribute} & 1 << (int) $id - 1) { $result[] = $id; } } $this->model->{$this->attribute} = $result; return parent::checkboxList($items, $options); }