/** * Index action for migrateFce * * @param array $formdata * @return void */ public function indexMigrateFceAction($formdata = NULL) { if ($this->sharedHelper->getTemplavoilaStaticDsIsEnabled()) { $allFce = $this->migrateFceHelper->getAllFileFce(); } else { $allFce = $this->migrateFceHelper->getAllDbFce(); } $allGe = $this->migrateFceHelper->getAllGe(); if (isset($formdata['fce'])) { $uidFce = intval($formdata['fce']); } else { $uidFce = current(array_keys($allFce)); } if (isset($formdata['ge'])) { $geKey = $formdata['ge']; } else { $geKey = current(array_keys($allGe)); } // Fetch content columns from FCE and GE depending on selection (first entry if empty) if ($uidFce > 0) { $fceContentCols = $this->sharedHelper->getTvContentCols($uidFce); } else { $fceContentCols = NULL; } if ($this->sharedHelper->canBeInterpretedAsInteger($geKey)) { $geKey = (int) $geKey; if ($geKey <= 0) { $geKey = 0; } } if (!empty($geKey)) { $geContentCols = $this->sharedHelper->getGeContentCols($geKey); } else { $geContentCols = NULL; } $this->view->assign('fceContentCols', $fceContentCols); $this->view->assign('geContentCols', $geContentCols); $this->view->assign('allFce', $allFce); $this->view->assign('allGe', $allGe); $this->view->assign('formdata', $formdata); // Redirect to migrateContentAction when submit button pressed if (isset($formdata['startAction'])) { $this->redirect('migrateFce', NULL, NULL, array('formdata' => $formdata)); } }