/** * Reload this WpPollsa 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 WpPollsa object.'); } $this->DeleteCache(); // Reload the Object $objReloaded = WpPollsa::Load($this->intPollaAid); // Update $this's local variables to match $this->PollaQid = $objReloaded->PollaQid; $this->strPollaAnswers = $objReloaded->strPollaAnswers; $this->intPollaVotes = $objReloaded->intPollaVotes; }
/** * 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 'PollipId': /** * Gets the value for intPollipId (Read-Only PK) * @return integer */ return $this->intPollipId; case 'PollipQid': /** * Gets the value for strPollipQid (Not Null) * @return string */ return $this->strPollipQid; case 'PollipAid': /** * Gets the value for strPollipAid (Not Null) * @return string */ return $this->strPollipAid; case 'PollipIp': /** * Gets the value for strPollipIp (Not Null) * @return string */ return $this->strPollipIp; case 'PollipHost': /** * Gets the value for strPollipHost (Not Null) * @return string */ return $this->strPollipHost; case 'PollipTimestamp': /** * Gets the value for strPollipTimestamp (Not Null) * @return string */ return $this->strPollipTimestamp; case 'PollipUser': /** * Gets the value for strPollipUser (Not Null) * @return string */ return $this->strPollipUser; case 'PollipUserid': /** * Gets the value for intPollipUserid (Not Null) * @return integer */ return $this->intPollipUserid; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'PollipQidObject': /** * Gets the value for the WpPollsq object referenced by strPollipQid (Not Null) * @return WpPollsq */ try { if (!$this->objPollipQidObject && !is_null($this->strPollipQid)) { $this->objPollipQidObject = WpPollsq::Load($this->strPollipQid); } return $this->objPollipQidObject; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'PollipAidObject': /** * Gets the value for the WpPollsa object referenced by strPollipAid (Not Null) * @return WpPollsa */ try { if (!$this->objPollipAidObject && !is_null($this->strPollipAid)) { $this->objPollipAidObject = WpPollsa::Load($this->strPollipAid); } return $this->objPollipAidObject; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'PollipUseridObject': /** * Gets the value for the WpUsers object referenced by intPollipUserid (Not Null) * @return WpUsers */ try { if (!$this->objPollipUseridObject && !is_null($this->intPollipUserid)) { $this->objPollipUseridObject = WpUsers::Load($this->intPollipUserid); } return $this->objPollipUseridObject; } 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; } } }