MediaWiki REL1_37
License Class Reference

A License class for use on Special:Upload (represents a single type of license). More...

Public Member Functions

 __construct ( $str)
 

Public Attributes

string $template
 
string $text
 

Protected Member Functions

 parse ( $str)
 
 split ( $str)
 

Detailed Description

A License class for use on Special:Upload (represents a single type of license).

Definition at line 30 of file License.php.

Constructor & Destructor Documentation

◆ __construct()

License::__construct (   $str)
Parameters
string$str

Definition at line 40 of file License.php.

References parse(), and split().

Member Function Documentation

◆ parse()

License::parse (   $str)
protected
Parameters
string$str
Returns
string

Definition at line 49 of file License.php.

Referenced by __construct().

◆ split()

License::split (   $str)
protected
Parameters
string$str
Returns
string[] Array with [template, text]

Definition at line 57 of file License.php.

References $template, and $text.

Referenced by __construct().

Member Data Documentation

◆ $template

string License::$template

Definition at line 32 of file License.php.

Referenced by split().

◆ $text

string License::$text

Definition at line 35 of file License.php.

Referenced by split().


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