PHP Class Devise\Languages\LanguagesRepository

Mostrar archivo Open project: devisephp/cms Class Usage Examples

Protected Properties

Property Type Description
$Detector [$Language description]
$Language [$Language description]
$Page [$Language description]

Public Methods

Method Description
__construct ( DvsLanguage $Language, LanguageDetector $Detector, DvsPage $Page, DvsPageVersion $PageVersion ) Construct language repository
activeLanguageList ( ) List of active languages
currentLanguage ( ) : Language Magical method that gets the language for the current request and user
findLanguageForPageVersion ( integer $pageVersionId ) : Language Finds the language for a given page version
languageSelectorOptions ( $page ) List of options for the a language selector
languages ( ) : Eloquent\Collection Paginated list of languages

Method Details

__construct() public method

Construct language repository
public __construct ( DvsLanguage $Language, LanguageDetector $Detector, DvsPage $Page, DvsPageVersion $PageVersion )
$Language DvsLanguage
$Detector LanguageDetector
$Page DvsPage
$PageVersion DvsPageVersion

activeLanguageList() public method

List of active languages
public activeLanguageList ( )

currentLanguage() public method

Magical method that gets the language for the current request and user
public currentLanguage ( ) : Language
return Language

findLanguageForPageVersion() public method

Finds the language for a given page version
public findLanguageForPageVersion ( integer $pageVersionId ) : Language
$pageVersionId integer
return Language

languageSelectorOptions() public method

List of options for the a language selector
public languageSelectorOptions ( $page )
$page

languages() public method

Paginated list of languages
public languages ( ) : Eloquent\Collection
return Eloquent\Collection

Property Details

$Detector protected_oe property

[$Language description]
protected $Detector

$Language protected_oe property

[$Language description]
protected $Language

$Page protected_oe property

[$Language description]
protected $Page