/** * 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 'GroupTypeId': // Gets the value for intGroupTypeId (Not Null) // @return integer return $this->intGroupTypeId; case 'MinistryId': // Gets the value for intMinistryId (Not Null) // @return integer return $this->intMinistryId; case 'Name': // Gets the value for strName // @return string return $this->strName; case 'Description': // Gets the value for strDescription // @return string return $this->strDescription; case 'ParentGroupId': // Gets the value for intParentGroupId // @return integer return $this->intParentGroupId; case 'HierarchyLevel': // Gets the value for intHierarchyLevel // @return integer return $this->intHierarchyLevel; case 'HierarchyOrderNumber': // Gets the value for intHierarchyOrderNumber // @return integer return $this->intHierarchyOrderNumber; case 'ConfidentialFlag': // Gets the value for blnConfidentialFlag // @return boolean return $this->blnConfidentialFlag; case 'EmailBroadcastTypeId': // Gets the value for intEmailBroadcastTypeId // @return integer return $this->intEmailBroadcastTypeId; case 'Token': // Gets the value for strToken (Unique) // @return string return $this->strToken; case 'ActiveFlag': // Gets the value for blnActiveFlag // @return boolean return $this->blnActiveFlag; case 'Status': // Gets the value for intStatus // @return integer return $this->intStatus; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'Ministry': // Gets the value for the Ministry object referenced by intMinistryId (Not Null) // @return Ministry try { if (!$this->objMinistry && !is_null($this->intMinistryId)) { $this->objMinistry = Ministry::Load($this->intMinistryId); } return $this->objMinistry; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'ParentGroup': // Gets the value for the Group object referenced by intParentGroupId // @return Group try { if (!$this->objParentGroup && !is_null($this->intParentGroupId)) { $this->objParentGroup = Group::Load($this->intParentGroupId); } return $this->objParentGroup; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'StatusObject': // Gets the value for the AvailabilityStatus object referenced by intStatus // @return AvailabilityStatus try { if (!$this->objStatusObject && !is_null($this->intStatus)) { $this->objStatusObject = AvailabilityStatus::Load($this->intStatus); } return $this->objStatusObject; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'GroupCategory': // Gets the value for the GroupCategory object that uniquely references this Group // by objGroupCategory (Unique) // @return GroupCategory try { if ($this->objGroupCategory === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objGroupCategory) { $this->objGroupCategory = GroupCategory::LoadByGroupId($this->intId); } return $this->objGroupCategory; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'GrowthGroup': // Gets the value for the GrowthGroup object that uniquely references this Group // by objGrowthGroup (Unique) // @return GrowthGroup try { if ($this->objGrowthGroup === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objGrowthGroup) { $this->objGrowthGroup = GrowthGroup::LoadByGroupId($this->intId); } return $this->objGrowthGroup; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'SmartGroup': // Gets the value for the SmartGroup object that uniquely references this Group // by objSmartGroup (Unique) // @return SmartGroup try { if ($this->objSmartGroup === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objSmartGroup) { $this->objSmartGroup = SmartGroup::LoadByGroupId($this->intId); } return $this->objSmartGroup; } 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 '_EmailMessageRoute': // Gets the value for the private _objEmailMessageRoute (Read-Only) // if set due to an expansion on the email_message_route.group_id reverse relationship // @return EmailMessageRoute return $this->_objEmailMessageRoute; case '_EmailMessageRouteArray': // Gets the value for the private _objEmailMessageRouteArray (Read-Only) // if set due to an ExpandAsArray on the email_message_route.group_id reverse relationship // @return EmailMessageRoute[] return (array) $this->_objEmailMessageRouteArray; case '_ChildGroup': // Gets the value for the private _objChildGroup (Read-Only) // if set due to an expansion on the group.parent_group_id reverse relationship // @return Group return $this->_objChildGroup; case '_ChildGroupArray': // Gets the value for the private _objChildGroupArray (Read-Only) // if set due to an ExpandAsArray on the group.parent_group_id reverse relationship // @return Group[] return (array) $this->_objChildGroupArray; case '_GroupAuthorizedSender': // Gets the value for the private _objGroupAuthorizedSender (Read-Only) // if set due to an expansion on the group_authorized_sender.group_id reverse relationship // @return GroupAuthorizedSender return $this->_objGroupAuthorizedSender; case '_GroupAuthorizedSenderArray': // Gets the value for the private _objGroupAuthorizedSenderArray (Read-Only) // if set due to an ExpandAsArray on the group_authorized_sender.group_id reverse relationship // @return GroupAuthorizedSender[] return (array) $this->_objGroupAuthorizedSenderArray; case '_GroupParticipation': // Gets the value for the private _objGroupParticipation (Read-Only) // if set due to an expansion on the group_participation.group_id reverse relationship // @return GroupParticipation return $this->_objGroupParticipation; case '_GroupParticipationArray': // Gets the value for the private _objGroupParticipationArray (Read-Only) // if set due to an ExpandAsArray on the group_participation.group_id reverse relationship // @return GroupParticipation[] return (array) $this->_objGroupParticipationArray; case '_SmsMessage': // Gets the value for the private _objSmsMessage (Read-Only) // if set due to an expansion on the sms_message.group_id reverse relationship // @return SmsMessage return $this->_objSmsMessage; case '_SmsMessageArray': // Gets the value for the private _objSmsMessageArray (Read-Only) // if set due to an ExpandAsArray on the sms_message.group_id reverse relationship // @return SmsMessage[] return (array) $this->_objSmsMessageArray; case '__Restored': return $this->__blnRestored; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }