PHP 클래스 HTMLPurifier_Language, yii

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

공개 프로퍼티들

프로퍼티 타입 설명
$_loaded Has the language object been loaded yet?
$code ISO 639 language code of language. Prefers shortest possible version.
$error True if no message file was found for this language, so English is being used instead. Check this if you'd like to notify the user that they've used a non-supported language.
$errorNames Array of localizable error codes.
$fallback Fallback language code.
$messages Array of localizable messages.

보호된 프로퍼티들

프로퍼티 타입 설명
$config
$context

공개 메소드들

메소드 설명
__construct ( HTMLPurifier_Config $config, HTMLPurifier_Context $context )
formatMessage ( string $key, array $args = [] ) : string Formats a localised message with passed parameters
getErrorName ( integer $int ) : string Retrieves a localised error name.
getMessage ( string $key ) : string Retrieves a localised message.
listify ( array $array ) : string Converts an array list into a string readable representation
load ( ) Loads language object with necessary info from factory cache

메소드 상세

__construct() 공개 메소드

public __construct ( HTMLPurifier_Config $config, HTMLPurifier_Context $context )
$config HTMLPurifier_Config
$context HTMLPurifier_Context

formatMessage() 공개 메소드

Formats a localised message with passed parameters
public formatMessage ( string $key, array $args = [] ) : string
$key string string identifier of message
$args array Parameters to substitute in
리턴 string localised message

getErrorName() 공개 메소드

Retrieves a localised error name.
public getErrorName ( integer $int ) : string
$int integer error number, corresponding to PHP's error reporting
리턴 string localised message

getMessage() 공개 메소드

Retrieves a localised message.
public getMessage ( string $key ) : string
$key string string identifier of message
리턴 string localised message

listify() 공개 메소드

Converts an array list into a string readable representation
public listify ( array $array ) : string
$array array
리턴 string

load() 공개 메소드

Loads language object with necessary info from factory cache
public load ( )

프로퍼티 상세

$_loaded 공개적으로 프로퍼티

Has the language object been loaded yet?
public $_loaded

$code 공개적으로 프로퍼티

ISO 639 language code of language. Prefers shortest possible version.
public $code

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

protected $config

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

protected $context

$error 공개적으로 프로퍼티

True if no message file was found for this language, so English is being used instead. Check this if you'd like to notify the user that they've used a non-supported language.
public $error

$errorNames 공개적으로 프로퍼티

Array of localizable error codes.
public $errorNames

$fallback 공개적으로 프로퍼티

Fallback language code.
public $fallback

$messages 공개적으로 프로퍼티

Array of localizable messages.
public $messages