Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5952147
ScribuntoContent.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
789 B
Referenced Files
None
Subscribers
None
ScribuntoContent.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment