Пример #1
0
 /**
  * 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 'StewardshipBatchStatusTypeId':
             // Gets the value for intStewardshipBatchStatusTypeId (Not Null)
             // @return integer
             return $this->intStewardshipBatchStatusTypeId;
         case 'DateEntered':
             // Gets the value for dttDateEntered (Not Null)
             // @return QDateTime
             return $this->dttDateEntered;
         case 'DateCredited':
             // Gets the value for dttDateCredited (Not Null)
             // @return QDateTime
             return $this->dttDateCredited;
         case 'BatchLabel':
             // Gets the value for strBatchLabel (Not Null)
             // @return string
             return $this->strBatchLabel;
         case 'Description':
             // Gets the value for strDescription
             // @return string
             return $this->strDescription;
         case 'ItemCount':
             // Gets the value for intItemCount
             // @return integer
             return $this->intItemCount;
         case 'ReportedTotalAmount':
             // Gets the value for fltReportedTotalAmount
             // @return double
             return $this->fltReportedTotalAmount;
         case 'ActualTotalAmount':
             // Gets the value for fltActualTotalAmount
             // @return double
             return $this->fltActualTotalAmount;
         case 'PostedTotalAmount':
             // Gets the value for fltPostedTotalAmount
             // @return double
             return $this->fltPostedTotalAmount;
         case 'CreatedByLoginId':
             // Gets the value for intCreatedByLoginId (Not Null)
             // @return integer
             return $this->intCreatedByLoginId;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'CreatedByLogin':
             // Gets the value for the Login object referenced by intCreatedByLoginId (Not Null)
             // @return Login
             try {
                 if (!$this->objCreatedByLogin && !is_null($this->intCreatedByLoginId)) {
                     $this->objCreatedByLogin = Login::Load($this->intCreatedByLoginId);
                 }
                 return $this->objCreatedByLogin;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'PaypalBatch':
             // Gets the value for the PaypalBatch object that uniquely references this StewardshipBatch
             // by objPaypalBatch (Unique)
             // @return PaypalBatch
             try {
                 if ($this->objPaypalBatch === false) {
                     // We've attempted early binding -- and the reverse reference object does not exist
                     return null;
                 }
                 if (!$this->objPaypalBatch) {
                     $this->objPaypalBatch = PaypalBatch::LoadByStewardshipBatchId($this->intId);
                 }
                 return $this->objPaypalBatch;
             } 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 '_StewardshipContribution':
             // Gets the value for the private _objStewardshipContribution (Read-Only)
             // if set due to an expansion on the stewardship_contribution.stewardship_batch_id reverse relationship
             // @return StewardshipContribution
             return $this->_objStewardshipContribution;
         case '_StewardshipContributionArray':
             // Gets the value for the private _objStewardshipContributionArray (Read-Only)
             // if set due to an ExpandAsArray on the stewardship_contribution.stewardship_batch_id reverse relationship
             // @return StewardshipContribution[]
             return (array) $this->_objStewardshipContributionArray;
         case '_StewardshipPost':
             // Gets the value for the private _objStewardshipPost (Read-Only)
             // if set due to an expansion on the stewardship_post.stewardship_batch_id reverse relationship
             // @return StewardshipPost
             return $this->_objStewardshipPost;
         case '_StewardshipPostArray':
             // Gets the value for the private _objStewardshipPostArray (Read-Only)
             // if set due to an ExpandAsArray on the stewardship_post.stewardship_batch_id reverse relationship
             // @return StewardshipPost[]
             return (array) $this->_objStewardshipPostArray;
         case '_StewardshipStack':
             // Gets the value for the private _objStewardshipStack (Read-Only)
             // if set due to an expansion on the stewardship_stack.stewardship_batch_id reverse relationship
             // @return StewardshipStack
             return $this->_objStewardshipStack;
         case '_StewardshipStackArray':
             // Gets the value for the private _objStewardshipStackArray (Read-Only)
             // if set due to an ExpandAsArray on the stewardship_stack.stewardship_batch_id reverse relationship
             // @return StewardshipStack[]
             return (array) $this->_objStewardshipStackArray;
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }