PHP Class Sulu\Component\Content\Import\Format\Xliff12

Inheritance: implements Sulu\Component\Content\Import\WebspaceFormatImportInterface
Show file Open project: sulu/sulu

Public Methods

Method Description
getProperty ( $name, $data, $contentTypeName = null, $extension = null, $default = null )
getPropertyData ( $name, $data, $contentTypeName = null, $extension = null, $default = null )
parse ( $filePath, $locale )

Protected Methods

Method Description
extractData ( DOMDocument $dom, string $locale ) : array
getData ( $file, $encoding ) : array

Private Methods

Method Description
getChildPropertyDatas ( $child ) : array Prepare data for structure.
utf8ToCharset ( string $content, string $encoding = null ) : string Part of Symfony XliffFileLoader.

Method Details

extractData() protected method

protected extractData ( DOMDocument $dom, string $locale ) : array
$dom DOMDocument
$locale string
return array

getData() protected method

protected getData ( $file, $encoding ) : array
$file
return array

getProperty() public method

public getProperty ( $name, $data, $contentTypeName = null, $extension = null, $default = null )

getPropertyData() public method

public getPropertyData ( $name, $data, $contentTypeName = null, $extension = null, $default = null )

parse() public method

public parse ( $filePath, $locale )