PHP 클래스 Devise\Languages\LanguageDetector

파일 보기 프로젝트 열기: devisephp/cms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$Language Protected fields for this class
$LocaleDetector Protected fields for this class

공개 메소드들

메소드 설명
__construct ( LocaleDetector $LocaleDetector, DvsLanguage $Language, $Config = null ) Create a new Language Detector
current ( ) : Language Get the current language for the locale this will probably use the cookie as default
primaryLanguageId ( ) : integer Returns the primary language id for this system
universal ( ) : Language Get the universal language that we fallback to.
update ( Language $language ) : void Update the current language for this browser

메소드 상세

__construct() 공개 메소드

Create a new Language Detector
public __construct ( LocaleDetector $LocaleDetector, DvsLanguage $Language, $Config = null )
$LocaleDetector LocaleDetector
$Language DvsLanguage

current() 공개 메소드

Get the current language for the locale this will probably use the cookie as default
public current ( ) : Language
리턴 Language

primaryLanguageId() 공개 메소드

Returns the primary language id for this system
public primaryLanguageId ( ) : integer
리턴 integer

universal() 공개 메소드

.. which is likely english because that is the default in laravel's Config::get(app.locale)
public universal ( ) : Language
리턴 Language

update() 공개 메소드

Update the current language for this browser
public update ( Language $language ) : void
$language Language
리턴 void

프로퍼티 상세

$Language 보호되어 있는 프로퍼티

Protected fields for this class
protected $Language

$LocaleDetector 보호되어 있는 프로퍼티

Protected fields for this class
protected $LocaleDetector