MediaWiki  REL1_19
Licenses Class Reference

A License class for use on Special:Upload. More...

Inheritance diagram for Licenses:
Collaboration diagram for Licenses:

List of all members.

Public Member Functions

 __construct ($params)
 #@-
 getInputHTML ($value)
 Accessor for $this->html.
 getLicenses ()
 #@-

Protected Member Functions

 makeHtml ($tagset, $depth=0)
 makeLicenses ()
 msg ($str)
 outputOption ($text, $value, $attribs=null, $depth=0)
 stackItem (&$list, $path, $item)
 trimStars ($str)

Protected Attributes

 $html
 $licenses = array()
 $msg

Detailed Description

A License class for use on Special:Upload.

Author:
Ævar Arnfjörð Bjarmason <[email protected]>
Note:
Copyright © 2005, Ævar Arnfjörð Bjarmason
http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later

Definition at line 12 of file Licenses.php.


Constructor & Destructor Documentation

Licenses::__construct ( params)

#@-

Constructor

Parameters:
$paramsarray

Reimplemented from HTMLFormField.

Definition at line 34 of file Licenses.php.

References makeLicenses(), msg(), and wfMsgForContent().

Here is the call graph for this function:


Member Function Documentation

Licenses::getInputHTML ( value)

Accessor for $this->html.

Parameters:
$valuebool
Returns:
string

Reimplemented from HTMLFormField.

Definition at line 164 of file Licenses.php.

References getLicenses(), makeHtml(), outputOption(), Html\rawElement(), and wfMsg().

Here is the call graph for this function:

#@-

Accessor for $this->licenses

Returns:
array

Definition at line 153 of file Licenses.php.

Referenced by getInputHTML().

Here is the caller graph for this function:

Licenses::makeHtml ( tagset,
depth = 0 
) [protected]
Parameters:
$tagset
$depthint

Definition at line 101 of file Licenses.php.

References msg(), and outputOption().

Referenced by getInputHTML().

Here is the call graph for this function:

Here is the caller graph for this function:

Licenses::makeLicenses ( ) [protected]
Access:
private

Definition at line 46 of file Licenses.php.

References $lines, msg(), stackItem(), and trimStars().

Referenced by __construct().

Here is the call graph for this function:

Here is the caller graph for this function:

Licenses::msg ( str) [protected]
Parameters:
$strstring
Returns:
String

Definition at line 141 of file Licenses.php.

References $msg, and wfMessage().

Referenced by __construct(), makeHtml(), and makeLicenses().

Here is the call graph for this function:

Here is the caller graph for this function:

Licenses::outputOption ( text,
value,
attribs = null,
depth = 0 
) [protected]
Parameters:
$text
$value
$attribsnull
$depthint
Returns:
string

Definition at line 129 of file Licenses.php.

References Xml\element().

Referenced by getInputHTML(), and makeHtml().

Here is the call graph for this function:

Here is the caller graph for this function:

Licenses::stackItem ( &$  list,
path,
item 
) [protected]
Parameters:
$list
$path
$item

Definition at line 87 of file Licenses.php.

References $path.

Referenced by makeLicenses().

Here is the caller graph for this function:

Licenses::trimStars ( str) [protected]
Parameters:
$str
Returns:
array

Definition at line 77 of file Licenses.php.

Referenced by makeLicenses().

Here is the caller graph for this function:


Member Data Documentation

Licenses::$html [protected]

Definition at line 26 of file Licenses.php.

Licenses::$licenses = array() [protected]

Definition at line 21 of file Licenses.php.

Licenses::$msg [protected]

Definition at line 16 of file Licenses.php.

Referenced by msg().


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