PHP 클래스 Contao\CoreBundle\Config\Loader\XliffFileLoader

상속: extends Symfony\Component\Config\Loader\Loader
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $rootDir, boolean $addToGlobals = false ) Constructor.
load ( string $file, string | null $type = null ) : string Reads the contents of a XLIFF file and returns the PHP code.
supports ( $resource, $type = null )

비공개 메소드들

메소드 설명
addGlobal ( array $chunks, mixed $value ) Adds the labels to the global PHP language array.
convertXlfToPhp ( string $name, string $language ) : string Converts an XLIFF file into a PHP language file.
fixClosingTags ( DOMNode $node ) : string Removes extra spaces in closing tags.
getChunksFromUnit ( DOMElement $unit ) : array Splits the ID attribute and returns the chunks.
getDomDocumentFromFile ( string $name ) : DOMDocument Returns a DOM document object.
getNodeByLanguage ( DOMElement $unit, string $language ) : DOMNodeList Returns a DOM node list depending on the language.
getStringRepresentation ( array $chunks, mixed $value ) : string Returns a string representation of the global PHP language array.
quoteKey ( string $key ) : integer | string Quotes an array key to be used as PHP string.
quoteValue ( string $value ) : string Quotes a value to be used as PHP string.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $rootDir, boolean $addToGlobals = false )
$rootDir string
$addToGlobals boolean

load() 공개 메소드

Reads the contents of a XLIFF file and returns the PHP code.
public load ( string $file, string | null $type = null ) : string
$file string
$type string | null
리턴 string

supports() 공개 메소드

public supports ( $resource, $type = null )