BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
BlueSpice\Social\Topics\Content\Discussion Class Reference
Inheritance diagram for BlueSpice\Social\Topics\Content\Discussion:
Collaboration diagram for BlueSpice\Social\Topics\Content\Discussion:

Public Member Functions

 getModel ()
 
 __construct ($text, $modelId=CONTENT_MODEL_BSSOCIALDISCUSSION)
 
 getParserOutput (\Title $title, $revId=null,\ParserOptions $options=null, $generateHtml=true, $bForceOrigin=false)
 
- Public Member Functions inherited from WikitextContent
 __construct ($text)
 
 getSection ($sectionId)
 
 replaceSection ($sectionId, Content $with, $sectionTitle= '')
 
 addSectionHeader ($header)
 
 preSaveTransform (Title $title, User $user, ParserOptions $popts)
 
 preloadTransform (Title $title, ParserOptions $popts, $params=[])
 
 getRedirectTarget ()
 
 updateRedirect (Title $target)
 
 isCountable ($hasLinks=null, Title $title=null)
 
 getTextForSummary ($maxlength=250)
 
 matchMagicWord (MagicWord $word)
 
- 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)
 

Public Attributes

 $mModelID = CONTENT_MODEL_WIKITEXT
 

Protected Member Functions

 fillParserOutput (\Title $title, $revId,\ParserOptions $options, $generateHtml,\ParserOutput &$output, $bForceOrigin=false)
 
- Protected Member Functions inherited from WikitextContent
 getRedirectTargetAndText ()
 
 fillParserOutput (Title $title, $revId, ParserOptions $options, $generateHtml, ParserOutput &$output)
 
 getHtml ()
 
- 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

- Static Public Member Functions inherited from TextContent
static normalizeLineEndings ($text)
 
- Protected Attributes inherited from TextContent
 $mText
 
- Protected Attributes inherited from AbstractContent
 $model_id
 

Member Function Documentation

BlueSpice\Social\Topics\Content\Discussion::fillParserOutput ( \Title  $title,
  $revId,
\ParserOptions  $options,
  $generateHtml,
\ParserOutput $output,
  $bForceOrigin = false 
)
protected

Set the HTML and add the appropriate styles

Parameters
\Title$title
int$revId
\ParserOptions$options
bool$generateHtml
ParserOutput$output
BlueSpice\Social\Topics\Content\Discussion::getModel ( )

Returns the ID of the content model used by this Content object. Corresponds to the CONTENT_MODEL_XXX constants.

Since
1.21
Returns
string The model id

Implements Content.

BlueSpice\Social\Topics\Content\Discussion::getParserOutput ( \Title  $title,
  $revId = null,
\ParserOptions  $options = null,
  $generateHtml = true,
  $bForceOrigin = false 
)

Returns a ParserOutput object containing information derived from this content. Most importantly, unless $generateHtml was false, the return value contains an HTML representation of the content.

Subclasses that want to control the parser output may override this, but it is preferred to override fillParserOutput() instead.

Subclasses that override getParserOutput() itself should take care to call the ContentGetParserOutput hook.

Since
1.24
Parameters
\Title$titleContext title for parsing
int | null$revIdRevision ID (for {{REVISIONID}})
\ParserOptions | null$optionsParser options
bool$generateHtmlWhether or not to generate HTML
Returns
ParserOutput Containing information derived from this content.

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