public setDisabled ( $value = TRUE ) : self | ||
Результат | self |
public function setDisabled($value = TRUE)
{
if ($this->disabled = (bool) $value) {
$this->setValue(NULL);
}
return $this;
}
/** * Disables or enables control or items. * @param bool|array * @return self */ public function setDisabled($value = TRUE) { if (!is_array($value)) { return parent::setDisabled($value); } parent::setDisabled(FALSE); $this->disabled = array_fill_keys($value, TRUE); $this->value = array_diff($this->value, $value); return $this; }