Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7430473
NotBabelBox.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
NotBabelBox.php
View Options
<?php
/**
* Contains code for inner items which are not babel boxes.
*
* @file
* @author Robert Leverington
* @author Robin Pepermans
* @author Niklas Laxström
* @author Brian Wolff
* @author Purodha Blissenbach
* @author Sam Reed
* @author Siebrand Mazeland
* @license GPL-2.0-or-later
*/
declare
(
strict_types
=
1
);
namespace
MediaWiki\Babel\BabelBox
;
use
MediaWiki\Parser\ParserOutput
;
/**
* Class for inner items which are not babel boxes.
*/
class
NotBabelBox
implements
BabelBox
{
private
string
$dir
;
private
string
$content
;
/**
* Construct a non-babel box.
*
* @param string $dir HTML 'dir' attribute
* @param string $content What's inside the box, in wikitext format.
*/
public
function
__construct
(
string
$dir
,
string
$content
)
{
$this
->
dir
=
$dir
;
$this
->
content
=
$content
;
}
/**
* Return the babel box code.
*
* @return string A single non-babel box, in wikitext format.
*/
public
function
render
():
string
{
return
<<<EOT
<div class="mw-babel-notabox" dir="{$this->dir}">{$this->content}</div>
EOT;
}
public
function
addCategories
(
ParserOutput
$parserOutput
):
void
{
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 10:29 (4 h, 57 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c6/d2/c0bec94ec1cdaed431f61be294fd
Default Alt Text
NotBabelBox.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment