public function GetAttributes($blnIncludeCustom = true, $blnIncludeAction = false)
{
$strToReturn = parent::GetAttributes($blnIncludeCustom, $blnIncludeAction);
if ($this->strGridLines == QGridLines::Horizontal) {
$strToReturn .= 'rules="rows" ';
} else {
if ($this->strGridLines == QGridLines::Vertical) {
$strToReturn .= 'rules="cols" ';
} else {
if ($this->strGridLines == QGridLines::Both) {
$strToReturn .= 'rules="all" ';
}
}
}
if ($this->intCellPadding >= 0) {
$strToReturn .= sprintf('cellpadding="%s" ', $this->intCellPadding);
}
if ($this->intCellSpacing >= 0) {
$strToReturn .= sprintf('cellspacing="%s" ', $this->intCellSpacing);
}
$strBorder = $this->strBorderWidth;
settype($strBorder, QType::Integer);
$strToReturn .= sprintf('border="%s" ', $strBorder);
if ($this->strBorderColor) {
$strToReturn .= sprintf('bordercolor="%s" ', $this->strBorderColor);
}
return $strToReturn;
}