MediaWiki  1.34.0
LocalisationUpdate\Fetcher Interface Reference

Interface for classes which fetch files over different protocols and ways. More...

Inheritance diagram for LocalisationUpdate\Fetcher:

Public Member Functions

 fetchDirectory ( $pattern)
 Fetch a list of resources. More...
 
 fetchFile ( $url)
 Fetches a single resource. More...
 

Detailed Description

Interface for classes which fetch files over different protocols and ways.

Definition at line 13 of file Fetcher.php.

Member Function Documentation

◆ fetchDirectory()

LocalisationUpdate\Fetcher::fetchDirectory (   $pattern)

Fetch a list of resources.

This has the benefit of being able to pick up new languages as they appear if languages are stored in separate files.

Parameters
string$pattern
Returns
array

Implemented in LocalisationUpdate\FileSystemFetcher, LocalisationUpdate\HttpFetcher, and LocalisationUpdate\GitHubFetcher.

◆ fetchFile()

LocalisationUpdate\Fetcher::fetchFile (   $url)

Fetches a single resource.

Parameters
string$url
Returns
bool|string False on failure.

Implemented in LocalisationUpdate\FileSystemFetcher, and LocalisationUpdate\HttpFetcher.


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