本文整理匯總了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'));
}
}