本文整理汇总了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());
}
}
示例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'));
}
}
示例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'));
}
}