/** * Reload this WpPollsq 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 WpPollsq object.'); } $this->DeleteCache(); // Reload the Object $objReloaded = WpPollsq::Load($this->intPollqId); // Update $this's local variables to match $this->strPollqQuestion = $objReloaded->strPollqQuestion; $this->strPollqTimestamp = $objReloaded->strPollqTimestamp; $this->intPollqTotalvotes = $objReloaded->intPollqTotalvotes; $this->blnPollqActive = $objReloaded->blnPollqActive; $this->strPollqExpiry = $objReloaded->strPollqExpiry; $this->intPollqMultiple = $objReloaded->intPollqMultiple; $this->intPollqTotalvoters = $objReloaded->intPollqTotalvoters; }
/** * 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 'PollaAid': /** * Gets the value for intPollaAid (Read-Only PK) * @return integer */ return $this->intPollaAid; case 'PollaQid': /** * Gets the value for intPollaQid (Not Null) * @return integer */ return $this->intPollaQid; case 'PollaAnswers': /** * Gets the value for strPollaAnswers (Not Null) * @return string */ return $this->strPollaAnswers; case 'PollaVotes': /** * Gets the value for intPollaVotes (Not Null) * @return integer */ return $this->intPollaVotes; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'PollaQidObject': /** * Gets the value for the WpPollsq object referenced by intPollaQid (Not Null) * @return WpPollsq */ try { if (!$this->objPollaQidObject && !is_null($this->intPollaQid)) { $this->objPollaQidObject = WpPollsq::Load($this->intPollaQid); } return $this->objPollaQidObject; } 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 '_WpPollsipAsPollipAid': /** * Gets the value for the private _objWpPollsipAsPollipAid (Read-Only) * if set due to an expansion on the wp_pollsip.pollip_aid reverse relationship * @return WpPollsip */ return $this->_objWpPollsipAsPollipAid; case '_WpPollsipAsPollipAidArray': /** * Gets the value for the private _objWpPollsipAsPollipAidArray (Read-Only) * if set due to an ExpandAsArray on the wp_pollsip.pollip_aid reverse relationship * @return WpPollsip[] */ return $this->_objWpPollsipAsPollipAidArray; 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 '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; } } }