MediaWiki REL1_31
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)
 
- Public Member Functions inherited from LocalisationUpdate\HttpFetcher
 fetchFile ( $url)
 

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)
Parameters
string$pattern
Returns
array
Exceptions

\Exception

Reimplemented from LocalisationUpdate\HttpFetcher.

Definition at line 25 of file GitHubFetcher.php.

References $fileinfo.


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