public function GetItem($intIndex)
{
try {
$intIndex = QType::Cast($intIndex, QType::Integer);
} catch (QInvalidCastException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
if ($intIndex < 0 || $intIndex >= count($this->objItemsArray)) {
throw new QIndexOutOfRangeException($intIndex, "GetItem()");
}
return $this->objItemsArray[$intIndex];
}