Commit c4e712f0 authored by Kevin Ditscheid's avatar Kevin Ditscheid

[TASK] Add missing doc comments

parent 21942f3a
......@@ -209,7 +209,7 @@ abstract class AbstractController extends ActionController {
*/
protected function prepareExtensionAndLangFileOptions() {
/** @var CacheManager $cacheManager */
$cacheManager = $this->objectManager->get('TYPO3\CMS\Core\Cache\CacheManager');
$cacheManager = $this->objectManager->get(CacheManager::class);
$extensions = $cacheManager->getCache('lfeditor_select_options_cache')->get('extensionAndLangFileOptions');
if (empty($extensions)) {
$extensionOptions = $this->configurationService->menuExtList();
......
......@@ -48,6 +48,8 @@ class GeneralController extends AbstractBackendController {
*
* @param bool $doStateRedirect
* @return void
* @throws UnsupportedRequestTypeException
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException
*/
public function indexAction($doStateRedirect = TRUE) {
if ($doStateRedirect) {
......@@ -65,6 +67,7 @@ class GeneralController extends AbstractBackendController {
* - after redirection from action which must not change the view.
*
* @return void
* @throws \TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException
*/
public function generalAction() {
try {
......@@ -88,6 +91,7 @@ class GeneralController extends AbstractBackendController {
* @param string $extensionSelection
* @param string $languageFileSelection
* @throws UnsupportedRequestTypeException
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException
*
* @return void
*/
......@@ -104,8 +108,10 @@ class GeneralController extends AbstractBackendController {
* @param string $metaDescription
* @param string $transformFile
* @param integer $splitFile
* @throws UnsupportedRequestTypeException
* @return void
* @throws UnsupportedRequestTypeException
* @throws \TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException
*/
public function generalSaveAction(
$authorName = NULL, $authorEmail = NULL, $metaDescription = NULL, $transformFile = NULL, $splitFile = NULL
......@@ -172,6 +178,9 @@ class GeneralController extends AbstractBackendController {
* Clears extensionAndLangFileOptions cache, and in that way refreshes list of language file options in select box.
*
* @return void
* @throws UnsupportedRequestTypeException
* @throws \TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException
*/
public function refreshLanguageFileListAction() {
$this->clearSelectOptionsCache('extensionAndLangFileOptions');
......@@ -182,6 +191,7 @@ class GeneralController extends AbstractBackendController {
* Prepares main section content of general view.
*
* @return void
* @throws LFException
*/
protected function prepareGeneralViewMainSectionContent() {
$this->configurationService->initFileObject(
......@@ -212,6 +222,8 @@ class GeneralController extends AbstractBackendController {
*
* @param string $language
* @return void
* @throws UnsupportedRequestTypeException
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException
*/
public function goToEditFileAction($language) {
$this->session->setDataByKey('languageSelection', $language);
......@@ -223,6 +235,8 @@ class GeneralController extends AbstractBackendController {
*
* @param int $tinyMCE says is TinyMCE insert mode is selected.
* @return void
* @throws UnsupportedRequestTypeException
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException
*/
public function switchInsertModeAction($tinyMCE = 0) {
$this->session->setDataByKey('tinyMCESelected', $tinyMCE !== 0);
......@@ -234,6 +248,8 @@ class GeneralController extends AbstractBackendController {
*
* @param string $editingMode 'extension', 'l10n', 'override'.
* @return void
* @throws UnsupportedRequestTypeException
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException
*/
public function switchEditingModeAction($editingMode = 'extension') {
$this->session->setDataByKey('editingMode', $editingMode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment