Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SMW\MediaWiki\Page\Page Class Reference
Inheritance diagram for SMW\MediaWiki\Page\Page:
Inheritance graph
[legend]
Collaboration diagram for SMW\MediaWiki\Page\Page:
Collaboration graph
[legend]

Public Member Functions

 view ()
 
 getOption ( $key)
 
 setOption ( $key, $value)
 

Protected Member Functions

 getRedirectTargetURL ()
 
 getTopIndicators ()
 
 initHtml ()
 
 isLockedView ()
 
 showList ()
 
 initParameters ()
 
 beforeView ()
 
 afterHtml ()
 
 getHtml ()
 
 getDataItem ()
 

Protected Attributes

 $limit
 
 $from
 
 $until
 
 $skin
 

Detailed Description

Abstract subclass of MediaWiki's Article that handles the common tasks of article pages for Concept and Property pages. This is mainly parameter handling and some very basic output control.

GNU GPL v2+

Since
3.0
Author
Nikolas Iwan
Markus Krötzsch
Jeroen De Dauw

Member Function Documentation

◆ afterHtml()

SMW\MediaWiki\Page\Page::afterHtml ( )
protected

Returns HTML to be displayed after the list display.

Returns
string

◆ beforeView()

SMW\MediaWiki\Page\Page::beforeView ( )
protected

Returns HTML to be displayed before the article text.

Returns
string

◆ getDataItem()

SMW\MediaWiki\Page\Page::getDataItem ( )
protected

Like Article's getTitle(), but returning a suitable SMWDIWikiPage.

Since
1.6
Returns
DIWikiPage

◆ getHtml()

SMW\MediaWiki\Page\Page::getHtml ( )
abstractprotected

Returns the HTML which is added to $wgOut after the article text.

Returns
string

◆ getOption()

SMW\MediaWiki\Page\Page::getOption (   $key)
Since
3.0
Parameters
string$key
Returns
mixed

◆ getRedirectTargetURL()

SMW\MediaWiki\Page\Page::getRedirectTargetURL ( )
protected
Since
3.0
Returns
string|boolean

◆ getTopIndicators()

SMW\MediaWiki\Page\Page::getTopIndicators ( )
protected
Since
2.4
Returns
string

◆ initHtml()

SMW\MediaWiki\Page\Page::initHtml ( )
protected
Since
3.0
Returns
string

◆ initParameters()

SMW\MediaWiki\Page\Page::initParameters ( )
protected

Initialise some parameters that might be changed by subclasses (e.g. $limit). Method can be overwritten in this case. If the method returns false, nothing will be printed besides the original article.

Returns
true

◆ isLockedView()

SMW\MediaWiki\Page\Page::isLockedView ( )
protected
Since
3.0
Returns
boolean

◆ setOption()

SMW\MediaWiki\Page\Page::setOption (   $key,
  $value 
)
Since
3.0
Parameters
string$key
mixed$value

◆ showList()

SMW\MediaWiki\Page\Page::showList ( )
protected

Main method for adding all additional HTML to the output stream.

◆ view()

SMW\MediaWiki\Page\Page::view ( )

Overwrite Article::view to add additional HTML to the output.

See also
Article::view

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

About | General disclaimer | Privacy policy