MediaWiki master
MediaWiki\Utils\ExtensionInfo Class Reference

Static Public Member Functions

static getAuthorsFileName ( $dir)
 Obtains the full path of a AUTHORS or CREDITS file if one exists.
 
static getLicenseFileNames (string $extDir)
 Obtains the full paths of COPYING or LICENSE files if they exist.
 

Detailed Description

Since
1.35

Definition at line 8 of file ExtensionInfo.php.

Member Function Documentation

◆ getAuthorsFileName()

static MediaWiki\Utils\ExtensionInfo::getAuthorsFileName ( $dir)
static

Obtains the full path of a AUTHORS or CREDITS file if one exists.

Parameters
string$dirPath to the root directory
Since
1.35
Returns
string|false False if no such file exists, otherwise returns a path to it.

Definition at line 20 of file ExtensionInfo.php.

◆ getLicenseFileNames()

static MediaWiki\Utils\ExtensionInfo::getLicenseFileNames ( string $extDir)
static

Obtains the full paths of COPYING or LICENSE files if they exist.

Since
1.35
Parameters
string$extDirPath to the extensions root directory
Returns
string[] Returns an array of zero or more paths.

Definition at line 45 of file ExtensionInfo.php.


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