public function __get($strName)
{
switch ($strName) {
// APPEARANCE
case "AlternateRowStyle":
return $this->objAlternateRowStyle;
case "BorderCollapse":
return $this->strBorderCollapse;
case "HeaderRowStyle":
return $this->objHeaderRowStyle;
case "HeaderLinkStyle":
return $this->objHeaderLinkStyle;
case "RowStyle":
return $this->objRowStyle;
// LAYOUT
// LAYOUT
case "CellPadding":
return $this->intCellPadding;
case "CellSpacing":
return $this->intCellSpacing;
case "GridLines":
return $this->strGridLines;
case "ShowHeader":
return $this->blnShowHeader;
case "ShowFooter":
return $this->blnShowFooter;
// MISC
// MISC
case "OrderByClause":
if ($this->intSortColumnIndex >= 0) {
if ($this->intSortDirection == 0) {
return $this->objColumnArray[$this->intSortColumnIndex]->OrderByClause;
} else {
return $this->objColumnArray[$this->intSortColumnIndex]->ReverseOrderByClause;
}
} else {
return null;
}
case "SortInfo":
if ($this->intSortColumnIndex >= 0) {
if ($this->intSortDirection == 0) {
$mixToReturn = $this->objColumnArray[$this->intSortColumnIndex]->SortByCommand;
if ($mixToReturn instanceof QQOrderBy) {
return $mixToReturn->GetAsManualSql();
} else {
return $mixToReturn;
}
} else {
$mixToReturn = $this->objColumnArray[$this->intSortColumnIndex]->ReverseSortByCommand;
if ($mixToReturn instanceof QQOrderBy) {
return $mixToReturn->GetAsManualSql();
} else {
return $mixToReturn;
}
}
} else {
return null;
}
case "CurrentRowIndex":
return $this->intCurrentRowIndex;
case "SortColumnIndex":
return $this->intSortColumnIndex;
case "SortDirection":
return $this->intSortDirection;
case 'LabelForNoneFound':
return $this->strLabelForNoneFound;
case 'LabelForOneFound':
return $this->strLabelForOneFound;
case 'LabelForMultipleFound':
return $this->strLabelForMultipleFound;
case 'LabelForPaginated':
return $this->strLabelForPaginated;
default:
try {
return parent::__get($strName);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
}