Page MenuHomeWickedGov Phorge

ScribuntoContent.php
No OneTemporary

Size
789 B
Referenced Files
None
Subscribers
None

ScribuntoContent.php

<?php
/**
* Scribunto Content Model
*
* @file
* @ingroup Extensions
* @ingroup Scribunto
*
* @author Brad Jorsch <bjorsch@wikimedia.org>
*/
namespace MediaWiki\Extension\Scribunto;
use MediaWiki\Content\TextContent;
use MediaWiki\Title\Title;
/**
* Represents the content of a Scribunto script page
*/
class ScribuntoContent extends TextContent {
/**
* @param string $text
*/
public function __construct( $text ) {
parent::__construct( $text, CONTENT_MODEL_SCRIBUNTO );
}
/**
* @inheritDoc
*/
public function updateRedirect( Title $target ) {
return Scribunto::newDefaultEngine()->updateRedirect( $this, $target );
}
/**
* @inheritDoc
*/
public function getRedirectTarget() {
return Scribunto::newDefaultEngine()->getRedirectTarget( $this );
}
}

File Metadata

Mime Type
text/x-php
Expires
Oct 3 2026, 01:17 (4 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
81/93/8f1f051ccda06e78d7d547714ade
Default Alt Text
ScribuntoContent.php (789 B)

Event Timeline