Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P5654
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Tgr
on Jun 30 2017, 12:00 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F8575314:
Jun 30 2017, 12:00 AM
2017-06-30 00:00:32 (UTC+0)
Subscribers
None
// paste into `mwscript shell.php`
$sessionId
=
'REPLACE ME'
;
\MediaWiki\Session\SessionManager
::
singleton
()->
getSessionById
(
$sessionId
)->
set
(
'wsCollection'
,
[
'enabled'
=>
true
,
'title'
=>
'My book'
,
'subtitle'
=>
'A cool book'
,
'settings'
=>
[
'papersize'
=>
'a4'
,
'toc'
=>
'auto'
,
'columns'
=>
'2'
,
],
'items'
=>
[
[
'type'
=>
'chapter'
,
'title'
=>
'Cities'
,
],
[
'type'
=>
'article'
,
'content_type'
=>
'text/x-wiki'
,
'title'
=>
'Berlin'
,
'revision'
=>
'15'
,
'latest'
=>
'15'
,
'timestamp'
=>
'1498232371'
,
'url'
=>
'http://dev.wiki.local.wmftest.net:10241/wiki/Berlin'
,
'currentVersion'
=>
1
,
],
[
'type'
=>
'chapter'
,
'title'
=>
'Politicians'
,
],
[
'type'
=>
'article'
,
'content_type'
=>
'text/x-wiki'
,
'title'
=>
'Barack Obama'
,
'revision'
=>
'19'
,
'latest'
=>
'19'
,
'timestamp'
=>
'1498232469'
,
'url'
=>
'http://dev.wiki.local.wmftest.net:10241/wiki/Barack_Obama'
,
'currentVersion'
=>
1
,
],
[
'type'
=>
'article'
,
'content_type'
=>
'text/x-wiki'
,
'title'
=>
'Donald Trump'
,
'revision'
=>
'17'
,
'latest'
=>
'17'
,
'timestamp'
=>
'1498232409'
,
'url'
=>
'http://dev.wiki.local.wmftest.net:10241/wiki/Donald_Trump'
,
'currentVersion'
=>
1
,
],
],
'timestamp'
=>
'20170628085805'
,
]
);
Event Timeline
Tgr
created this paste.
Jun 30 2017, 12:00 AM
2017-06-30 00:00:32 (UTC+0)
Tgr
mentioned this in
T168004: [Spike 6hrs] Investigate ability of vivliostyle to render single articles
.
Jun 30 2017, 12:13 AM
2017-06-30 00:13:14 (UTC+0)
Log In to Comment