MediaWiki  REL1_31
License Class Reference

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

Collaboration diagram for License:

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 list, parse(), split(), and text.

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, $text, and list.

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: