Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
PageSubmitAction | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
show | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace ProofreadPage\Page; |
4 | |
5 | use ProofreadPage\Context; |
6 | use SubmitAction; |
7 | |
8 | /** |
9 | * @license GPL-2.0-or-later |
10 | * |
11 | * SubmitAction for a Page: page |
12 | */ |
13 | class PageSubmitAction extends SubmitAction { |
14 | |
15 | /** |
16 | * @see FormlessAction:show |
17 | */ |
18 | public function show() { |
19 | $editor = new EditPagePage( |
20 | $this->getArticle(), |
21 | Context::getDefaultContext() |
22 | ); |
23 | $editor->setContextTitle( $this->getTitle() ); |
24 | $editor->edit(); |
25 | } |
26 | } |