PHP 클래스 Piwik\Plugins\LanguagesManager\LanguagesManager

상속: extends Piwik\Plugin
파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
addLanguagesManagerToOtherTopBar ( &$str ) Adds the languages drop-down list to topbars other than the main one rendered in CoreHome/templates/top_bar.twig. The 'other' topbars are on the Installation and CoreUpdater screens.
deleteUserLanguage ( $userLogin )
getJsFiles ( &$jsFiles )
getLanguageCodeForCurrentUser ( ) : string
getLanguageForSession ( ) : string | null Returns the language for the session
getLanguageNameForCurrentUser ( ) : string
getLanguagesSelector ( ) : string Renders and returns the language selector HTML.
initLanguage ( )
install ( )
jsGlobalVariables ( &$str ) Adds the languages drop-down list to topbars other than the main one rendered in CoreHome/templates/top_bar.twig. The 'other' topbars are on the Installation and CoreUpdater screens.
registerEvents ( )
setLanguageForSession ( string $languageCode ) : boolean Set the language for the session
uninstall ( )
uses12HourClockForCurrentUser ( ) : boolean

보호된 메소드들

메소드 설명
getLanguageFromPreferences ( ) : string | false

메소드 상세

addLanguagesManagerToOtherTopBar() 공개 메소드

Adds the languages drop-down list to topbars other than the main one rendered in CoreHome/templates/top_bar.twig. The 'other' topbars are on the Installation and CoreUpdater screens.

deleteUserLanguage() 공개 메소드

public deleteUserLanguage ( $userLogin )

getJsFiles() 공개 메소드

public getJsFiles ( &$jsFiles )

getLanguageCodeForCurrentUser() 공개 정적인 메소드

public static getLanguageCodeForCurrentUser ( ) : string
리턴 string Two letters language code, eg. "fr"

getLanguageForSession() 공개 정적인 메소드

Returns the language for the session
public static getLanguageForSession ( ) : string | null
리턴 string | null

getLanguageFromPreferences() 보호된 정적인 메소드

protected static getLanguageFromPreferences ( ) : string | false
리턴 string | false if language preference could not be loaded

getLanguageNameForCurrentUser() 공개 정적인 메소드

public static getLanguageNameForCurrentUser ( ) : string
리턴 string Full english language string, eg. "French"

getLanguagesSelector() 공개 메소드

Renders and returns the language selector HTML.
public getLanguagesSelector ( ) : string
리턴 string

initLanguage() 공개 메소드

public initLanguage ( )

install() 공개 메소드

public install ( )

jsGlobalVariables() 공개 메소드

Adds the languages drop-down list to topbars other than the main one rendered in CoreHome/templates/top_bar.twig. The 'other' topbars are on the Installation and CoreUpdater screens.
public jsGlobalVariables ( &$str )

registerEvents() 공개 메소드

또한 보기: Piwik\Plugin::registerEvents
public registerEvents ( )

setLanguageForSession() 공개 정적인 메소드

Set the language for the session
public static setLanguageForSession ( string $languageCode ) : boolean
$languageCode string ISO language code
리턴 boolean

uninstall() 공개 메소드

public uninstall ( )

uses12HourClockForCurrentUser() 공개 정적인 메소드

public static uses12HourClockForCurrentUser ( ) : boolean
리턴 boolean