public hasAttribute ( $name ) : boolean | ||
return | boolean | whether the named attribute exists |
public function hasAttribute($name)
{
if ($attributes = $this->getViewState('Attributes', null)) {
return $attributes->contains($name);
} else {
return false;
}
}