17 $user->setName(
'127.0.0.1' );
21 'wgTextModelsToParse' => [
37 "<pre class=\"mw-code mw-css\" dir=\"ltr\">\nhello <world>\n\n</pre>"
42 "/* hello [[world]] */\n",
43 "<pre class=\"mw-code mw-css\" dir=\"ltr\">\n/* hello [[world]] */\n\n</pre>",
79 '#REDIRECT [[Someplace]]',
80 '#REDIRECT [[Someplace]]',
91 'wgServer' =>
'//example.org',
92 'wgScriptPath' =>
'/w',
93 'wgScript' =>
'/w/index.php',
96 $target =
$content->getRedirectTarget();
106 [
'MediaWiki:MonoBook.css',
"/* #REDIRECT */@import url(//example.org/w/index.php?title=MediaWiki:MonoBook.css&action=raw&ctype=text/css);" ],
107 [
'User:FooBar/common.css',
"/* #REDIRECT */@import url(//example.org/w/index.php?title=User:FooBar/common.css&action=raw&ctype=text/css);" ],
108 [
'Gadget:FooBaz.css',
"/* #REDIRECT */@import url(//example.org/w/index.php?title=Gadget:FooBaz.css&action=raw&ctype=text/css);" ],
110 'User:😂/unicode.css',
111 '/* #REDIRECT */@import url(//example.org/w/index.php?title=User:%F0%9F%98%82/unicode.css&action=raw&ctype=text/css);'
113 # No #REDIRECT comment
114 [
null,
"@import url(//example.org/w/index.php?title=Gadget:FooBaz.css&action=raw&ctype=text/css);" ],
116 [
null,
"/* #REDIRECT */@import url(//example.com/w/index.php?title=Gadget:FooBaz.css&action=raw&ctype=text/css);" ],
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
ContentHandler Database ^— needed, because we do need the database to test link updates.
testGetContentHandler()
CssContent::getContentHandler.
testEquals(Content $a, Content $b=null, $equal=false)
dataEquals CssContent::equals
static provideGetRedirectTarget()
Keep this in sync with CssContentHandlerTest::provideMakeRedirectContent()
testGetRedirectTarget( $title, $text)
CssContent::getRedirectTarget provideGetRedirectTarget.
static provideUpdateRedirect()
Redirects aren't supported.
testGetModel()
CssContent::getModel.
static dataGetParserOutput()
Content object for CSS pages.
ContentHandler Database ^— needed, because we do need the database to test link updates.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Content object for wiki text pages.
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not null
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
processing should stop and the error should be shown to the user * false
Base interface for content objects.