本文整理汇总了PHP中Phone::LoadAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Phone::LoadAll方法的具体用法?PHP Phone::LoadAll怎么用?PHP Phone::LoadAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Phone
的用法示例。
在下文中一共展示了Phone::LoadAll方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Refresh
/**
* Refresh this MetaControl with Data from the local FormAnswer object.
* @param boolean $blnReload reload FormAnswer from the database
* @return void
*/
public function Refresh($blnReload = false)
{
if ($blnReload) {
$this->objFormAnswer->Reload();
}
if ($this->lblId) {
if ($this->blnEditMode) {
$this->lblId->Text = $this->objFormAnswer->Id;
}
}
if ($this->lstSignupEntry) {
$this->lstSignupEntry->RemoveAllItems();
if (!$this->blnEditMode) {
$this->lstSignupEntry->AddItem(QApplication::Translate('- Select One -'), null);
}
$objSignupEntryArray = SignupEntry::LoadAll();
if ($objSignupEntryArray) {
foreach ($objSignupEntryArray as $objSignupEntry) {
$objListItem = new QListItem($objSignupEntry->__toString(), $objSignupEntry->Id);
if ($this->objFormAnswer->SignupEntry && $this->objFormAnswer->SignupEntry->Id == $objSignupEntry->Id) {
$objListItem->Selected = true;
}
$this->lstSignupEntry->AddItem($objListItem);
}
}
}
if ($this->lblSignupEntryId) {
$this->lblSignupEntryId->Text = $this->objFormAnswer->SignupEntry ? $this->objFormAnswer->SignupEntry->__toString() : null;
}
if ($this->lstFormQuestion) {
$this->lstFormQuestion->RemoveAllItems();
if (!$this->blnEditMode) {
$this->lstFormQuestion->AddItem(QApplication::Translate('- Select One -'), null);
}
$objFormQuestionArray = FormQuestion::LoadAll();
if ($objFormQuestionArray) {
foreach ($objFormQuestionArray as $objFormQuestion) {
$objListItem = new QListItem($objFormQuestion->__toString(), $objFormQuestion->Id);
if ($this->objFormAnswer->FormQuestion && $this->objFormAnswer->FormQuestion->Id == $objFormQuestion->Id) {
$objListItem->Selected = true;
}
$this->lstFormQuestion->AddItem($objListItem);
}
}
}
if ($this->lblFormQuestionId) {
$this->lblFormQuestionId->Text = $this->objFormAnswer->FormQuestion ? $this->objFormAnswer->FormQuestion->__toString() : null;
}
if ($this->txtTextValue) {
$this->txtTextValue->Text = $this->objFormAnswer->TextValue;
}
if ($this->lblTextValue) {
$this->lblTextValue->Text = $this->objFormAnswer->TextValue;
}
if ($this->lstAddress) {
$this->lstAddress->RemoveAllItems();
$this->lstAddress->AddItem(QApplication::Translate('- Select One -'), null);
$objAddressArray = Address::LoadAll();
if ($objAddressArray) {
foreach ($objAddressArray as $objAddress) {
$objListItem = new QListItem($objAddress->__toString(), $objAddress->Id);
if ($this->objFormAnswer->Address && $this->objFormAnswer->Address->Id == $objAddress->Id) {
$objListItem->Selected = true;
}
$this->lstAddress->AddItem($objListItem);
}
}
}
if ($this->lblAddressId) {
$this->lblAddressId->Text = $this->objFormAnswer->Address ? $this->objFormAnswer->Address->__toString() : null;
}
if ($this->lstPhone) {
$this->lstPhone->RemoveAllItems();
$this->lstPhone->AddItem(QApplication::Translate('- Select One -'), null);
$objPhoneArray = Phone::LoadAll();
if ($objPhoneArray) {
foreach ($objPhoneArray as $objPhone) {
$objListItem = new QListItem($objPhone->__toString(), $objPhone->Id);
if ($this->objFormAnswer->Phone && $this->objFormAnswer->Phone->Id == $objPhone->Id) {
$objListItem->Selected = true;
}
$this->lstPhone->AddItem($objListItem);
}
}
}
if ($this->lblPhoneId) {
$this->lblPhoneId->Text = $this->objFormAnswer->Phone ? $this->objFormAnswer->Phone->__toString() : null;
}
if ($this->lstEmail) {
$this->lstEmail->RemoveAllItems();
$this->lstEmail->AddItem(QApplication::Translate('- Select One -'), null);
$objEmailArray = Email::LoadAll();
if ($objEmailArray) {
foreach ($objEmailArray as $objEmail) {
$objListItem = new QListItem($objEmail->__toString(), $objEmail->Id);
//.........这里部分代码省略.........
示例2: Refresh
/**
* Refresh this MetaControl with Data from the local Address object.
* @param boolean $blnReload reload Address from the database
* @return void
*/
public function Refresh($blnReload = false)
{
if ($blnReload) {
$this->objAddress->Reload();
}
if ($this->lblId) {
if ($this->blnEditMode) {
$this->lblId->Text = $this->objAddress->Id;
}
}
if ($this->lstAddressType) {
$this->lstAddressType->SelectedValue = $this->objAddress->AddressTypeId;
}
if ($this->lblAddressTypeId) {
$this->lblAddressTypeId->Text = $this->objAddress->AddressTypeId ? AddressType::$NameArray[$this->objAddress->AddressTypeId] : null;
}
if ($this->lstPerson) {
$this->lstPerson->RemoveAllItems();
$this->lstPerson->AddItem(QApplication::Translate('- Select One -'), null);
$objPersonArray = Person::LoadAll();
if ($objPersonArray) {
foreach ($objPersonArray as $objPerson) {
$objListItem = new QListItem($objPerson->__toString(), $objPerson->Id);
if ($this->objAddress->Person && $this->objAddress->Person->Id == $objPerson->Id) {
$objListItem->Selected = true;
}
$this->lstPerson->AddItem($objListItem);
}
}
}
if ($this->lblPersonId) {
$this->lblPersonId->Text = $this->objAddress->Person ? $this->objAddress->Person->__toString() : null;
}
if ($this->lstHousehold) {
$this->lstHousehold->RemoveAllItems();
$this->lstHousehold->AddItem(QApplication::Translate('- Select One -'), null);
$objHouseholdArray = Household::LoadAll();
if ($objHouseholdArray) {
foreach ($objHouseholdArray as $objHousehold) {
$objListItem = new QListItem($objHousehold->__toString(), $objHousehold->Id);
if ($this->objAddress->Household && $this->objAddress->Household->Id == $objHousehold->Id) {
$objListItem->Selected = true;
}
$this->lstHousehold->AddItem($objListItem);
}
}
}
if ($this->lblHouseholdId) {
$this->lblHouseholdId->Text = $this->objAddress->Household ? $this->objAddress->Household->__toString() : null;
}
if ($this->lstPrimaryPhone) {
$this->lstPrimaryPhone->RemoveAllItems();
$this->lstPrimaryPhone->AddItem(QApplication::Translate('- Select One -'), null);
$objPrimaryPhoneArray = Phone::LoadAll();
if ($objPrimaryPhoneArray) {
foreach ($objPrimaryPhoneArray as $objPrimaryPhone) {
$objListItem = new QListItem($objPrimaryPhone->__toString(), $objPrimaryPhone->Id);
if ($this->objAddress->PrimaryPhone && $this->objAddress->PrimaryPhone->Id == $objPrimaryPhone->Id) {
$objListItem->Selected = true;
}
$this->lstPrimaryPhone->AddItem($objListItem);
}
}
}
if ($this->lblPrimaryPhoneId) {
$this->lblPrimaryPhoneId->Text = $this->objAddress->PrimaryPhone ? $this->objAddress->PrimaryPhone->__toString() : null;
}
if ($this->txtAddress1) {
$this->txtAddress1->Text = $this->objAddress->Address1;
}
if ($this->lblAddress1) {
$this->lblAddress1->Text = $this->objAddress->Address1;
}
if ($this->txtAddress2) {
$this->txtAddress2->Text = $this->objAddress->Address2;
}
if ($this->lblAddress2) {
$this->lblAddress2->Text = $this->objAddress->Address2;
}
if ($this->txtAddress3) {
$this->txtAddress3->Text = $this->objAddress->Address3;
}
if ($this->lblAddress3) {
$this->lblAddress3->Text = $this->objAddress->Address3;
}
if ($this->txtCity) {
$this->txtCity->Text = $this->objAddress->City;
}
if ($this->lblCity) {
$this->lblCity->Text = $this->objAddress->City;
}
if ($this->txtState) {
$this->txtState->Text = $this->objAddress->State;
}
if ($this->lblState) {
//.........这里部分代码省略.........
示例3: Refresh
//.........这里部分代码省略.........
if ($this->chkDobYearApproximateFlag) {
$this->chkDobYearApproximateFlag->Checked = $this->objPerson->DobYearApproximateFlag;
}
if ($this->lblDobYearApproximateFlag) {
$this->lblDobYearApproximateFlag->Text = $this->objPerson->DobYearApproximateFlag ? QApplication::Translate('Yes') : QApplication::Translate('No');
}
if ($this->chkDobGuessedFlag) {
$this->chkDobGuessedFlag->Checked = $this->objPerson->DobGuessedFlag;
}
if ($this->lblDobGuessedFlag) {
$this->lblDobGuessedFlag->Text = $this->objPerson->DobGuessedFlag ? QApplication::Translate('Yes') : QApplication::Translate('No');
}
if ($this->txtAge) {
$this->txtAge->Text = $this->objPerson->Age;
}
if ($this->lblAge) {
$this->lblAge->Text = $this->objPerson->Age;
}
if ($this->chkDeceasedFlag) {
$this->chkDeceasedFlag->Checked = $this->objPerson->DeceasedFlag;
}
if ($this->lblDeceasedFlag) {
$this->lblDeceasedFlag->Text = $this->objPerson->DeceasedFlag ? QApplication::Translate('Yes') : QApplication::Translate('No');
}
if ($this->calDateDeceased) {
$this->calDateDeceased->DateTime = $this->objPerson->DateDeceased;
}
if ($this->lblDateDeceased) {
$this->lblDateDeceased->Text = sprintf($this->objPerson->DateDeceased) ? $this->objPerson->__toString($this->strDateDeceasedDateTimeFormat) : null;
}
if ($this->lstCurrentHeadShot) {
$this->lstCurrentHeadShot->RemoveAllItems();
$this->lstCurrentHeadShot->AddItem(QApplication::Translate('- Select One -'), null);
$objCurrentHeadShotArray = HeadShot::LoadAll();
if ($objCurrentHeadShotArray) {
foreach ($objCurrentHeadShotArray as $objCurrentHeadShot) {
$objListItem = new QListItem($objCurrentHeadShot->__toString(), $objCurrentHeadShot->Id);
if ($this->objPerson->CurrentHeadShot && $this->objPerson->CurrentHeadShot->Id == $objCurrentHeadShot->Id) {
$objListItem->Selected = true;
}
$this->lstCurrentHeadShot->AddItem($objListItem);
}
}
}
if ($this->lblCurrentHeadShotId) {
$this->lblCurrentHeadShotId->Text = $this->objPerson->CurrentHeadShot ? $this->objPerson->CurrentHeadShot->__toString() : null;
}
if ($this->lstMailingAddress) {
$this->lstMailingAddress->RemoveAllItems();
$this->lstMailingAddress->AddItem(QApplication::Translate('- Select One -'), null);
$objMailingAddressArray = Address::LoadAll();
if ($objMailingAddressArray) {
foreach ($objMailingAddressArray as $objMailingAddress) {
$objListItem = new QListItem($objMailingAddress->__toString(), $objMailingAddress->Id);
if ($this->objPerson->MailingAddress && $this->objPerson->MailingAddress->Id == $objMailingAddress->Id) {
$objListItem->Selected = true;
}
$this->lstMailingAddress->AddItem($objListItem);
}
}
}
if ($this->lblMailingAddressId) {
$this->lblMailingAddressId->Text = $this->objPerson->MailingAddress ? $this->objPerson->MailingAddress->__toString() : null;
}
if ($this->lstStewardshipAddress) {
$this->lstStewardshipAddress->RemoveAllItems();