__toString(). * * @return string a nicely formatted string representation of this object */ public function __toString() { return sprintf('%s', $this->Name); } public function __get($strName) { switch ($strName) { case 'DocType': return ($this->DocTypeId) ? PageDocType::$NameArray[$this->DocTypeId] : null; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } } /* public function __set($strName, $mixValue) { switch ($strName) { case 'SomeNewProperty': try { return ($this->strSomeNewProperty = QType::Cast($mixValue, QType::String)); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } default: try { return (parent::__set($strName, $mixValue)); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } } */ } ?>