Licenses Class Reference
[SpecialPage]

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

Inherits HTMLFormField.

List of all members.

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

 $msg
 $licenses = array()
 $html


Detailed Description

A License class for use on Special:Upload.

Author:
Ævar Arnfjörð Bjarmason <avarab@gmail.com> 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

Reimplemented from HTMLFormField.

Definition at line 32 of file Licenses.php.

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


Member Function Documentation

Licenses::getInputHTML ( value  ) 

Accessor for $this->html.

Returns:
string

Reimplemented from HTMLFormField.

Definition at line 134 of file Licenses.php.

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

Licenses::getLicenses (  ) 

#@-

Accessor for $this->licenses

Returns:
array

Definition at line 127 of file Licenses.php.

Referenced by getInputHTML().

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

Definition at line 86 of file Licenses.php.

References msg(), and outputOption().

Referenced by getInputHTML().

Licenses::makeLicenses (  )  [protected]

#@+

Access:
private

Definition at line 44 of file Licenses.php.

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

Referenced by __construct().

Licenses::msg ( str  )  [protected]

Definition at line 115 of file Licenses.php.

References $out, wfEmptyMsg(), and wfMsg().

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

Licenses::outputOption ( text,
value,
attribs = null,
depth = 0 
) [protected]

Definition at line 107 of file Licenses.php.

References Xml::element().

Referenced by getInputHTML(), and makeHtml().

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

Definition at line 78 of file Licenses.php.

References $path.

Referenced by makeLicenses().

Licenses::trimStars ( str  )  [protected]

Definition at line 71 of file Licenses.php.

References $i.

Referenced by makeLicenses().


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.


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

Generated on Sat Apr 30 22:57:41 2011 for MediaWiki by  doxygen 1.5.9