/**
* Adds attributes to renderer.
* @param THtmlWriter the renderer
*/
protected function addAttributesToRender($writer)
{
parent::addAttributesToRender($writer);
if (($scope = $this->getScope()) !== TTableHeaderScope::NotSet) {
$writer->addAttribute('scope', $scope === TTableHeaderScope::Row ? 'row' : 'col');
}
if (($text = $this->getAbbreviatedText()) !== '') {
$writer->addAttribute('abbr', $text);
}
if (($text = $this->getCategoryText()) !== '') {
$writer->addAttribute('axis', $text);
}
}