BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
ScribuntoContent Class Reference
Inheritance diagram for ScribuntoContent:
Collaboration diagram for ScribuntoContent:

Public Member Functions

 __construct ($text)
 
 preSaveTransform (Title $title, User $user, ParserOptions $parserOptions)
 
- Public Member Functions inherited from TextContent
 __construct ($text, $model_id=CONTENT_MODEL_TEXT)
 
 copy ()
 
 getTextForSummary ($maxlength=250)
 
 getSize ()
 
 isCountable ($hasLinks=null)
 
 getNativeData ()
 
 getTextForSearchIndex ()
 
 getWikitextForTransclusion ()
 
 preSaveTransform (Title $title, User $user, ParserOptions $popts)
 
 diff (Content $that, Language $lang=null)
 
 convert ($toModel, $lossy= '')
 
- Public Member Functions inherited from AbstractContent
 __construct ($modelId=null)
 
 getModel ()
 
 getContentHandler ()
 
 getDefaultFormat ()
 
 getSupportedFormats ()
 
 isSupportedFormat ($format)
 
 serialize ($format=null)
 
 isEmpty ()
 
 isValid ()
 
 equals (Content $that=null)
 
 getSecondaryDataUpdates (Title $title, Content $old=null, $recursive=true, ParserOutput $parserOutput=null)
 
 getRedirectChain ()
 
 getRedirectTarget ()
 
 getUltimateRedirectTarget ()
 
 isRedirect ()
 
 updateRedirect (Title $target)
 
 getSection ($sectionId)
 
 replaceSection ($sectionId, Content $with, $sectionTitle= '')
 
 preSaveTransform (Title $title, User $user, ParserOptions $popts)
 
 addSectionHeader ($header)
 
 preloadTransform (Title $title, ParserOptions $popts, $params=[])
 
 prepareSave (WikiPage $page, $flags, $parentRevId, User $user)
 
 getDeletionUpdates (WikiPage $page, ParserOutput $parserOutput=null)
 
 matchMagicWord (MagicWord $word)
 
 convert ($toModel, $lossy= '')
 
 getParserOutput (Title $title, $revId=null, ParserOptions $options=null, $generateHtml=true)
 

Protected Member Functions

 fillParserOutput (Title $title, $revId=null, ParserOptions $options=null, $generateHtml=true, ParserOutput &$output)
 
- Protected Member Functions inherited from TextContent
 fillParserOutput (Title $title, $revId, ParserOptions $options, $generateHtml, ParserOutput &$output)
 
 getHtml ()
 
 getHighlightHtml ()
 
- Protected Member Functions inherited from AbstractContent
 checkModelID ($modelId)
 
 checkFormat ($format)
 
 fillParserOutput (Title $title, $revId, ParserOptions $options, $generateHtml, ParserOutput &$output)
 

Additional Inherited Members

- Protected Attributes inherited from AbstractContent
 $model_id
 

Detailed Description

Represents the content of a Scribunto script page

Member Function Documentation

ScribuntoContent::fillParserOutput ( Title  $title,
  $revId = null,
ParserOptions  $options = null,
  $generateHtml = true,
ParserOutput $output 
)
protected

Parse the Content object and generate a ParserOutput from the result.

Parameters
$titleTitle The page title to use as a context for rendering
$revIdnull|int The revision being rendered (optional)
$optionsnull|ParserOptions Any parser options
$generateHtmlboolean Whether to generate HTML (default: true).
&$outputParserOutput representing the HTML form of the text.
Returns
ParserOutput
ScribuntoContent::preSaveTransform ( Title  $title,
User  $user,
ParserOptions  $parserOptions 
)

Returns a Content object with pre-save transformations applied (or this object if no transformations apply).

Parameters
$titleTitle
$userUser
$parserOptionsnull|ParserOptions
Returns
Content

Implements Content.


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