Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
FFS.php
Go to the documentation of this file.
1<?php
19interface FFS {
20 public function __construct( FileBasedMessageGroup $group );
21
26 public function setWritePath( $target );
27
32 public function getWritePath();
33
41 public function read( $code );
42
49 public function readFromVariable( $data );
50
57 public function write( MessageCollection $collection );
58
66 public function writeIntoVariable( MessageCollection $collection );
67
76 public function supportsFuzzy();
77
88 public function isContentEqual( $a, $b );
89
96 public function getFileExtensions();
97
108 public function shouldOverwrite( $a, $b );
109}
This class implements default behavior for file based message groups.
Core message collection class.
Interface for file system support classes.
Definition FFS.php:19
setWritePath( $target)
Set the file's location in the system.
isContentEqual( $a, $b)
Checks whether two strings are equal.
getWritePath()
Get the file's location in the system.
shouldOverwrite( $a, $b)
Allows to skip writing the export output into a file.
readFromVariable( $data)
Same as read(), but takes the data as a parameter.
getFileExtensions()
Return the commonly used file extensions for these formats.
read( $code)
Will parse messages, authors, and any custom data from the file and return it in associative array wi...
writeIntoVariable(MessageCollection $collection)
Quick shortcut for getting the plain exported data.
supportsFuzzy()
Query the capabilities of this FFS.
write(MessageCollection $collection)
Writes to the location provided with setWritePath and group specific directory structure.