Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
FFS.php
Go to the documentation of this file.
1<?php
16
21interface FFS {
22 public function __construct( FileBasedMessageGroup $group );
23
28 public function setWritePath( $target );
29
34 public function getWritePath();
35
43 public function read( $code );
44
51 public function readFromVariable( $data );
52
59 public function write( MessageCollection $collection );
60
68 public function writeIntoVariable( MessageCollection $collection );
69
78 public function supportsFuzzy();
79
90 public function isContentEqual( $a, $b );
91
98 public function getFileExtensions();
99
110 public function shouldOverwrite( $a, $b );
111}
This class implements default behavior for file based message groups.
This file contains the class for core message collections implementation.
Interface for file system support classes.
Definition FFS.php:21
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.