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

Public Member Functions

 __construct ($text)
 
 isValid ()
 
 beautifyJSON ()
 
 validate ()
 
 getDeletionUpdates (WikiPage $page, ParserOutput $parserOutput=null)
 
 getSecondaryDataUpdates (Title $title, Content $old=null, $recursive=true, ParserOutput $parserOutput=null)
 
- Public Member Functions inherited from JsonContent
 __construct ($text, $modelId=CONTENT_MODEL_JSON)
 
 getJsonData ()
 
 getData ()
 
 isValid ()
 
 beautifyJSON ()
 
 preSaveTransform (Title $title, User $user, ParserOptions $popts)
 
- 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, ParserOptions $options, $generateHtml, ParserOutput &$output)
 
- Protected Member Functions inherited from JsonContent
 fillParserOutput (Title $title, $revId, ParserOptions $options, $generateHtml, ParserOutput &$output)
 
 rootValueTable ($val)
 
 objectTable ($mapping)
 
 objectRow ($key, $val)
 
 arrayTable ($mapping)
 
 arrayRow ($val)
 
 valueCell ($val)
 
 primitiveValue ($val)
 
- 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 JsonContent
 $jsonParse
 
- Protected Attributes inherited from TextContent
 $mText
 
- Protected Attributes inherited from AbstractContent
 $model_id
 

Member Function Documentation

GadgetDefinitionContent::beautifyJSON ( )

Pretty-print JSON.

If called before validation, it may return JSON "null".

Returns
string
GadgetDefinitionContent::fillParserOutput ( Title  $title,
  $revId,
ParserOptions  $options,
  $generateHtml,
ParserOutput $output 
)
protected

Register some links

Parameters
Title$title
int$revId
ParserOptions$options
bool$generateHtml
ParserOutput&$output
GadgetDefinitionContent::getDeletionUpdates ( WikiPage  $page,
ParserOutput  $parserOutput = null 
)
Parameters
WikiPage$page
ParserOutput$parserOutput
Returns
DataUpdate[]

Implements Content.

GadgetDefinitionContent::getSecondaryDataUpdates ( Title  $title,
Content  $old = null,
  $recursive = true,
ParserOutput  $parserOutput = null 
)
Parameters
Title$title
Content$old
bool$recursive
ParserOutput$parserOutput
Returns
DataUpdate[]

Implements Content.

GadgetDefinitionContent::isValid ( )

Returns whether the content is valid. This is intended for local validity checks, not considering global consistency.

Content needs to be valid before it can be saved.

This default implementation always returns true.

Since
1.21
Returns
bool

Implements Content.

GadgetDefinitionContent::validate ( )
Returns
Status

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