PHP 클래스 TI_Lang, TastyIgniter

상속: extends MX_Lang
파일 보기 프로젝트 열기: tastyigniter/tastyigniter

보호된 프로퍼티들

프로퍼티 타입 설명
$languages

공개 메소드들

메소드 설명
defaultLang ( string $langfile, string $lang = '' ) : string Default Language
line ( string $line, string | array $params = NULL, boolean $log_errors = TRUE ) : string Language line
load ( mixed $langfile, string $lang = '', boolean $return = FALSE, boolean $add_suffix = TRUE, string $alt_path = '', string $_module = '' ) : string[] | void Load a language file

보호된 메소드들

메소드 설명
getIdiom ( string $language ) : string Language Idiom

메소드 상세

defaultLang() 공개 메소드

Detects the browser language or uses the admin settings language as default language
public defaultLang ( string $langfile, string $lang = '' ) : string
$langfile string
$lang string
리턴 string

getIdiom() 보호된 메소드

Fetches the idiom of the browser's language from the database.
protected getIdiom ( string $language ) : string
$language string
리턴 string

line() 공개 메소드

Fetches a single line of text from the language array
public line ( string $line, string | array $params = NULL, boolean $log_errors = TRUE ) : string
$line string Language line key
$params string | array String or array of strings to be inserted at placeholders like %s, %d, etc.
$log_errors boolean Whether to log an error message if the line is not found
리턴 string Translation

load() 공개 메소드

Load a language file
public load ( mixed $langfile, string $lang = '', boolean $return = FALSE, boolean $add_suffix = TRUE, string $alt_path = '', string $_module = '' ) : string[] | void
$langfile mixed Language file name
$lang string
$return boolean Whether to return the loaded array of translations
$add_suffix boolean Whether to add suffix to $langfile
$alt_path string Alternative path to look for the language file
$_module string
리턴 string[] | void Array containing translations, if $return is set to TRUE

프로퍼티 상세

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

protected $languages