/** * 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 'GroupId': // Gets the value for intGroupId (PK) // @return integer return $this->intGroupId; case 'Query': // Gets the value for strQuery // @return string return $this->strQuery; case 'DateRefreshed': // Gets the value for dttDateRefreshed // @return QDateTime return $this->dttDateRefreshed; case 'ProcessTimeMs': // Gets the value for intProcessTimeMs // @return integer return $this->intProcessTimeMs; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'Group': // Gets the value for the Group object referenced by intGroupId (PK) // @return Group try { if (!$this->objGroup && !is_null($this->intGroupId)) { $this->objGroup = Group::Load($this->intGroupId); } return $this->objGroup; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'SearchQuery': // Gets the value for the SearchQuery object that uniquely references this SmartGroup // by objSearchQuery (Unique) // @return SearchQuery try { if ($this->objSearchQuery === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objSearchQuery) { $this->objSearchQuery = SearchQuery::LoadBySmartGroupId($this->intGroupId); } return $this->objSearchQuery; } 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; } } }