Property | Type | Description | |
---|---|---|---|
$Detector | [$Language description] | ||
$Language | [$Language description] | ||
$Page | [$Language description] |
Method | Description | |
---|---|---|
__construct ( DvsLanguage $Language, |
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 |
public __construct ( DvsLanguage $Language, |
||
$Language | DvsLanguage | |
$Detector | ||
$Page | DvsPage | |
$PageVersion | DvsPageVersion |
public currentLanguage ( ) : Language | ||
return | Language |
public findLanguageForPageVersion ( integer $pageVersionId ) : Language | ||
$pageVersionId | integer | |
return | Language |
public languageSelectorOptions ( $page ) | ||
$page |
public languages ( ) : Eloquent\Collection | ||
return | Eloquent\Collection |