/** * 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 'PersonId': // Gets the value for intPersonId (Unique) // @return integer return $this->intPersonId; case 'ActiveFlag': // Gets the value for blnActiveFlag // @return boolean return $this->blnActiveFlag; case 'Username': // Gets the value for strUsername (Unique) // @return string return $this->strUsername; case 'Password': // Gets the value for strPassword // @return string return $this->strPassword; case 'LostPasswordQuestion': // Gets the value for strLostPasswordQuestion // @return string return $this->strLostPasswordQuestion; case 'LostPasswordAnswer': // Gets the value for strLostPasswordAnswer // @return string return $this->strLostPasswordAnswer; case 'TemporaryPasswordFlag': // Gets the value for blnTemporaryPasswordFlag // @return boolean return $this->blnTemporaryPasswordFlag; case 'DateRegistered': // Gets the value for dttDateRegistered (Not Null) // @return QDateTime return $this->dttDateRegistered; case 'DateLastLogin': // Gets the value for dttDateLastLogin // @return QDateTime return $this->dttDateLastLogin; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'Person': // Gets the value for the Person object referenced by intPersonId (Unique) // @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 'ProvisionalPublicLogin': // Gets the value for the ProvisionalPublicLogin object that uniquely references this PublicLogin // by objProvisionalPublicLogin (Unique) // @return ProvisionalPublicLogin try { if ($this->objProvisionalPublicLogin === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objProvisionalPublicLogin) { $this->objProvisionalPublicLogin = ProvisionalPublicLogin::LoadByPublicLoginId($this->intId); } return $this->objProvisionalPublicLogin; } 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; } } }