public function __get($strName) { switch ($strName) { case "PrimaryKey": return $this->strPrimaryKey; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }