503
503
return sfView::NONE;
506
public function executeExportcontacts(sfWebRequest $request)
508
$this->setEventBasics($request);
509
$this->info = array();
511
$exporter = agSendWordNowPreDeploy::getInstance($this->event_id, 'staff_contacts_predeploy');
512
$this->fileInfo = $exporter->getExport();
514
$this->getResponse()->setHttpHeader('Content-Type', 'application/zip');
515
$this->getResponse()->setHttpHeader('Content-Disposition', 'attachment;filename="' .
516
$this->fileInfo['filename'] . '"');
518
$exportFile = file_get_contents($this->fileInfo['path'] . DIRECTORY_SEPARATOR .
519
$this->fileInfo['filename']);
521
$this->getResponse()->setContent($exportFile);
522
$this->getResponse()->send();
524
$this->redirect('event/messaging?event=' . urlencode($this->event_name));
506
public function executeExportcontacts(sfWebRequest $request)
508
$this->setEventBasics($request);
509
$this->info = array();
511
if ($request->hasParameter('type')) {
512
$type = $request->getParameter('type');
516
$exporter = agSendWordNowPreDeploy::getInstance($this->event_id, 'staff_contacts_predeploy');
519
$exporter = agSendWordNowPostDeploy::getInstance($this->event_id, 'staff_contacts_postdeploy');
523
$this->fileInfo = $exporter->getExport();
525
$this->getResponse()->setHttpHeader('Content-Type', 'application/zip');
526
$this->getResponse()->setHttpHeader('Content-Disposition', 'attachment;filename="' .
527
$this->fileInfo['filename'] . '"');
529
$exportFile = file_get_contents($this->fileInfo['path'] . DIRECTORY_SEPARATOR .
530
$this->fileInfo['filename']);
532
$this->getResponse()->setContent($exportFile);
533
$this->getResponse()->send();
536
$this->redirect('event/messaging?event=' . urlencode($this->event_name));
528
539
* provide event shift CRUD
529
540
* @param sfWebRequest $request