public function save() { $name = $this->getName(); if (!Input::has($name)) { Input::merge([$name => 0]); } parent::save(); }
/** * @return array */ public function getParams() { return parent::getParams() + ['options' => $this->getOptions(), 'nullable' => $this->isNullable()]; }
/** * @param string $attribute * @param mixed $value */ protected function setValue($attribute, $value) { if ($this->isFilterHtml()) { // TODO: add filter html tags } parent::setValue($attribute, WYSIWYGHelper::applyFilter($this->getEditor(), $value)); }
/** * @return array */ public function getParams() { return parent::getParams() + ['seconds' => $this->hasSeconds(), 'format' => $this->getFormat(), 'pickerFormat' => $this->getPickerFormat()]; }