MediaWiki  1.29.1
LocalisationUpdate\HttpFetcher Class Reference

Fetches files over HTTP(s). More...

Inheritance diagram for LocalisationUpdate\HttpFetcher:
Collaboration diagram for LocalisationUpdate\HttpFetcher:

Public Member Functions

 fetchDirectory ( $pattern)
 This is horribly inefficient. More...
 
 fetchFile ( $url)
 Fetches a single resource. More...
 

Detailed Description

Fetches files over HTTP(s).

Definition at line 13 of file HttpFetcher.php.

Member Function Documentation

◆ fetchDirectory()

LocalisationUpdate\HttpFetcher::fetchDirectory (   $pattern)

This is horribly inefficient.

Subclasses have more efficient implementation of this.

Implements LocalisationUpdate\Fetcher.

Reimplemented in LocalisationUpdate\GitHubFetcher.

Definition at line 22 of file HttpFetcher.php.

References $code, $languages, as, and Language\fetchLanguageNames().

◆ fetchFile()

LocalisationUpdate\HttpFetcher::fetchFile (   $url)

Fetches a single resource.

Returns
bool|string False on failure.

Implements LocalisationUpdate\Fetcher.

Definition at line 14 of file HttpFetcher.php.


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