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


PHP Gems_Loader::getRespondent方法代码示例

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


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

示例1: afterRegistry

 public function afterRegistry()
 {
     if (!$this->respondent) {
         $this->respondent = $this->loader->getRespondent($this->patientId, $this->organizationId);
     }
     parent::afterRegistry();
     if ($this->respondent) {
         $this->addTo($this->respondent->getEmailAddress(), $this->respondent->getName());
         $this->setLanguage($this->respondent->getLanguage());
     }
 }
开发者ID:harmslijper,项目名称:gemstracker-library,代码行数:11,代码来源:RespondentMailer.php

示例2: handleRespondentChanged

 /**
  *
  * @param string $patientId
  * @param int|\Gems_User_Organization $organization
  * @param int $respondentId
  * @return boolean True when something changed
  */
 public function handleRespondentChanged($patientId, $organization, $respondentId = null)
 {
     if ($organization instanceof \Gems_User_Organization) {
         $org = $organization;
         $orgId = $organization->getId();
     } else {
         $org = $this->loader->getOrganization($organization);
         $orgId = $organization;
     }
     $changeEventClass = $org->getRespondentChangeEventClass();
     if ($changeEventClass) {
         $event = $this->loader->getEvents()->loadRespondentChangedEvent($changeEventClass);
         if ($event) {
             $respondent = $this->loader->getRespondent($patientId, $orgId, $respondentId);
             if ($event->processChangedRespondent($respondent)) {
                 // If no change was registered yet, do so now
                 if (!$this->getChanged()) {
                     $this->addChanged();
                 }
                 return true;
             }
         }
     }
     return false;
 }
开发者ID:GemsTracker,项目名称:gemstracker-library,代码行数:32,代码来源:RespondentModel.php

示例3: getRespondent

 /**
  * Get the respondent linked to this token
  *
  * @return \Gems_Tracker_Respondent
  */
 public function getRespondent()
 {
     $patientNumber = $this->getPatientNumber();
     $organizationId = $this->getOrganizationId();
     if (!$this->_respondentObject instanceof \Gems_Tracker_Respondent || $this->_respondentObject->getPatientNumber() !== $patientNumber || $this->_respondentObject->getOrganizationId() !== $organizationId) {
         $this->_respondentObject = $this->loader->getRespondent($patientNumber, $organizationId);
     }
     return $this->_respondentObject;
 }
开发者ID:GemsTracker,项目名称:gemstracker-library,代码行数:14,代码来源:RespondentTrack.php

示例4: getRespondent

 /**
  * Return the respondent object
  *
  * @return \Gems_Tracker_Respondent
  */
 public function getRespondent()
 {
     return $this->loader->getRespondent($this->getPatientNumber(), $this->getOrganizationId(), $this->getRespondentId());
 }
开发者ID:GemsTracker,项目名称:gemstracker-library,代码行数:9,代码来源:Appointment.php


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