TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Lang\Domain\Repository\LanguageRepository Class Reference

Public Member Functions

 __construct ()
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager)
 
 injectLocales (\TYPO3\CMS\Core\Localization\Locales $locales)
 
 updateSelectedLanguages ($languages)
 

Protected Attributes

 $objectManager
 
 $selectedLanguages = array()
 
 $locales
 
 $languages = array()
 
 $configurationPath = 'EXTCONF/lang'
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Language repository

Author
Sebastian Fischer typo3.nosp@m.@evo.nosp@m.web.d.nosp@m.e

Definition at line 21 of file LanguageRepository.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Lang\Domain\Repository\LanguageRepository::__construct ( )

Constructor of the language repository

Definition at line 51 of file LanguageRepository.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Member Function Documentation

◆ injectLocales()

TYPO3\CMS\Lang\Domain\Repository\LanguageRepository::injectLocales ( \TYPO3\CMS\Core\Localization\Locales  $locales)

Injects the locales

Parameters
\TYPO3\CMS\Core\Localization\Locales$locales
Returns
void

Definition at line 79 of file LanguageRepository.php.

References $GLOBALS, TYPO3\CMS\Lang\Domain\Repository\LanguageRepository\$languages, TYPO3\CMS\Lang\Domain\Repository\LanguageRepository\$locales, and $result.

◆ injectObjectManager()

TYPO3\CMS\Lang\Domain\Repository\LanguageRepository::injectObjectManager ( \TYPO3\CMS\Extbase\Object\ObjectManager  $objectManager)

Injects the object manager

Parameters
\TYPO3\CMS\Extbase\Object\ObjectManager$objectManager
Returns
void

Definition at line 69 of file LanguageRepository.php.

References TYPO3\CMS\Lang\Domain\Repository\LanguageRepository\$objectManager.

◆ updateSelectedLanguages()

TYPO3\CMS\Lang\Domain\Repository\LanguageRepository::updateSelectedLanguages (   $languages)

Update selected languages

Parameters
array$languages
Returns
array

Definition at line 145 of file LanguageRepository.php.

References TYPO3\CMS\Lang\Domain\Repository\LanguageRepository\$languages, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Member Data Documentation

◆ $configurationPath

TYPO3\CMS\Lang\Domain\Repository\LanguageRepository::$configurationPath = 'EXTCONF/lang'
protected

Definition at line 46 of file LanguageRepository.php.

◆ $languages

TYPO3\CMS\Lang\Domain\Repository\LanguageRepository::$languages = array()
protected

◆ $locales

TYPO3\CMS\Lang\Domain\Repository\LanguageRepository::$locales
protected

◆ $objectManager

TYPO3\CMS\Lang\Domain\Repository\LanguageRepository::$objectManager
protected

◆ $selectedLanguages

TYPO3\CMS\Lang\Domain\Repository\LanguageRepository::$selectedLanguages = array()
protected

Definition at line 31 of file LanguageRepository.php.