/** * 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 'GroupId': // Gets the value for intGroupId (Not Null) // @return integer return $this->intGroupId; case 'LoginId': // Gets the value for intLoginId (Not Null) // @return integer return $this->intLoginId; case 'Subject': // Gets the value for strSubject // @return string return $this->strSubject; case 'Body': // Gets the value for strBody // @return string return $this->strBody; case 'DateQueued': // Gets the value for dttDateQueued (Not Null) // @return QDateTime return $this->dttDateQueued; case 'DateSent': // Gets the value for dttDateSent // @return QDateTime return $this->dttDateSent; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'Group': // Gets the value for the Group object referenced by intGroupId (Not Null) // @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 'Login': // Gets the value for the Login object referenced by intLoginId (Not Null) // @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; } //////////////////////////// // 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; } } }
/** * 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; } } }
/** * 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 'PersonId': // Gets the value for intPersonId (Not Null) // @return integer return $this->intPersonId; case 'PostedByLoginId': // Gets the value for intPostedByLoginId (Not Null) // @return integer return $this->intPostedByLoginId; case 'CommentPrivacyTypeId': // Gets the value for intCommentPrivacyTypeId (Not Null) // @return integer return $this->intCommentPrivacyTypeId; case 'CommentCategoryId': // Gets the value for intCommentCategoryId (Not Null) // @return integer return $this->intCommentCategoryId; case 'Comment': // Gets the value for strComment // @return string return $this->strComment; case 'DatePosted': // Gets the value for dttDatePosted (Not Null) // @return QDateTime return $this->dttDatePosted; case 'DateAction': // Gets the value for dttDateAction // @return QDateTime return $this->dttDateAction; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'Person': // Gets the value for the Person object referenced by intPersonId (Not Null) // @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 'PostedByLogin': // Gets the value for the Login object referenced by intPostedByLoginId (Not Null) // @return Login try { if (!$this->objPostedByLogin && !is_null($this->intPostedByLoginId)) { $this->objPostedByLogin = Login::Load($this->intPostedByLoginId); } return $this->objPostedByLogin; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'CommentCategory': // Gets the value for the CommentCategory object referenced by intCommentCategoryId (Not Null) // @return CommentCategory try { if (!$this->objCommentCategory && !is_null($this->intCommentCategoryId)) { $this->objCommentCategory = CommentCategory::Load($this->intCommentCategoryId); } return $this->objCommentCategory; } 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; } } }
/** * 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 'StewardshipBatchId': // Gets the value for intStewardshipBatchId (Not Null) // @return integer return $this->intStewardshipBatchId; case 'PostNumber': // Gets the value for intPostNumber (Not Null) // @return integer return $this->intPostNumber; case 'DatePosted': // Gets the value for dttDatePosted (Not Null) // @return QDateTime return $this->dttDatePosted; case 'TotalAmount': // Gets the value for fltTotalAmount // @return double return $this->fltTotalAmount; case 'CreatedByLoginId': // Gets the value for intCreatedByLoginId (Not Null) // @return integer return $this->intCreatedByLoginId; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'StewardshipBatch': // Gets the value for the StewardshipBatch object referenced by intStewardshipBatchId (Not Null) // @return StewardshipBatch try { if (!$this->objStewardshipBatch && !is_null($this->intStewardshipBatchId)) { $this->objStewardshipBatch = StewardshipBatch::Load($this->intStewardshipBatchId); } return $this->objStewardshipBatch; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } 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; } //////////////////////////// // 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 '_StewardshipPostAmount': // Gets the value for the private _objStewardshipPostAmount (Read-Only) // if set due to an expansion on the stewardship_post_amount.stewardship_post_id reverse relationship // @return StewardshipPostAmount return $this->_objStewardshipPostAmount; case '_StewardshipPostAmountArray': // Gets the value for the private _objStewardshipPostAmountArray (Read-Only) // if set due to an ExpandAsArray on the stewardship_post_amount.stewardship_post_id reverse relationship // @return StewardshipPostAmount[] return (array) $this->_objStewardshipPostAmountArray; case '_StewardshipPostLineItem': // Gets the value for the private _objStewardshipPostLineItem (Read-Only) // if set due to an expansion on the stewardship_post_line_item.stewardship_post_id reverse relationship // @return StewardshipPostLineItem return $this->_objStewardshipPostLineItem; case '_StewardshipPostLineItemArray': // Gets the value for the private _objStewardshipPostLineItemArray (Read-Only) // if set due to an ExpandAsArray on the stewardship_post_line_item.stewardship_post_id reverse relationship // @return StewardshipPostLineItem[] return (array) $this->_objStewardshipPostLineItemArray; case '__Restored': return $this->__blnRestored; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
$objHousehold->Save(); } QDataGen::DisplayForEachTaskEnd('Refreshing Household data'); $objStewardshipCursor = StewardshipContribution::QueryCursor(QQ::All()); QDataGEn::DisplayForEachTaskStart('Refreshing Contributions', StewardshipContribution::CountAll()); while ($objContribution = StewardshipContribution::InstantiateCursor($objStewardshipCursor)) { QDataGen::DisplayForEachTaskNext('Refreshing Contributions'); $objContribution->RefreshTotalAmount(); } QDataGen::DisplayForEachTaskEnd('Refreshing Contributions'); $objStewardshipCursor = StewardshipStack::QueryCursor(QQ::All()); QDataGEn::DisplayForEachTaskStart('Refreshing Stacks', StewardshipStack::CountAll()); while ($objStack = StewardshipStack::InstantiateCursor($objStewardshipCursor)) { QDataGen::DisplayForEachTaskNext('Refreshing Stacks'); $objStack->RefreshActualTotalAmount(); } QDataGen::DisplayForEachTaskEnd('Refreshing Stacks'); $objStewardshipCursor = StewardshipBatch::QueryCursor(QQ::All()); QDataGEn::DisplayForEachTaskStart('Refreshing Batches', StewardshipBatch::CountAll()); while ($objBatch = StewardshipBatch::InstantiateCursor($objStewardshipCursor)) { QDataGen::DisplayForEachTaskNext('Refreshing Batches'); $objBatch->PostBalance(Login::Load(1)); } QDataGen::DisplayForEachTaskEnd('Refreshing Batches'); $objStewardshipCursor = StewardshipPledge::QueryCursor(QQ::All()); QDataGEn::DisplayForEachTaskStart('Refreshing Pledges', StewardshipPledge::CountAll()); while ($objPledge = StewardshipPledge::InstantiateCursor($objStewardshipCursor)) { QDataGen::DisplayForEachTaskNext('Refreshing Pledges'); $objPledge->Refresh(); } QDataGen::DisplayForEachTaskEnd('Refreshing Pledges');
protected function Form_Create() { // Load and validate the Staff Person we're trying to view $this->objLogin = Login::Load(QApplication::PathInfo(0)); if (!$this->objLogin) { QApplication::Redirect('/admin/users'); } $this->strPageTitle .= $this->objLogin->Name; // Display: Username $this->lblUsername = new QLabel($this); $this->lblUsername->Name = 'Username'; $this->lblUsername->Text = $this->objLogin->Username; // Display: Email $this->lblEmail = new QLabel($this); $this->lblEmail->Name = 'Email'; if ($this->objLogin->Email) { $this->lblEmail->Text = $this->objLogin->Email; } else { $this->lblEmail->Text = 'none'; $this->lblEmail->CssClass = 'na'; } // Display Ministry Involvement Information $this->lblMinistries = new QLabel($this); $this->lblMinistries->Name = 'Ministry Involvement'; $strArray = array(); foreach ($this->objLogin->GetMinistryArray() as $objMinistry) { $strArray[] = QApplication::HtmlEntities($objMinistry->Name); } $this->lblMinistries->Text = implode(' • ', $strArray); if (!$this->lblMinistries->Text) { $this->lblMinistries->CssClass = 'na'; $this->lblMinistries->Text = 'n/a'; } $this->lblMinistries->HtmlEntities = false; foreach (Ministry::LoadAll(QQ::OrderBy(QQN::Ministry()->Name)) as $objMinistry) { $rblMinistry = new QRadioButtonList($this); $rblMinistry->Name = $objMinistry->Name; if (in_array($objMinistry->Name, $strArray)) { $rblMinistry->AddItem('Yes', $objMinistry->Id, true); $rblMinistry->AddItem('No', 0, false); } else { $rblMinistry->AddItem('Yes', $objMinistry->Id, false); $rblMinistry->AddItem('No', 0, true); } $rblMinistry->RepeatColumns = 2; $this->rblMinistryArray[] = $rblMinistry; } foreach (PermissionType::$NameArray as $intId => $strName) { $rblPermission = new QRadioButtonList($this); $rblPermission->Name = 'Can ' . $strName; $rblPermission->AddItem('Yes', $intId, $this->objLogin->IsPermissionAllowed($intId)); $rblPermission->AddItem('No', 0, !$this->objLogin->IsPermissionAllowed($intId)); $rblPermission->RepeatColumns = 2; $this->rblPermissionArray[] = $rblPermission; } $this->lblRoleType = new QLabel($this); $this->lblRoleType->Name = 'Role'; $this->lblRoleType->Text = "Volunteer"; //not going to let this change to anything different $this->lblDomainActive = new QLabel($this); $this->lblDomainActive->Name = 'Domain Account Active'; $this->lblDomainActive->Text = $this->objLogin->DomainActiveFlag ? 'Yes' : 'No'; $this->rblLoginActive = new QRadioButtonList($this); $this->rblLoginActive->Name = 'ChMS Login Enabled'; $this->rblLoginActive->AddItem('Yes', true, $this->objLogin->LoginActiveFlag); $this->rblLoginActive->AddItem('No', false, !$this->objLogin->LoginActiveFlag); $this->rblLoginActive->RepeatColumns = 2; $this->lblDateLastLogin = new QLabel($this); $this->lblDateLastLogin->Name = 'Date of Last ChMS Access'; if ($this->objLogin->DateLastLogin) { $this->lblDateLastLogin->Text = $this->objLogin->DateLastLogin->ToString('MMMM D YYYY') . ' at ' . $this->objLogin->DateLastLogin->ToString('h:mmz'); } else { $this->lblDateLastLogin->Text = 'None'; $this->lblDateLastLogin->CssClass = 'na'; } // Add controls and stuff for Editable pages $this->btnSave = new QButton($this); $this->btnSave->Text = 'Update'; $this->btnSave->AddAction(new QClickEvent(), new QAjaxAction('btnSave_Click')); $this->btnSave->CssClass = 'primary'; $this->strPassword = new QTextBox($this); $this->strPassword->Name = "Reset Password"; $this->strConfirmPassword = new QTextBox($this); $this->strConfirmPassword->Name = "Confirm Password"; $this->lblMessage = new QLabel($this); $this->btnCancel = new QLinkButton($this); $this->btnCancel->Text = 'Cancel'; $this->btnCancel->AddAction(new QClickEvent(), new QAjaxAction('btnCancel_Click')); $this->btnCancel->AddAction(new QClickEvent(), new QTerminateAction()); $this->btnCancel->CssClass = 'cancel'; }
/** * 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 'DisplayName': // Gets the value for strDisplayName // @return string return $this->strDisplayName; case 'LoginId': // Gets the value for intLoginId (Unique) // @return integer return $this->intLoginId; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'Login': // Gets the value for the Login object referenced by intLoginId (Unique) // @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; } //////////////////////////// // 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 '_ClassMeeting': // Gets the value for the private _objClassMeeting (Read-Only) // if set due to an expansion on the class_meeting.class_instructor_id reverse relationship // @return ClassMeeting return $this->_objClassMeeting; case '_ClassMeetingArray': // Gets the value for the private _objClassMeetingArray (Read-Only) // if set due to an ExpandAsArray on the class_meeting.class_instructor_id reverse relationship // @return ClassMeeting[] return (array) $this->_objClassMeetingArray; case '__Restored': return $this->__blnRestored; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
protected function UpdatePersonFields() { $this->objPerson->FirstName = $this->txtFirstName->Text; $this->objPerson->LastName = $this->txtLastName->Text; $this->objPerson->Login = Login::Load($this->lstLogin->SelectedValue); }
/** * 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; } } }
protected function lstLogins_Update() { if ($this->lstLogins) { $this->objMinistry->UnassociateAllLogins(); $objSelectedListItems = $this->lstLogins->SelectedItems; if ($objSelectedListItems) { foreach ($objSelectedListItems as $objListItem) { $this->objMinistry->AssociateLogin(Login::Load($objListItem->Value)); } } } }
/** * Reload this Login 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 Login object.'); } // Reload the Object $objReloaded = Login::Load($this->intId); // Update $this's local variables to match $this->RoleTypeId = $objReloaded->RoleTypeId; $this->intPermissionBitmap = $objReloaded->intPermissionBitmap; $this->strUsername = $objReloaded->strUsername; $this->strPasswordCache = $objReloaded->strPasswordCache; $this->strPasswordLastSet = $objReloaded->strPasswordLastSet; $this->dttDateLastLogin = $objReloaded->dttDateLastLogin; $this->blnDomainActiveFlag = $objReloaded->blnDomainActiveFlag; $this->blnLoginActiveFlag = $objReloaded->blnLoginActiveFlag; $this->strEmail = $objReloaded->strEmail; $this->strFirstName = $objReloaded->strFirstName; $this->strMiddleInitial = $objReloaded->strMiddleInitial; $this->strLastName = $objReloaded->strLastName; }
/** * 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 'PersonId': // Gets the value for intPersonId (Not Null) // @return integer return $this->intPersonId; case 'StewardshipContributionTypeId': // Gets the value for intStewardshipContributionTypeId (Not Null) // @return integer return $this->intStewardshipContributionTypeId; case 'StewardshipBatchId': // Gets the value for intStewardshipBatchId (Not Null) // @return integer return $this->intStewardshipBatchId; case 'StewardshipStackId': // Gets the value for intStewardshipStackId // @return integer return $this->intStewardshipStackId; case 'CheckingAccountLookupId': // Gets the value for intCheckingAccountLookupId // @return integer return $this->intCheckingAccountLookupId; case 'TotalAmount': // Gets the value for fltTotalAmount // @return double return $this->fltTotalAmount; case 'DateEntered': // Gets the value for dttDateEntered (Not Null) // @return QDateTime return $this->dttDateEntered; case 'DateCleared': // Gets the value for dttDateCleared // @return QDateTime return $this->dttDateCleared; case 'DateCredited': // Gets the value for dttDateCredited (Not Null) // @return QDateTime return $this->dttDateCredited; case 'CheckNumber': // Gets the value for strCheckNumber // @return string return $this->strCheckNumber; case 'AuthorizationNumber': // Gets the value for strAuthorizationNumber // @return string return $this->strAuthorizationNumber; case 'AlternateSource': // Gets the value for strAlternateSource // @return string return $this->strAlternateSource; case 'NonDeductibleFlag': // Gets the value for blnNonDeductibleFlag // @return boolean return $this->blnNonDeductibleFlag; case 'Note': // Gets the value for strNote // @return string return $this->strNote; case 'CreatedByLoginId': // Gets the value for intCreatedByLoginId (Not Null) // @return integer return $this->intCreatedByLoginId; case 'UnpostedFlag': // Gets the value for blnUnpostedFlag // @return boolean return $this->blnUnpostedFlag; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'Person': // Gets the value for the Person object referenced by intPersonId (Not Null) // @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 'StewardshipBatch': // Gets the value for the StewardshipBatch object referenced by intStewardshipBatchId (Not Null) // @return StewardshipBatch try { if (!$this->objStewardshipBatch && !is_null($this->intStewardshipBatchId)) { $this->objStewardshipBatch = StewardshipBatch::Load($this->intStewardshipBatchId); } return $this->objStewardshipBatch; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'StewardshipStack': // Gets the value for the StewardshipStack object referenced by intStewardshipStackId // @return StewardshipStack try { if (!$this->objStewardshipStack && !is_null($this->intStewardshipStackId)) { $this->objStewardshipStack = StewardshipStack::Load($this->intStewardshipStackId); } return $this->objStewardshipStack; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'CheckingAccountLookup': // Gets the value for the CheckingAccountLookup object referenced by intCheckingAccountLookupId // @return CheckingAccountLookup try { if (!$this->objCheckingAccountLookup && !is_null($this->intCheckingAccountLookupId)) { $this->objCheckingAccountLookup = CheckingAccountLookup::Load($this->intCheckingAccountLookupId); } return $this->objCheckingAccountLookup; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } 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 'CreditCardPayment': // Gets the value for the CreditCardPayment object that uniquely references this StewardshipContribution // by objCreditCardPayment (Unique) // @return CreditCardPayment try { if ($this->objCreditCardPayment === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objCreditCardPayment) { $this->objCreditCardPayment = CreditCardPayment::LoadByStewardshipContributionId($this->intId); } return $this->objCreditCardPayment; } 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 '_StewardshipContributionAmount': // Gets the value for the private _objStewardshipContributionAmount (Read-Only) // if set due to an expansion on the stewardship_contribution_amount.stewardship_contribution_id reverse relationship // @return StewardshipContributionAmount return $this->_objStewardshipContributionAmount; case '_StewardshipContributionAmountArray': // Gets the value for the private _objStewardshipContributionAmountArray (Read-Only) // if set due to an ExpandAsArray on the stewardship_contribution_amount.stewardship_contribution_id reverse relationship // @return StewardshipContributionAmount[] return (array) $this->_objStewardshipContributionAmountArray; case '_StewardshipPostLineItem': // Gets the value for the private _objStewardshipPostLineItem (Read-Only) // if set due to an expansion on the stewardship_post_line_item.stewardship_contribution_id reverse relationship // @return StewardshipPostLineItem return $this->_objStewardshipPostLineItem; case '_StewardshipPostLineItemArray': // Gets the value for the private _objStewardshipPostLineItemArray (Read-Only) // if set due to an ExpandAsArray on the stewardship_post_line_item.stewardship_contribution_id reverse relationship // @return StewardshipPostLineItem[] return (array) $this->_objStewardshipPostLineItemArray; 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 LoginMetaControl * @param integer $intId primary key value * @param QMetaControlCreateType $intCreateType rules governing Login object creation - defaults to CreateOrEdit * @return LoginMetaControl */ public static function Create($objParentObject, $intId = null, $intCreateType = QMetaControlCreateType::CreateOrEdit) { // Attempt to Load from PK Arguments if (strlen($intId)) { $objLogin = Login::Load($intId); // Login was found -- return it! if ($objLogin) { return new LoginMetaControl($objParentObject, $objLogin); } else { if ($intCreateType != QMetaControlCreateType::CreateOnRecordNotFound) { throw new QCallerException('Could not find a Login 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 LoginMetaControl($objParentObject, new Login()); }