/**
  * Static Helper Method to Create using PK arguments
  * You must pass in the PK arguments on an object to load, or leave it blank to create a new one.
  * If you want to load via QueryString or PathInfo, use the CreateFromQueryString or CreateFromPathInfo
  * static helper methods.  Finally, specify a CreateType to define whether or not we are only allowed to 
  * edit, or if we are also allowed to create a new one, etc.
  * 
  * @param mixed $objParentObject QForm or QPanel which will be using this ParentPagerHouseholdMetaControl
  * @param integer $intId primary key value
  * @param QMetaControlCreateType $intCreateType rules governing ParentPagerHousehold object creation - defaults to CreateOrEdit
  * @return ParentPagerHouseholdMetaControl
  */
 public static function Create($objParentObject, $intId = null, $intCreateType = QMetaControlCreateType::CreateOrEdit)
 {
     // Attempt to Load from PK Arguments
     if (strlen($intId)) {
         $objParentPagerHousehold = ParentPagerHousehold::Load($intId);
         // ParentPagerHousehold was found -- return it!
         if ($objParentPagerHousehold) {
             return new ParentPagerHouseholdMetaControl($objParentObject, $objParentPagerHousehold);
         } else {
             if ($intCreateType != QMetaControlCreateType::CreateOnRecordNotFound) {
                 throw new QCallerException('Could not find a ParentPagerHousehold object with PK arguments: ' . $intId);
             }
         }
         // If EditOnly is specified, throw an exception
     } else {
         if ($intCreateType == QMetaControlCreateType::EditOnly) {
             throw new QCallerException('No PK arguments specified');
         }
     }
     // If we are here, then we need to create a new record
     return new ParentPagerHouseholdMetaControl($objParentObject, new ParentPagerHousehold());
 }
 /**
  * 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 'ServerIdentifier':
             // Gets the value for intServerIdentifier (Unique)
             // @return integer
             return $this->intServerIdentifier;
         case 'ParentPagerIndividualId':
             // Gets the value for intParentPagerIndividualId
             // @return integer
             return $this->intParentPagerIndividualId;
         case 'ParentPagerHouseholdId':
             // Gets the value for intParentPagerHouseholdId
             // @return integer
             return $this->intParentPagerHouseholdId;
         case 'Address1':
             // Gets the value for strAddress1
             // @return string
             return $this->strAddress1;
         case 'Address2':
             // Gets the value for strAddress2
             // @return string
             return $this->strAddress2;
         case 'Address3':
             // Gets the value for strAddress3
             // @return string
             return $this->strAddress3;
         case 'City':
             // Gets the value for strCity
             // @return string
             return $this->strCity;
         case 'State':
             // Gets the value for strState
             // @return string
             return $this->strState;
         case 'ZipCode':
             // Gets the value for strZipCode
             // @return string
             return $this->strZipCode;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'ParentPagerIndividual':
             // Gets the value for the ParentPagerIndividual object referenced by intParentPagerIndividualId
             // @return ParentPagerIndividual
             try {
                 if (!$this->objParentPagerIndividual && !is_null($this->intParentPagerIndividualId)) {
                     $this->objParentPagerIndividual = ParentPagerIndividual::Load($this->intParentPagerIndividualId);
                 }
                 return $this->objParentPagerIndividual;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ParentPagerHousehold':
             // Gets the value for the ParentPagerHousehold object referenced by intParentPagerHouseholdId
             // @return ParentPagerHousehold
             try {
                 if (!$this->objParentPagerHousehold && !is_null($this->intParentPagerHouseholdId)) {
                     $this->objParentPagerHousehold = ParentPagerHousehold::Load($this->intParentPagerHouseholdId);
                 }
                 return $this->objParentPagerHousehold;
             } 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;
             }
     }
 }
 /**
  * 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 'ServerIdentifier':
             // Gets the value for intServerIdentifier (Unique)
             // @return integer
             return $this->intServerIdentifier;
         case 'PersonId':
             // Gets the value for intPersonId
             // @return integer
             return $this->intPersonId;
         case 'HiddenFlag':
             // Gets the value for blnHiddenFlag (Not Null)
             // @return boolean
             return $this->blnHiddenFlag;
         case 'ParentPagerSyncStatusTypeId':
             // Gets the value for intParentPagerSyncStatusTypeId (Not Null)
             // @return integer
             return $this->intParentPagerSyncStatusTypeId;
         case 'ParentPagerHouseholdId':
             // Gets the value for intParentPagerHouseholdId
             // @return integer
             return $this->intParentPagerHouseholdId;
         case 'FirstName':
             // Gets the value for strFirstName
             // @return string
             return $this->strFirstName;
         case 'MiddleName':
             // Gets the value for strMiddleName
             // @return string
             return $this->strMiddleName;
         case 'LastName':
             // Gets the value for strLastName
             // @return string
             return $this->strLastName;
         case 'Prefix':
             // Gets the value for strPrefix
             // @return string
             return $this->strPrefix;
         case 'Suffix':
             // Gets the value for strSuffix
             // @return string
             return $this->strSuffix;
         case 'Nickname':
             // Gets the value for strNickname
             // @return string
             return $this->strNickname;
         case 'GraduationYear':
             // Gets the value for intGraduationYear
             // @return integer
             return $this->intGraduationYear;
         case 'Gender':
             // Gets the value for strGender
             // @return string
             return $this->strGender;
         case 'DateOfBirth':
             // Gets the value for dttDateOfBirth
             // @return QDateTime
             return $this->dttDateOfBirth;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Person':
             // Gets the value for the Person object referenced by intPersonId
             // @return Person
             try {
                 if (!$this->objPerson && !is_null($this->intPersonId)) {
                     $this->objPerson = Person::Load($this->intPersonId);
                 }
                 return $this->objPerson;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ParentPagerHousehold':
             // Gets the value for the ParentPagerHousehold object referenced by intParentPagerHouseholdId
             // @return ParentPagerHousehold
             try {
                 if (!$this->objParentPagerHousehold && !is_null($this->intParentPagerHouseholdId)) {
                     $this->objParentPagerHousehold = ParentPagerHousehold::Load($this->intParentPagerHouseholdId);
                 }
                 return $this->objParentPagerHousehold;
             } 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 '_ParentPagerAddress':
             // Gets the value for the private _objParentPagerAddress (Read-Only)
             // if set due to an expansion on the parent_pager_address.parent_pager_individual_id reverse relationship
             // @return ParentPagerAddress
             return $this->_objParentPagerAddress;
         case '_ParentPagerAddressArray':
             // Gets the value for the private _objParentPagerAddressArray (Read-Only)
             // if set due to an ExpandAsArray on the parent_pager_address.parent_pager_individual_id reverse relationship
             // @return ParentPagerAddress[]
             return (array) $this->_objParentPagerAddressArray;
         case '_ParentPagerAttendantHistory':
             // Gets the value for the private _objParentPagerAttendantHistory (Read-Only)
             // if set due to an expansion on the parent_pager_attendant_history.parent_pager_individual_id reverse relationship
             // @return ParentPagerAttendantHistory
             return $this->_objParentPagerAttendantHistory;
         case '_ParentPagerAttendantHistoryArray':
             // Gets the value for the private _objParentPagerAttendantHistoryArray (Read-Only)
             // if set due to an ExpandAsArray on the parent_pager_attendant_history.parent_pager_individual_id reverse relationship
             // @return ParentPagerAttendantHistory[]
             return (array) $this->_objParentPagerAttendantHistoryArray;
         case '_ParentPagerChildHistoryAsPickupBy':
             // Gets the value for the private _objParentPagerChildHistoryAsPickupBy (Read-Only)
             // if set due to an expansion on the parent_pager_child_history.pickup_by_parent_pager_individual_id reverse relationship
             // @return ParentPagerChildHistory
             return $this->_objParentPagerChildHistoryAsPickupBy;
         case '_ParentPagerChildHistoryAsPickupByArray':
             // Gets the value for the private _objParentPagerChildHistoryAsPickupByArray (Read-Only)
             // if set due to an ExpandAsArray on the parent_pager_child_history.pickup_by_parent_pager_individual_id reverse relationship
             // @return ParentPagerChildHistory[]
             return (array) $this->_objParentPagerChildHistoryAsPickupByArray;
         case '_ParentPagerChildHistory':
             // Gets the value for the private _objParentPagerChildHistory (Read-Only)
             // if set due to an expansion on the parent_pager_child_history.parent_pager_individual_id reverse relationship
             // @return ParentPagerChildHistory
             return $this->_objParentPagerChildHistory;
         case '_ParentPagerChildHistoryArray':
             // Gets the value for the private _objParentPagerChildHistoryArray (Read-Only)
             // if set due to an ExpandAsArray on the parent_pager_child_history.parent_pager_individual_id reverse relationship
             // @return ParentPagerChildHistory[]
             return (array) $this->_objParentPagerChildHistoryArray;
         case '_ParentPagerChildHistoryAsDropoffBy':
             // Gets the value for the private _objParentPagerChildHistoryAsDropoffBy (Read-Only)
             // if set due to an expansion on the parent_pager_child_history.dropoff_by_parent_pager_individual_id reverse relationship
             // @return ParentPagerChildHistory
             return $this->_objParentPagerChildHistoryAsDropoffBy;
         case '_ParentPagerChildHistoryAsDropoffByArray':
             // Gets the value for the private _objParentPagerChildHistoryAsDropoffByArray (Read-Only)
             // if set due to an ExpandAsArray on the parent_pager_child_history.dropoff_by_parent_pager_individual_id reverse relationship
             // @return ParentPagerChildHistory[]
             return (array) $this->_objParentPagerChildHistoryAsDropoffByArray;
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Reload this ParentPagerHousehold from the database.
  * @return void
  */
 public function Reload()
 {
     // Make sure we are actually Restored from the database
     if (!$this->__blnRestored) {
         throw new QCallerException('Cannot call Reload() on a new, unsaved ParentPagerHousehold object.');
     }
     // Reload the Object
     $objReloaded = ParentPagerHousehold::Load($this->intId);
     // Update $this's local variables to match
     $this->intServerIdentifier = $objReloaded->intServerIdentifier;
     $this->HouseholdId = $objReloaded->HouseholdId;
     $this->blnHiddenFlag = $objReloaded->blnHiddenFlag;
     $this->ParentPagerSyncStatusTypeId = $objReloaded->ParentPagerSyncStatusTypeId;
     $this->strName = $objReloaded->strName;
 }