XliffFFS Class Reference
[File format support]

Partial support for the Xliff translation format. More...

Inheritance diagram for XliffFFS:
Inheritance graph
[legend]
Collaboration diagram for XliffFFS:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 getFileExtensions ()
 Return the commonly used file extensions for these formats.
 readFromVariable ($data, $element= 'target')
 read ($code)
 Reads messages from the file in a given language and returns an array of AUTHORS, MESSAGES and possibly other properties.
 supportsFuzzy ()
 Query the capabilities of this FFS.

Static Public Member Functions

static isValid ($data)
static getInnerXml (DomElement $node)
 Gets the html inside en element without the element itself.

Protected Member Functions

 writeReal (MessageCollection $collection)

Detailed Description

Partial support for the Xliff translation format.

Since:
2013-04

Definition at line 15 of file XliffFFS.php.


Member Function Documentation

XliffFFS::getFileExtensions (  ) 

Return the commonly used file extensions for these formats.

Include the dot.

Returns:
string[]
Since:
2013-04

Reimplemented from SimpleFFS.

Definition at line 33 of file XliffFFS.php.

static XliffFFS::getInnerXml ( DomElement $  node  )  [static]

Gets the html inside en element without the element itself.

Definition at line 102 of file XliffFFS.php.

Referenced by readFromVariable().

static XliffFFS::isValid ( data  )  [static]

Definition at line 16 of file XliffFFS.php.

XliffFFS::read ( code  ) 

Reads messages from the file in a given language and returns an array of AUTHORS, MESSAGES and possibly other properties.

Parameters:
$code string
Returns:
array|bool false if the file does not exist
Exceptions:
MWException if the file appears to exist, but cannot be read

Reimplemented from SimpleFFS.

Definition at line 83 of file XliffFFS.php.

Here is the call graph for this function:

XliffFFS::readFromVariable ( data,
element = 'target' 
)

Definition at line 37 of file XliffFFS.php.

Referenced by read().

Here is the call graph for this function:

XliffFFS::supportsFuzzy (  ) 

Query the capabilities of this FFS.

Allowed values are:

  • yes
  • write (ignored on read)
  • no (stripped on write)
    Returns:
    string
    Since:
    2013-03-05

Reimplemented from SimpleFFS.

Definition at line 169 of file XliffFFS.php.

XliffFFS::writeReal ( MessageCollection collection  )  [protected]
Parameters:
$collection MessageCollection
Returns:
string

Reimplemented from SimpleFFS.

Definition at line 111 of file XliffFFS.php.


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:57 2013 for MediaWiki Translate Extension by  doxygen 1.6.3