protected getValueAttribute ( ) : string | ||
return | string | the value attribute to be rendered |
protected function getValueAttribute()
{
if (($value = $this->getValue()) !== '') {
return $value;
} else {
$attributes = $this->getViewState('InputAttributes', null);
if ($attributes && $attributes->contains('value')) {
return $attributes->itemAt('value');
} else {
if ($this->hasAttribute('value')) {
return $this->getAttribute('value');
} else {
return '';
}
}
}
}
/** * @return string the value attribute to be rendered */ protected function getValueAttribute() { if (($value = parent::getValueAttribute()) === '') { return $this->getUniqueID(); } else { return $value; } }