MediaWiki  1.29.2
LocalisationUpdate\GitHubFetcher Class Reference

This class uses GitHub api to obtain a list of files present in a directory to avoid fetching files that don't exist. More...

Inheritance diagram for LocalisationUpdate\GitHubFetcher:
Collaboration diagram for LocalisationUpdate\GitHubFetcher:

Public Member Functions

 fetchDirectory ( $pattern)
 This is horribly inefficient. More...
 
- Public Member Functions inherited from LocalisationUpdate\HttpFetcher
 fetchFile ( $url)
 Fetches a single resource. More...
 

Detailed Description

This class uses GitHub api to obtain a list of files present in a directory to avoid fetching files that don't exist.

Todo:
Could use file hashes to 1) avoid fetching files with same hash as the source. 2) avoid fetching files which haven't changed since last check if we store them.

Definition at line 18 of file GitHubFetcher.php.

Member Function Documentation

◆ fetchDirectory()

LocalisationUpdate\GitHubFetcher::fetchDirectory (   $pattern)

This is horribly inefficient.

Subclasses have more efficient implementation of this.

Reimplemented from LocalisationUpdate\HttpFetcher.

Definition at line 19 of file GitHubFetcher.php.

References $fileinfo, as, FormatJson\decode(), and Http\get().


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