当前位置: 首页>>代码示例>>PHP>>正文


PHP Phone::Load方法代码示例

本文整理汇总了PHP中Phone::Load方法的典型用法代码示例。如果您正苦于以下问题:PHP Phone::Load方法的具体用法?PHP Phone::Load怎么用?PHP Phone::Load使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Phone的用法示例。


在下文中一共展示了Phone::Load方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __get

 /**
  * 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 'SignupEntryId':
             // Gets the value for intSignupEntryId (Not Null)
             // @return integer
             return $this->intSignupEntryId;
         case 'FormQuestionId':
             // Gets the value for intFormQuestionId (Not Null)
             // @return integer
             return $this->intFormQuestionId;
         case 'TextValue':
             // Gets the value for strTextValue
             // @return string
             return $this->strTextValue;
         case 'AddressId':
             // Gets the value for intAddressId
             // @return integer
             return $this->intAddressId;
         case 'PhoneId':
             // Gets the value for intPhoneId
             // @return integer
             return $this->intPhoneId;
         case 'EmailId':
             // Gets the value for intEmailId
             // @return integer
             return $this->intEmailId;
         case 'IntegerValue':
             // Gets the value for intIntegerValue
             // @return integer
             return $this->intIntegerValue;
         case 'BooleanValue':
             // Gets the value for blnBooleanValue
             // @return boolean
             return $this->blnBooleanValue;
         case 'DateValue':
             // Gets the value for dttDateValue
             // @return QDateTime
             return $this->dttDateValue;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'SignupEntry':
             // Gets the value for the SignupEntry object referenced by intSignupEntryId (Not Null)
             // @return SignupEntry
             try {
                 if (!$this->objSignupEntry && !is_null($this->intSignupEntryId)) {
                     $this->objSignupEntry = SignupEntry::Load($this->intSignupEntryId);
                 }
                 return $this->objSignupEntry;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FormQuestion':
             // Gets the value for the FormQuestion object referenced by intFormQuestionId (Not Null)
             // @return FormQuestion
             try {
                 if (!$this->objFormQuestion && !is_null($this->intFormQuestionId)) {
                     $this->objFormQuestion = FormQuestion::Load($this->intFormQuestionId);
                 }
                 return $this->objFormQuestion;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Address':
             // Gets the value for the Address object referenced by intAddressId
             // @return Address
             try {
                 if (!$this->objAddress && !is_null($this->intAddressId)) {
                     $this->objAddress = Address::Load($this->intAddressId);
                 }
                 return $this->objAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Phone':
             // Gets the value for the Phone object referenced by intPhoneId
             // @return Phone
             try {
                 if (!$this->objPhone && !is_null($this->intPhoneId)) {
//.........这里部分代码省略.........
开发者ID:alcf,项目名称:chms,代码行数:101,代码来源:FormAnswerGen.class.php

示例2: __get


//.........这里部分代码省略.........
             // @return string
             return $this->strPrimaryCityText;
         case 'PrimaryStateText':
             // Gets the value for strPrimaryStateText
             // @return string
             return $this->strPrimaryStateText;
         case 'PrimaryZipCodeText':
             // Gets the value for strPrimaryZipCodeText
             // @return string
             return $this->strPrimaryZipCodeText;
         case 'PrimaryPhoneText':
             // Gets the value for strPrimaryPhoneText
             // @return string
             return $this->strPrimaryPhoneText;
         case 'PublicCreationFlag':
             // Gets the value for blnPublicCreationFlag
             // @return boolean
             return $this->blnPublicCreationFlag;
         case 'CoPrimary':
             // Gets the value for intCoPrimary
             // @return integer
             return $this->intCoPrimary;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'CurrentHeadShot':
             // Gets the value for the HeadShot object referenced by intCurrentHeadShotId (Unique)
             // @return HeadShot
             try {
                 if (!$this->objCurrentHeadShot && !is_null($this->intCurrentHeadShotId)) {
                     $this->objCurrentHeadShot = HeadShot::Load($this->intCurrentHeadShotId);
                 }
                 return $this->objCurrentHeadShot;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'MailingAddress':
             // Gets the value for the Address object referenced by intMailingAddressId
             // @return Address
             try {
                 if (!$this->objMailingAddress && !is_null($this->intMailingAddressId)) {
                     $this->objMailingAddress = Address::Load($this->intMailingAddressId);
                 }
                 return $this->objMailingAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'StewardshipAddress':
             // Gets the value for the Address object referenced by intStewardshipAddressId
             // @return Address
             try {
                 if (!$this->objStewardshipAddress && !is_null($this->intStewardshipAddressId)) {
                     $this->objStewardshipAddress = Address::Load($this->intStewardshipAddressId);
                 }
                 return $this->objStewardshipAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'PrimaryPhone':
             // Gets the value for the Phone object referenced by intPrimaryPhoneId
开发者ID:alcf,项目名称:chms,代码行数:67,代码来源:PersonGen.class.php

示例3: pxySetPrimaryPhone_Click

 public function pxySetPrimaryPhone_Click($strFormId, $strControlId, $strParameter)
 {
     // Get and validate Phone object
     $objPhone = Phone::Load($strParameter);
     $objPhone->SetAsPrimary($this->objPerson);
     $this->dtgPhones->Refresh();
 }
开发者ID:alcf,项目名称:chms,代码行数:7,代码来源:Vicp_ContactInformation.class.php

示例4: Reload

 /**
  * Reload this Phone 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 Phone object.');
     }
     // Reload the Object
     $objReloaded = Phone::Load($this->intId);
     // Update $this's local variables to match
     $this->PhoneTypeId = $objReloaded->PhoneTypeId;
     $this->AddressId = $objReloaded->AddressId;
     $this->PersonId = $objReloaded->PersonId;
     $this->MobileProviderId = $objReloaded->MobileProviderId;
     $this->strNumber = $objReloaded->strNumber;
 }
开发者ID:alcf,项目名称:chms,代码行数:19,代码来源:PhoneGen.class.php

示例5: __get

 /**
  * 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 'AddressTypeId':
             // Gets the value for intAddressTypeId (Not Null)
             // @return integer
             return $this->intAddressTypeId;
         case 'PersonId':
             // Gets the value for intPersonId
             // @return integer
             return $this->intPersonId;
         case 'HouseholdId':
             // Gets the value for intHouseholdId
             // @return integer
             return $this->intHouseholdId;
         case 'PrimaryPhoneId':
             // Gets the value for intPrimaryPhoneId
             // @return integer
             return $this->intPrimaryPhoneId;
         case 'Address1':
             // Gets the value for strAddress1
             // @return string
             return $this->strAddress1;
         case 'Address2':
             // Gets the value for strAddress2
             // @return string
             return $this->strAddress2;
         case 'Address3':
             // Gets the value for strAddress3
             // @return string
             return $this->strAddress3;
         case 'City':
             // Gets the value for strCity
             // @return string
             return $this->strCity;
         case 'State':
             // Gets the value for strState
             // @return string
             return $this->strState;
         case 'ZipCode':
             // Gets the value for strZipCode
             // @return string
             return $this->strZipCode;
         case 'Country':
             // Gets the value for strCountry
             // @return string
             return $this->strCountry;
         case 'CurrentFlag':
             // Gets the value for blnCurrentFlag
             // @return boolean
             return $this->blnCurrentFlag;
         case 'InvalidFlag':
             // Gets the value for blnInvalidFlag
             // @return boolean
             return $this->blnInvalidFlag;
         case 'VerificationCheckedFlag':
             // Gets the value for blnVerificationCheckedFlag
             // @return boolean
             return $this->blnVerificationCheckedFlag;
         case 'DateUntilWhen':
             // Gets the value for dttDateUntilWhen
             // @return QDateTime
             return $this->dttDateUntilWhen;
         case 'InternationalFlag':
             // Gets the value for blnInternationalFlag
             // @return boolean
             return $this->blnInternationalFlag;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         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 'Household':
//.........这里部分代码省略.........
开发者ID:alcf,项目名称:chms,代码行数:101,代码来源:AddressGen.class.php

示例6: Create

 /**
  * 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 PhoneMetaControl
  * @param integer $intId primary key value
  * @param QMetaControlCreateType $intCreateType rules governing Phone object creation - defaults to CreateOrEdit
  * @return PhoneMetaControl
  */
 public static function Create($objParentObject, $intId = null, $intCreateType = QMetaControlCreateType::CreateOrEdit)
 {
     // Attempt to Load from PK Arguments
     if (strlen($intId)) {
         $objPhone = Phone::Load($intId);
         // Phone was found -- return it!
         if ($objPhone) {
             return new PhoneMetaControl($objParentObject, $objPhone);
         } else {
             if ($intCreateType != QMetaControlCreateType::CreateOnRecordNotFound) {
                 throw new QCallerException('Could not find a Phone 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 PhoneMetaControl($objParentObject, new Phone());
 }
开发者ID:alcf,项目名称:chms,代码行数:34,代码来源:PhoneMetaControlGen.class.php


注:本文中的Phone::Load方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。