WikiLambda
MediaWiki WikiLambda extension
Loading...
Searching...
No Matches
MediaWiki\Extension\WikiLambda\ZObjectContentHandler Class Reference
+ Inheritance diagram for MediaWiki\Extension\WikiLambda\ZObjectContentHandler:
+ Collaboration diagram for MediaWiki\Extension\WikiLambda\ZObjectContentHandler:

Public Member Functions

 __construct ( $modelId)
 
 canBeUsedOn (Title $title)
 
 makeEmptyContent ()
 
 serializeContent (Content $content, $format=null)
 
 unserializeContent ( $text, $format=null)
 
 getSecondaryDataUpdates (Title $title, Content $content, $role, SlotRenderingProvider $slotOutput)
 @inheritDoc
 
 getDeletionUpdates (Title $title, $role)
 @inheritDoc
 
 supportsDirectEditing ()
 @inheritDoc
 
 getActionOverrides ()
 @inheritDoc
 
 generateHTMLOnEdit ()
 Do not render HTML on edit (T285987)
 
 validateSave ( $content, $validationParams)
 
 preSaveTransform (Content $content, PreSaveTransformParams $pstParams)
 @inheritDoc
 
 createDifferenceEngine (IContextSource $context, $oldContentRevisionId=0, $newContentRevisionId=0, $recentChangesId=0, $refreshCache=false, $unhide=false)
 @inheritDoc
 

Static Public Member Functions

static makeContent ( $data, ?Title $title=null, $modelId=null, $format=null)
 
static getExternalRepresentation (Title $zObjectTitle, ?string $languageCode=null, ?int $revision=null)
 
static createZObjectViewHeader (ZObjectContent $content, Title $title, Language $userLang)
 Generate the special "title" shown on view pages.
 
static createZObjectViewTitle (ZObjectContent $content, Title $title, Language $userLang)
 Generate the HTML "title" tag for the view page.
 

Protected Member Functions

 getContentClass ()
 
 fillParserOutput (Content $content, ContentParseParams $cpoParams, ParserOutput &$parserOutput)
 Set the HTML and add the appropriate styles.
 

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\WikiLambda\ZObjectContentHandler::__construct ( $modelId)
Parameters
string$modelId

Member Function Documentation

◆ canBeUsedOn()

MediaWiki\Extension\WikiLambda\ZObjectContentHandler::canBeUsedOn ( Title $title)
Parameters
Title$titlePage to check
Returns
bool

◆ createZObjectViewHeader()

static MediaWiki\Extension\WikiLambda\ZObjectContentHandler::createZObjectViewHeader ( ZObjectContent $content,
Title $title,
Language $userLang )
static

Generate the special "title" shown on view pages.

en multiply Z12345

en Function

Parameters
ZObjectContent$content
Title$title
Language$userLang
Returns
string

◆ createZObjectViewTitle()

static MediaWiki\Extension\WikiLambda\ZObjectContentHandler::createZObjectViewTitle ( ZObjectContent $content,
Title $title,
Language $userLang )
static

Generate the HTML "title" tag for the view page.

Parameters
ZObjectContent$content
Title$title
Language$userLang
Returns
string

◆ fillParserOutput()

MediaWiki\Extension\WikiLambda\ZObjectContentHandler::fillParserOutput ( Content $content,
ContentParseParams $cpoParams,
ParserOutput & $parserOutput )
protected

Set the HTML and add the appropriate styles.

@inheritDoc

Parameters
Content$content
ContentParseParams$cpoParams
ParserOutput&$parserOutputThe output object to fill (reference).

◆ generateHTMLOnEdit()

MediaWiki\Extension\WikiLambda\ZObjectContentHandler::generateHTMLOnEdit ( )

Do not render HTML on edit (T285987)

Returns
bool

◆ getContentClass()

MediaWiki\Extension\WikiLambda\ZObjectContentHandler::getContentClass ( )
protected
Returns
string
+ Here is the caller graph for this function:

◆ getExternalRepresentation()

static MediaWiki\Extension\WikiLambda\ZObjectContentHandler::getExternalRepresentation ( Title $zObjectTitle,
?string $languageCode = null,
?int $revision = null )
static
Parameters
Title$zObjectTitleThe page to fetch.
string | null$languageCodeThe language in which to return results. If unset, all results are returned.
int | null$revisionThe revision ID of the page to fetch. If unset, the latest is returned.
Returns
string The external JSON form of the given title.
Exceptions
ZErrorException
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeContent()

static MediaWiki\Extension\WikiLambda\ZObjectContentHandler::makeContent ( $data,
?Title $title = null,
$modelId = null,
$format = null )
static
Parameters
string$data
Title | null$title
string | null$modelId
string | null$format
Returns
ZObjectContent
+ Here is the caller graph for this function:

◆ makeEmptyContent()

MediaWiki\Extension\WikiLambda\ZObjectContentHandler::makeEmptyContent ( )
Returns
ZObjectContent
+ Here is the call graph for this function:

◆ serializeContent()

MediaWiki\Extension\WikiLambda\ZObjectContentHandler::serializeContent ( Content $content,
$format = null )
Parameters
Content$content
string | null$format
Returns
string

◆ unserializeContent()

MediaWiki\Extension\WikiLambda\ZObjectContentHandler::unserializeContent ( $text,
$format = null )
Parameters
string$text
string | null$format
Returns
ZObjectContent
+ Here is the call graph for this function:

◆ validateSave()

MediaWiki\Extension\WikiLambda\ZObjectContentHandler::validateSave ( $content,
$validationParams )
Parameters
Content$content
ValidationParams$validationParams
Returns
StatusValue
+ Here is the call graph for this function:

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