/** * 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 'CreditCardStatusTypeId': // Gets the value for intCreditCardStatusTypeId (Not Null) // @return integer return $this->intCreditCardStatusTypeId; case 'CreditCardTypeId': // Gets the value for intCreditCardTypeId (Not Null) // @return integer return $this->intCreditCardTypeId; case 'CreditCardLastFour': // Gets the value for strCreditCardLastFour (Not Null) // @return string return $this->strCreditCardLastFour; case 'TransactionCode': // Gets the value for strTransactionCode (Unique) // @return string return $this->strTransactionCode; case 'AuthorizationCode': // Gets the value for strAuthorizationCode // @return string return $this->strAuthorizationCode; case 'AddressMatchCode': // Gets the value for strAddressMatchCode // @return string return $this->strAddressMatchCode; case 'DateAuthorized': // Gets the value for dttDateAuthorized // @return QDateTime return $this->dttDateAuthorized; case 'DateCaptured': // Gets the value for dttDateCaptured // @return QDateTime return $this->dttDateCaptured; case 'AmountCharged': // Gets the value for fltAmountCharged // @return double return $this->fltAmountCharged; case 'AmountFee': // Gets the value for fltAmountFee // @return double return $this->fltAmountFee; case 'AmountCleared': // Gets the value for fltAmountCleared // @return double return $this->fltAmountCleared; case 'PaypalBatchId': // Gets the value for intPaypalBatchId // @return integer return $this->intPaypalBatchId; case 'UnlinkedFlag': // Gets the value for blnUnlinkedFlag // @return boolean return $this->blnUnlinkedFlag; case 'StewardshipContributionId': // Gets the value for intStewardshipContributionId (Unique) // @return integer return $this->intStewardshipContributionId; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'PaypalBatch': // Gets the value for the PaypalBatch object referenced by intPaypalBatchId // @return PaypalBatch try { if (!$this->objPaypalBatch && !is_null($this->intPaypalBatchId)) { $this->objPaypalBatch = PaypalBatch::Load($this->intPaypalBatchId); } return $this->objPaypalBatch; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'StewardshipContribution': // Gets the value for the StewardshipContribution object referenced by intStewardshipContributionId (Unique) // @return StewardshipContribution try { if (!$this->objStewardshipContribution && !is_null($this->intStewardshipContributionId)) { $this->objStewardshipContribution = StewardshipContribution::Load($this->intStewardshipContributionId); } return $this->objStewardshipContribution; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'OnlineDonation': // Gets the value for the OnlineDonation object that uniquely references this CreditCardPayment // by objOnlineDonation (Unique) // @return OnlineDonation try { if ($this->objOnlineDonation === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objOnlineDonation) { $this->objOnlineDonation = OnlineDonation::LoadByCreditCardPaymentId($this->intId); } return $this->objOnlineDonation; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'SignupPayment': // Gets the value for the SignupPayment object that uniquely references this CreditCardPayment // by objSignupPayment (Unique) // @return SignupPayment try { if ($this->objSignupPayment === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objSignupPayment) { $this->objSignupPayment = SignupPayment::LoadByCreditCardPaymentId($this->intId); } return $this->objSignupPayment; } 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; } } }