PHP 클래스 Vsch\TranslationManager\Classes\TranslationFileRewriter

파일 보기 프로젝트 열기: vsch/laravel-translation-manager 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$firstLevelKeys contains the key portion of the first level identifier as the key and the value is [ 'section' => int, // index of the section this identifier belongs to. -1 means before first. 'ordinal' => int, // ordinal position of this identifier in the section 'quotes' => string, // type of quoting used for the key if it was a string, ', ", << string, // type of quoting used for value if it was a string, ', ", <<
$options
$sections containing the multi-line comment text as they appear in the file, including leading and trailing blank lines. Indexed by the count of the multi-line comment.
$source string
$tokens array

공개 메소드들

메소드 설명
__construct ( ) TranslationFileRewriter constructor.
__toString ( ) : string The __toString method allows a class to decide how it will react when it is converted to a string.
formatForExport ( $trans, $options = null )
optionFlags ( $optionNames )
parseSource ( $source )
str_count_chars ( $chars, $string )
str_count_trailing ( $chars, $string )

보호된 메소드들

메소드 설명
formatSection ( $trans, $options = null, $indent )
wrapQuotes ( $value, $options = null )

메소드 상세

__construct() 공개 메소드

TranslationFileRewriter constructor.
public __construct ( )

__toString() 공개 메소드

The __toString method allows a class to decide how it will react when it is converted to a string.
public __toString ( ) : string
리턴 string

formatForExport() 공개 메소드

public formatForExport ( $trans, $options = null )

formatSection() 보호된 메소드

protected formatSection ( $trans, $options = null, $indent )

optionFlags() 공개 정적인 메소드

public static optionFlags ( $optionNames )

parseSource() 공개 메소드

public parseSource ( $source )
$source TODO: Quite a bit of kludge but does the job. Needs clean up, it is hard on the eyes.

str_count_chars() 공개 정적인 메소드

public static str_count_chars ( $chars, $string )

str_count_trailing() 공개 정적인 메소드

public static str_count_trailing ( $chars, $string )

wrapQuotes() 보호된 메소드

protected wrapQuotes ( $value, $options = null )

프로퍼티 상세

$firstLevelKeys 공개적으로 프로퍼티

contains the key portion of the first level identifier as the key and the value is [ 'section' => int, // index of the section this identifier belongs to. -1 means before first. 'ordinal' => int, // ordinal position of this identifier in the section 'quotes' => string, // type of quoting used for the key if it was a string, ', ", << string, // type of quoting used for value if it was a string, ', ", <<
public $firstLevelKeys

$options 공개적으로 정적으로 프로퍼티

public static $options

$sections 공개적으로 프로퍼티

containing the multi-line comment text as they appear in the file, including leading and trailing blank lines. Indexed by the count of the multi-line comment.
public $sections

$source 공개적으로 프로퍼티

public string $source
리턴 string

$tokens 공개적으로 프로퍼티

public array $tokens
리턴 array