當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。