BlueSpice MediaWiki master
|
Public Member Functions | |
__construct ($text, $modelId=CONTENT_MODEL_JSON) | |
getJsonData () | |
getData () | |
isValid () | |
beautifyJSON () | |
preSaveTransform (Title $title, User $user, ParserOptions $popts) | |
![]() | |
__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= '') | |
![]() | |
__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) | |
rootValueTable ($val) | |
objectTable ($mapping) | |
objectRow ($key, $val) | |
arrayTable ($mapping) | |
arrayRow ($val) | |
valueCell ($val) | |
primitiveValue ($val) | |
![]() | |
fillParserOutput (Title $title, $revId, ParserOptions $options, $generateHtml, ParserOutput &$output) | |
getHtml () | |
getHighlightHtml () | |
![]() | |
checkModelID ($modelId) | |
checkFormat ($format) | |
fillParserOutput (Title $title, $revId, ParserOptions $options, $generateHtml, ParserOutput &$output) | |
Protected Attributes | |
$jsonParse | |
![]() | |
$mText | |
![]() | |
$model_id | |
Additional Inherited Members | |
![]() | |
static | normalizeLineEndings ($text) |
Represents the content of a JSON content.
JsonContent::__construct | ( | $text, | |
$modelId = CONTENT_MODEL_JSON |
|||
) |
string | $text | JSON |
string | $modelId |
|
protected |
Create HTML table row representing the value in an array.
mixed | $val |
|
protected |
Create HTML table representing a JSON array.
array | $mapping |
JsonContent::beautifyJSON | ( | ) |
Pretty-print JSON.
If called before validation, it may return JSON "null".
|
protected |
Set the HTML and add the appropriate styles.
Title | $title | |
int | $revId | |
ParserOptions | $options | |
bool | $generateHtml | |
ParserOutput | &$output |
JsonContent::getData | ( | ) |
Decodes the JSON string.
Note that this parses it without casting objects to associative arrays. Objects and arrays are kept as distinguishable types in the PHP values.
JsonContent::getJsonData | ( | ) |
Decodes the JSON into a PHP associative array.
JsonContent::isValid | ( | ) |
Implements Content.
|
protected |
Create HTML table row representing one object property.
string | $key | |
mixed | $val |
|
protected |
JsonContent::preSaveTransform | ( | Title | $title, |
User | $user, | ||
ParserOptions | $popts | ||
) |
Beautifies JSON prior to save.
Title | $title | |
User | $user | |
ParserOptions | $popts |
Implements Content.
|
protected |
Construct text representing a JSON primitive value.
mixed | $val |
|
protected |
Construct HTML table representation of any JSON value.
See also valueCell, which is similar.
mixed | $val |
|
protected |
Construct HTML table cell representing any JSON value.
mixed | $val |