/** * Override method to perform a property "Get" * This will get the value of $strName * * @param string $strName Name of the property to get * @return mixed */ public function __get($strName) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'Id': // Gets the value for intId (Read-Only PK) // @return integer return $this->intId; case 'OrderNumber': // Gets the value for intOrderNumber // @return integer return $this->intOrderNumber; case 'Name': // Gets the value for strName (Not Null) // @return string return $this->strName; case 'AnnounceOnlyFlag': // Gets the value for blnAnnounceOnlyFlag // @return boolean return $this->blnAnnounceOnlyFlag; case 'Description': // Gets the value for strDescription // @return string return $this->strDescription; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'TopicLink': // Gets the value for the TopicLink object that uniquely references this Forum // by objTopicLink (Unique) // @return TopicLink try { if ($this->objTopicLink === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objTopicLink) { $this->objTopicLink = TopicLink::LoadByForumId($this->intId); } return $this->objTopicLink; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } //////////////////////////// // Virtual Object References (Many to Many and Reverse References) // (If restored via a "Many-to" expansion) //////////////////////////// //////////////////////////// // Virtual Object References (Many to Many and Reverse References) // (If restored via a "Many-to" expansion) //////////////////////////// case '__Restored': return $this->__blnRestored; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }