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

Public Member Functions

 getName ()
 
 getParamDefinitions (array $definitions)
 

Protected Member Functions

 buildResult (SMWQueryResult $results)
 
 addImageToGallery (&$ig, Title $imgTitle, $imgCaption, $imgRedirect='')
 

Detailed Description

Result printer that outputs query results as a image gallery.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
mwjames
Rowan Rodrik van der Molen

Member Function Documentation

◆ addImageToGallery()

SRF\Gallery::addImageToGallery ( $ig,
Title  $imgTitle,
  $imgCaption,
  $imgRedirect = '' 
)
protected

Adds a single image to the gallery. Takes care of automatically adding a caption when none is provided and parsing it's wikitext.

Since
1.5.3
Parameters
TraditionalImageGallery$igThe gallery to add the image to
Title$imgTitleThe title object of the page of the image
string$imgCaptionAn optional caption for the image
string$imgRedirect

◆ buildResult()

SRF\Gallery::buildResult ( SMWQueryResult  $results)
protected
See also
SMWResultPrinter::buildResult
Since
1.8
Parameters
SMWQueryResult$results
Returns
string

◆ getName()

SRF\Gallery::getName ( )
See also
SMWResultPrinter::getName
Returns
string

◆ getParamDefinitions()

SRF\Gallery::getParamDefinitions ( array  $definitions)
See also
SMWResultPrinter::getParamDefinitions
Since
1.8
Parameters
$definitionsarray of IParamDefinition
Returns
array of IParamDefinition|array

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

About | General disclaimer | Privacy policy