/** * Set disabled state * * @param boolean $value * @return static * @author Marien den Besten */ public function setDisabled($value = null) { if (is_bool($value) || is_null($value)) { return parent::setDisabled($value); } //convert to array $this->disabled = !is_array($this->disabled) ? array() : $this->disabled; $value_processed = !is_array($value) ? array($value) : $value; $this->disabled = array_merge($this->disabled, $value_processed); return $this; }
public function setDisabled($bool = null) { if (is_array($bool)) { $this->disable_options = $bool; } else { $this->disable_options = null; parent::setDisabled($bool); } return $this; }
/** * Set disabled * * @param boolean $bool * @return \FormHandler\Field\Field */ public function setDisabled($bool = true) { $this->empty->setDisabled($bool); $this->unit->setDisabled($bool); $this->temperature->setDisabled($bool); return parent::setDisabled($bool); }
/** * Set disabled * * @param boolean $bool * @return \FormHandler\Field\Field */ public function setDisabled($bool = true) { $this->field_on->setDisabled($bool); $this->field_off->setDisabled($bool); return parent::setDisabled($bool); }
/** * Set disabled * * @param boolean $bool * @return \FormHandler\Field\Field */ public function setDisabled($bool = true) { $this->empty->setDisabled($bool); return parent::setDisabled($bool); }