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


PHP Gems_Loader::getRespondentExport方法代码示例

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


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

示例1: loadExport

 protected function loadExport()
 {
     $this->export = $this->loader->getRespondentExport();
     if ($this->token instanceof \Gems_Tracker_Token) {
         $this->addRespondent($this->token->getPatientNumber(), $this->token->getOrganizationId());
         $this->export->addRespondentTrackFilter($this->token->getRespondentTrackId());
         $this->export->addTokenFilter($this->token->getTokenId());
     } elseif ($this->respondentTrack instanceof \Gems_Tracker_RespondentTrack) {
         $this->addRespondent($this->respondentTrack->getPatientNumber(), $this->respondentTrack->getOrganizationId());
         $this->export->addRespondentTrackFilter($this->respondentTrack->getRespondentTrackId());
     } elseif ($this->respondent instanceof \Gems_Tracker_Respondent) {
         $this->addRespondent($this->respondent->getPatientNumber(), $this->respondent->getOrganizationId());
     }
 }
开发者ID:GemsTracker,项目名称:gemstracker-library,代码行数:14,代码来源:RespondentExportSnippet.php

示例2: exportAction

 /**
  * Action for dossier export
  */
 public function exportAction()
 {
     $params = $this->_processParameters($this->showParameters);
     $data = $params['respondentData'];
     $this->addSnippets($this->exportSnippets, $params);
     //Now show the export form
     $export = $this->loader->getRespondentExport();
     $form = $export->getForm();
     $this->html->h2($this->_('Export respondent archive'));
     $div = $this->html->div(array('id' => 'mainform'));
     $div[] = $form;
     $request = $this->getRequest();
     $form->populate($request->getParams());
     if ($request->isPost()) {
         $export->render((array) $data['gr2o_patient_nr'], $this->getRequest()->getParam('group'), $this->getRequest()->getParam('format'));
     }
 }
开发者ID:harmslijper,项目名称:gemstracker-library,代码行数:20,代码来源:RespondentNewAction.php

示例3: exportArchiveAction

 /**
  * Action for dossier export
  */
 public function exportArchiveAction()
 {
     $params = $this->_processParameters($this->showParameters);
     $this->addSnippets($this->exportSnippets, $params);
     //Now show the export form
     $export = $this->loader->getRespondentExport();
     $form = $export->getForm();
     $this->html->h2($this->_('Export respondent archive'));
     $div = $this->html->div(array('id' => 'mainform'));
     $div[] = $form;
     $request = $this->getRequest();
     $form->populate($request->getParams());
     if ($request->isPost()) {
         $respondent = $this->getRespondent();
         $patients = array(array('gr2o_id_organization' => $respondent->getOrganizationId(), 'gr2o_patient_nr' => $respondent->getPatientNumber()));
         $export->render($patients, $this->getRequest()->getParam('group'), $this->getRequest()->getParam('format'));
     }
 }
开发者ID:GemsTracker,项目名称:gemstracker-library,代码行数:21,代码来源:RespondentNewAction.php


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