MediaWiki REL1_35
MediaWiki\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 ( $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\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
bool|string False if no such file exists, otherwise returns a path to it.

Definition at line 20 of file ExtensionInfo.php.

References $file.

◆ getLicenseFileNames()

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

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

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

Definition at line 47 of file ExtensionInfo.php.

References $file.


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