Licenses Class Reference
[SpecialPage]

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

List of all members.

Public Member Functions

 __construct ($str=null)
 #@-
 makeLicenses ()
 #@+
 trimStars ($str)
 stackItem (&$list, $path, $item)
 makeHtml (&$tagset, $depth=0)
 outputOption ($val, $attribs=null, $depth)
 msg ($str)
 getLicenses ()
 #@-
 getHtml ()
 Accessor for $this->html.

Public 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 ( str = null  ) 

#@-

Constructor

Parameters:
$str String: the string to build the licenses member from, will use wfMsgForContent( 'licenses' ) if null (default: null)

Definition at line 38 of file Licenses.php.

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


Member Function Documentation

Licenses::getHtml (  ) 

Accessor for $this->html.

Returns:
string

Definition at line 146 of file Licenses.php.

Licenses::getLicenses (  ) 

#@-

Accessor for $this->licenses

Returns:
array

Definition at line 139 of file Licenses.php.

Referenced by __construct().

Licenses::makeHtml ( &$  tagset,
depth = 0 
)

Definition at line 97 of file Licenses.php.

References $key, msg(), and outputOption().

Referenced by __construct().

Licenses::makeLicenses (  ) 

#@+

Access:
private

Definition at line 51 of file Licenses.php.

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

Referenced by __construct().

Licenses::msg ( str  ) 

Definition at line 127 of file Licenses.php.

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

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

Licenses::outputOption ( val,
attribs = null,
depth 
)

Definition at line 122 of file Licenses.php.

References Xml::element().

Referenced by makeHtml().

Licenses::stackItem ( &$  list,
path,
item 
)

Definition at line 89 of file Licenses.php.

References $key, and $path.

Referenced by makeLicenses().

Licenses::trimStars ( str  ) 

Definition at line 78 of file Licenses.php.

References $count, $i, wfRestoreWarnings(), and wfSuppressWarnings().

Referenced by makeLicenses().


Member Data Documentation

Licenses::$html

Definition at line 29 of file Licenses.php.

Licenses::$licenses = array()

Definition at line 24 of file Licenses.php.

Licenses::$msg

Definition at line 19 of file Licenses.php.


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

Generated on Sat Sep 5 02:08:40 2009 for MediaWiki by  doxygen 1.5.9