ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Gettext\Extractors\ExtractorInterface Interface Reference
+ Inheritance diagram for Gettext\Extractors\ExtractorInterface:
+ Collaboration diagram for Gettext\Extractors\ExtractorInterface:

Static Public Member Functions

static fromFile ($file, Translations $translations=null)
 Extract the translations from a file. More...
 
static fromString ($string, Translations $translations=null, $file='')
 Parses a string and append the translations found in the Translations instance. More...
 

Detailed Description

Definition at line 7 of file ExtractorInterface.php.

Member Function Documentation

◆ fromFile()

static Gettext\Extractors\ExtractorInterface::fromFile (   $file,
Translations  $translations = null 
)
static

Extract the translations from a file.

Parameters
array | string$fileA path of a file or files
null | Translations$translationsThe translations instance to append the new translations.
Returns
Translations

Implemented in Gettext\Extractors\PhpArray.

◆ fromString()

static Gettext\Extractors\ExtractorInterface::fromString (   $string,
Translations  $translations = null,
  $file = '' 
)
static

The documentation for this interface was generated from the following file: