/** * * @param array $incompleteSessions * @param boolean $creationDone */ public function indexAction($incompleteSessions = array(), $creationDone = false) { $days = $this->utility->getDaysArray($this->settings['dd']['start'], $this->settings['dd']['end']); // manually grab accepted sessions since repository will return scheduled sessions as well (which is correct // according to domain modelling) $this->view->assign('unassigned', $this->getFlatSessionObjects('accepted')); $this->view->assign('jsconf', json_encode(['days' => $days, 'links' => ['getsessions' => $this->getHref('ApiModule', 'listSessions'), 'getrooms' => $this->getHref('ApiModule', 'listRooms'), 'updatesession' => $this->getHref('ApiModule', 'updateSession'), 'schedulesession' => $this->getHref('ApiModule', 'scheduleSession'), 'unschedulesession' => $this->getHref('ApiModule', 'unscheduleSession'), 'swapsessions' => $this->getHref('ApiModule', 'swapSessions'), 'analyze' => $this->getHref('ApiModule', 'analyze', ['start' => '{start}', 'end' => '{end}'])]])); $this->view->assignMultiple(array('incompleteSessions' => $incompleteSessions, 'creationDone' => $creationDone)); }
/** * Shows a page tree including count of news + category records * * @param integer $treeLevel * @return void */ public function newsPidListingAction($treeLevel = 2) { $tree = Page::pageTree($this->pageUid, $treeLevel); $rawTree = array(); foreach ($tree->tree as $row) { $this->countRecordsOnPage($row); $rawTree[] = $row; } $assignedValues = array('tree' => $rawTree, 'treeLevel' => $treeLevel); $assignedValues = $this->emitActionSignal('AdministrationController', self::SIGNAL_ADMINISTRATION_NEWSPIDLISTING_ACTION, $assignedValues); $this->view->assignMultiple($assignedValues); }
/** * General statistics * * @param int $depth * @param string $mode * @return void */ public function statisticAction($depth = 1, $mode = 'overview') { if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['external_parsers'])) { foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['external_parsers'] as $extension => $_objRef) { /** @var \TYPO3\CMS\IndexedSearch\FileContentParser $fileContentParser */ $fileContentParser = GeneralUtility::getUserObj($_objRef); if ($fileContentParser->softInit($extension)) { $this->external_parsers[$extension] = $fileContentParser; } } } $this->administrationRepository->external_parsers = $this->external_parsers; $allLines = $this->administrationRepository->getTree($this->pageUid, $depth, $mode); $this->view->assignMultiple(['levelTranslations' => explode('|', $this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.enterSearchLevels')), 'tree' => $allLines, 'pageUid' => $this->pageUid, 'mode' => $mode, 'depth' => $depth]); }
/** * Display a single report * * @param string $extension Extension * @param string $report Report * * @return void */ public function detailAction($extension, $report) { $content = $error = ''; $reportClass = null; if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports'][$extension]) && is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports'][$extension]) && isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports'][$extension][$report]) && is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports'][$extension][$report]) && isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports'][$extension][$report]['report'])) { $reportClass = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports'][$extension][$report]['report']; } // If extension has been uninstalled/removed redirect to index if ($reportClass === null) { $this->redirect('index'); } $reportInstance = GeneralUtility::makeInstance($reportClass, $this); if ($reportInstance instanceof ReportInterface) { $content = $reportInstance->getReport(); $this->saveState($extension, $report); } else { $error = $reportClass . ' does not implement the Report Interface which is necessary to be displayed here.'; } $this->view->assignMultiple(array('content' => $content, 'error' => $error, 'report' => $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports'][$extension][$report])); }