Пример #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 'SignupFormTypeId':
             // Gets the value for intSignupFormTypeId (Not Null)
             // @return integer
             return $this->intSignupFormTypeId;
         case 'MinistryId':
             // Gets the value for intMinistryId (Not Null)
             // @return integer
             return $this->intMinistryId;
         case 'Name':
             // Gets the value for strName
             // @return string
             return $this->strName;
         case 'Token':
             // Gets the value for strToken (Unique)
             // @return string
             return $this->strToken;
         case 'ActiveFlag':
             // Gets the value for blnActiveFlag
             // @return boolean
             return $this->blnActiveFlag;
         case 'ConfidentialFlag':
             // Gets the value for blnConfidentialFlag
             // @return boolean
             return $this->blnConfidentialFlag;
         case 'Description':
             // Gets the value for strDescription
             // @return string
             return $this->strDescription;
         case 'InformationUrl':
             // Gets the value for strInformationUrl
             // @return string
             return $this->strInformationUrl;
         case 'SupportEmail':
             // Gets the value for strSupportEmail (Not Null)
             // @return string
             return $this->strSupportEmail;
         case 'EmailNotification':
             // Gets the value for strEmailNotification
             // @return string
             return $this->strEmailNotification;
         case 'AllowOtherFlag':
             // Gets the value for blnAllowOtherFlag
             // @return boolean
             return $this->blnAllowOtherFlag;
         case 'AllowMultipleFlag':
             // Gets the value for blnAllowMultipleFlag
             // @return boolean
             return $this->blnAllowMultipleFlag;
         case 'SignupLimit':
             // Gets the value for intSignupLimit
             // @return integer
             return $this->intSignupLimit;
         case 'SignupMaleLimit':
             // Gets the value for intSignupMaleLimit
             // @return integer
             return $this->intSignupMaleLimit;
         case 'SignupFemaleLimit':
             // Gets the value for intSignupFemaleLimit
             // @return integer
             return $this->intSignupFemaleLimit;
         case 'FundingAccount':
             // Gets the value for strFundingAccount
             // @return string
             return $this->strFundingAccount;
         case 'DonationStewardshipFundId':
             // Gets the value for intDonationStewardshipFundId
             // @return integer
             return $this->intDonationStewardshipFundId;
         case 'DateCreated':
             // Gets the value for dttDateCreated (Not Null)
             // @return QDateTime
             return $this->dttDateCreated;
         case 'LoginNotRequiredFlag':
             // Gets the value for blnLoginNotRequiredFlag
             // @return boolean
             return $this->blnLoginNotRequiredFlag;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Ministry':
             // Gets the value for the Ministry object referenced by intMinistryId (Not Null)
             // @return Ministry
             try {
                 if (!$this->objMinistry && !is_null($this->intMinistryId)) {
                     $this->objMinistry = Ministry::Load($this->intMinistryId);
                 }
                 return $this->objMinistry;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'DonationStewardshipFund':
             // Gets the value for the StewardshipFund object referenced by intDonationStewardshipFundId
             // @return StewardshipFund
             try {
                 if (!$this->objDonationStewardshipFund && !is_null($this->intDonationStewardshipFundId)) {
                     $this->objDonationStewardshipFund = StewardshipFund::Load($this->intDonationStewardshipFundId);
                 }
                 return $this->objDonationStewardshipFund;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ClassMeeting':
             // Gets the value for the ClassMeeting object that uniquely references this SignupForm
             // by objClassMeeting (Unique)
             // @return ClassMeeting
             try {
                 if ($this->objClassMeeting === false) {
                     // We've attempted early binding -- and the reverse reference object does not exist
                     return null;
                 }
                 if (!$this->objClassMeeting) {
                     $this->objClassMeeting = ClassMeeting::LoadBySignupFormId($this->intId);
                 }
                 return $this->objClassMeeting;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'EventSignupForm':
             // Gets the value for the EventSignupForm object that uniquely references this SignupForm
             // by objEventSignupForm (Unique)
             // @return EventSignupForm
             try {
                 if ($this->objEventSignupForm === false) {
                     // We've attempted early binding -- and the reverse reference object does not exist
                     return null;
                 }
                 if (!$this->objEventSignupForm) {
                     $this->objEventSignupForm = EventSignupForm::LoadBySignupFormId($this->intId);
                 }
                 return $this->objEventSignupForm;
             } 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 '_FormProduct':
             // Gets the value for the private _objFormProduct (Read-Only)
             // if set due to an expansion on the form_product.signup_form_id reverse relationship
             // @return FormProduct
             return $this->_objFormProduct;
         case '_FormProductArray':
             // Gets the value for the private _objFormProductArray (Read-Only)
             // if set due to an ExpandAsArray on the form_product.signup_form_id reverse relationship
             // @return FormProduct[]
             return (array) $this->_objFormProductArray;
         case '_FormQuestion':
             // Gets the value for the private _objFormQuestion (Read-Only)
             // if set due to an expansion on the form_question.signup_form_id reverse relationship
             // @return FormQuestion
             return $this->_objFormQuestion;
         case '_FormQuestionArray':
             // Gets the value for the private _objFormQuestionArray (Read-Only)
             // if set due to an ExpandAsArray on the form_question.signup_form_id reverse relationship
             // @return FormQuestion[]
             return (array) $this->_objFormQuestionArray;
         case '_SignupEntry':
             // Gets the value for the private _objSignupEntry (Read-Only)
             // if set due to an expansion on the signup_entry.signup_form_id reverse relationship
             // @return SignupEntry
             return $this->_objSignupEntry;
         case '_SignupEntryArray':
             // Gets the value for the private _objSignupEntryArray (Read-Only)
             // if set due to an ExpandAsArray on the signup_entry.signup_form_id reverse relationship
             // @return SignupEntry[]
             return (array) $this->_objSignupEntryArray;
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }