示例#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 'SignupFormId':
             // Gets the value for intSignupFormId (Not Null)
             // @return integer
             return $this->intSignupFormId;
         case 'PersonId':
             // Gets the value for intPersonId
             // @return integer
             return $this->intPersonId;
         case 'SignupByPersonId':
             // Gets the value for intSignupByPersonId
             // @return integer
             return $this->intSignupByPersonId;
         case 'SignupEntryStatusTypeId':
             // Gets the value for intSignupEntryStatusTypeId (Not Null)
             // @return integer
             return $this->intSignupEntryStatusTypeId;
         case 'DateCreated':
             // Gets the value for dttDateCreated (Not Null)
             // @return QDateTime
             return $this->dttDateCreated;
         case 'DateSubmitted':
             // Gets the value for dttDateSubmitted
             // @return QDateTime
             return $this->dttDateSubmitted;
         case 'AmountTotal':
             // Gets the value for fltAmountTotal
             // @return double
             return $this->fltAmountTotal;
         case 'AmountPaid':
             // Gets the value for fltAmountPaid
             // @return double
             return $this->fltAmountPaid;
         case 'AmountBalance':
             // Gets the value for fltAmountBalance
             // @return double
             return $this->fltAmountBalance;
         case 'InternalNotes':
             // Gets the value for strInternalNotes
             // @return string
             return $this->strInternalNotes;
         case 'CommunicationsEntryId':
             // Gets the value for intCommunicationsEntryId
             // @return integer
             return $this->intCommunicationsEntryId;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'SignupForm':
             // Gets the value for the SignupForm object referenced by intSignupFormId (Not Null)
             // @return SignupForm
             try {
                 if (!$this->objSignupForm && !is_null($this->intSignupFormId)) {
                     $this->objSignupForm = SignupForm::Load($this->intSignupFormId);
                 }
                 return $this->objSignupForm;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Person':
             // Gets the value for the Person object referenced by intPersonId
             // @return Person
             try {
                 if (!$this->objPerson && !is_null($this->intPersonId)) {
                     $this->objPerson = Person::Load($this->intPersonId);
                 }
                 return $this->objPerson;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'SignupByPerson':
             // Gets the value for the Person object referenced by intSignupByPersonId
             // @return Person
             try {
                 if (!$this->objSignupByPerson && !is_null($this->intSignupByPersonId)) {
                     $this->objSignupByPerson = Person::Load($this->intSignupByPersonId);
                 }
                 return $this->objSignupByPerson;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CommunicationsEntry':
             // Gets the value for the CommunicationListEntry object referenced by intCommunicationsEntryId
             // @return CommunicationListEntry
             try {
                 if (!$this->objCommunicationsEntry && !is_null($this->intCommunicationsEntryId)) {
                     $this->objCommunicationsEntry = CommunicationListEntry::Load($this->intCommunicationsEntryId);
                 }
                 return $this->objCommunicationsEntry;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ClassRegistration':
             // Gets the value for the ClassRegistration object that uniquely references this SignupEntry
             // by objClassRegistration (Unique)
             // @return ClassRegistration
             try {
                 if ($this->objClassRegistration === false) {
                     // We've attempted early binding -- and the reverse reference object does not exist
                     return null;
                 }
                 if (!$this->objClassRegistration) {
                     $this->objClassRegistration = ClassRegistration::LoadBySignupEntryId($this->intId);
                 }
                 return $this->objClassRegistration;
             } 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 '_FormAnswer':
             // Gets the value for the private _objFormAnswer (Read-Only)
             // if set due to an expansion on the form_answer.signup_entry_id reverse relationship
             // @return FormAnswer
             return $this->_objFormAnswer;
         case '_FormAnswerArray':
             // Gets the value for the private _objFormAnswerArray (Read-Only)
             // if set due to an ExpandAsArray on the form_answer.signup_entry_id reverse relationship
             // @return FormAnswer[]
             return (array) $this->_objFormAnswerArray;
         case '_SignupPayment':
             // Gets the value for the private _objSignupPayment (Read-Only)
             // if set due to an expansion on the signup_payment.signup_entry_id reverse relationship
             // @return SignupPayment
             return $this->_objSignupPayment;
         case '_SignupPaymentArray':
             // Gets the value for the private _objSignupPaymentArray (Read-Only)
             // if set due to an ExpandAsArray on the signup_payment.signup_entry_id reverse relationship
             // @return SignupPayment[]
             return (array) $this->_objSignupPaymentArray;
         case '_SignupProduct':
             // Gets the value for the private _objSignupProduct (Read-Only)
             // if set due to an expansion on the signup_product.signup_entry_id reverse relationship
             // @return SignupProduct
             return $this->_objSignupProduct;
         case '_SignupProductArray':
             // Gets the value for the private _objSignupProductArray (Read-Only)
             // if set due to an ExpandAsArray on the signup_product.signup_entry_id reverse relationship
             // @return SignupProduct[]
             return (array) $this->_objSignupProductArray;
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
示例#2
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 'EmailMessageId':
             // Gets the value for intEmailMessageId (Not Null)
             // @return integer
             return $this->intEmailMessageId;
         case 'GroupId':
             // Gets the value for intGroupId
             // @return integer
             return $this->intGroupId;
         case 'CommunicationListId':
             // Gets the value for intCommunicationListId
             // @return integer
             return $this->intCommunicationListId;
         case 'LoginId':
             // Gets the value for intLoginId
             // @return integer
             return $this->intLoginId;
         case 'CommunicationListEntryId':
             // Gets the value for intCommunicationListEntryId
             // @return integer
             return $this->intCommunicationListEntryId;
         case 'PersonId':
             // Gets the value for intPersonId
             // @return integer
             return $this->intPersonId;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'EmailMessage':
             // Gets the value for the EmailMessage object referenced by intEmailMessageId (Not Null)
             // @return EmailMessage
             try {
                 if (!$this->objEmailMessage && !is_null($this->intEmailMessageId)) {
                     $this->objEmailMessage = EmailMessage::Load($this->intEmailMessageId);
                 }
                 return $this->objEmailMessage;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Group':
             // Gets the value for the Group object referenced by intGroupId
             // @return Group
             try {
                 if (!$this->objGroup && !is_null($this->intGroupId)) {
                     $this->objGroup = Group::Load($this->intGroupId);
                 }
                 return $this->objGroup;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CommunicationList':
             // Gets the value for the CommunicationList object referenced by intCommunicationListId
             // @return CommunicationList
             try {
                 if (!$this->objCommunicationList && !is_null($this->intCommunicationListId)) {
                     $this->objCommunicationList = CommunicationList::Load($this->intCommunicationListId);
                 }
                 return $this->objCommunicationList;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Login':
             // Gets the value for the Login object referenced by intLoginId
             // @return Login
             try {
                 if (!$this->objLogin && !is_null($this->intLoginId)) {
                     $this->objLogin = Login::Load($this->intLoginId);
                 }
                 return $this->objLogin;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CommunicationListEntry':
             // Gets the value for the CommunicationListEntry object referenced by intCommunicationListEntryId
             // @return CommunicationListEntry
             try {
                 if (!$this->objCommunicationListEntry && !is_null($this->intCommunicationListEntryId)) {
                     $this->objCommunicationListEntry = CommunicationListEntry::Load($this->intCommunicationListEntryId);
                 }
                 return $this->objCommunicationListEntry;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Person':
             // Gets the value for the Person object referenced by intPersonId
             // @return Person
             try {
                 if (!$this->objPerson && !is_null($this->intPersonId)) {
                     $this->objPerson = Person::Load($this->intPersonId);
                 }
                 return $this->objPerson;
             } 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;
             }
     }
 }
 /**
  * Static Helper Method to Create using PK arguments
  * You must pass in the PK arguments on an object to load, or leave it blank to create a new one.
  * If you want to load via QueryString or PathInfo, use the CreateFromQueryString or CreateFromPathInfo
  * static helper methods.  Finally, specify a CreateType to define whether or not we are only allowed to 
  * edit, or if we are also allowed to create a new one, etc.
  * 
  * @param mixed $objParentObject QForm or QPanel which will be using this CommunicationListEntryMetaControl
  * @param integer $intId primary key value
  * @param QMetaControlCreateType $intCreateType rules governing CommunicationListEntry object creation - defaults to CreateOrEdit
  * @return CommunicationListEntryMetaControl
  */
 public static function Create($objParentObject, $intId = null, $intCreateType = QMetaControlCreateType::CreateOrEdit)
 {
     // Attempt to Load from PK Arguments
     if (strlen($intId)) {
         $objCommunicationListEntry = CommunicationListEntry::Load($intId);
         // CommunicationListEntry was found -- return it!
         if ($objCommunicationListEntry) {
             return new CommunicationListEntryMetaControl($objParentObject, $objCommunicationListEntry);
         } else {
             if ($intCreateType != QMetaControlCreateType::CreateOnRecordNotFound) {
                 throw new QCallerException('Could not find a CommunicationListEntry object with PK arguments: ' . $intId);
             }
         }
         // If EditOnly is specified, throw an exception
     } else {
         if ($intCreateType == QMetaControlCreateType::EditOnly) {
             throw new QCallerException('No PK arguments specified');
         }
     }
     // If we are here, then we need to create a new record
     return new CommunicationListEntryMetaControl($objParentObject, new CommunicationListEntry());
 }
 /**
  * Reload this CommunicationListEntry 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 CommunicationListEntry object.');
     }
     // Reload the Object
     $objReloaded = CommunicationListEntry::Load($this->intId);
     // Update $this's local variables to match
     $this->strFirstName = $objReloaded->strFirstName;
     $this->strMiddleName = $objReloaded->strMiddleName;
     $this->strLastName = $objReloaded->strLastName;
     $this->strEmail = $objReloaded->strEmail;
 }
示例#5
0
文件: list.php 项目: alcf/chms
 public function pxyUnsubscribeEntry_Click($strFormId, $strControlId, $strParameter)
 {
     $objEntry = CommunicationListEntry::Load($strParameter);
     if ($objEntry->IsCommunicationListAssociated($this->objList)) {
         $objEntry->UnassociateCommunicationList($this->objList);
     }
     $this->dtgMembers->Refresh();
 }
 protected function lstCommunicationListEntries_Update()
 {
     if ($this->lstCommunicationListEntries) {
         $this->objCommunicationList->UnassociateAllCommunicationListEntries();
         $objSelectedListItems = $this->lstCommunicationListEntries->SelectedItems;
         if ($objSelectedListItems) {
             foreach ($objSelectedListItems as $objListItem) {
                 $this->objCommunicationList->AssociateCommunicationListEntry(CommunicationListEntry::Load($objListItem->Value));
             }
         }
     }
 }