PHP 클래스 CI_Lang, TastyIgniter

저자: ExpressionEngine Dev Team
파일 보기 프로젝트 열기: tastyigniter/tastyigniter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$is_loaded array List of loaded language files
$language array List of translations

공개 메소드들

메소드 설명
__construct ( ) : void Class constructor
line ( string $line, boolean $log_errors = TRUE ) : string Language line
load ( mixed $langfile, string $idiom = '', boolean $return = FALSE, boolean $add_suffix = TRUE, string $alt_path = '' ) : void | string[] Load a language file

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( ) : void
리턴 void

line() 공개 메소드

Fetches a single line of text from the language array
public line ( string $line, boolean $log_errors = TRUE ) : string
$line string Language line key
$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 $idiom = '', boolean $return = FALSE, boolean $add_suffix = TRUE, string $alt_path = '' ) : void | string[]
$langfile mixed Language file name
$idiom string Language name (english, etc.)
$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
리턴 void | string[] Array containing translations, if $return is set to TRUE

프로퍼티 상세

$is_loaded 공개적으로 프로퍼티

List of loaded language files
public array $is_loaded
리턴 array

$language 공개적으로 프로퍼티

List of translations
public array $language
리턴 array