[MCR] Factor PageUpdater out of WikiPage
[lhc/web/wiklou.git] / includes / edit / PreparedEdit.php
1 <?php
2 /**
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 * http://www.gnu.org/copyleft/gpl.html
17 *
18 * @file
19 */
20
21 namespace MediaWiki\Edit;
22
23 use Content;
24 use ParserOptions;
25 use ParserOutput;
26
27 /**
28 * Represents information returned by WikiPage::prepareContentForEdit()
29 *
30 * @deprecated since 1.32, use DerivedPageDataUpdater instead.
31 *
32 * @since 1.30
33 */
34 class PreparedEdit {
35
36 /**
37 * Time this prepared edit was made
38 *
39 * @var string
40 */
41 public $timestamp;
42
43 /**
44 * Revision ID
45 *
46 * @var int|null
47 */
48 public $revid;
49
50 /**
51 * Content after going through pre-save transform
52 *
53 * @var Content|null
54 */
55 public $pstContent;
56
57 /**
58 * Content format
59 *
60 * @var string
61 */
62 public $format;
63
64 /**
65 * Parser options used to get parser output
66 *
67 * @var ParserOptions
68 */
69 public $popts;
70
71 /**
72 * Parser output
73 *
74 * @var ParserOutput|null
75 */
76 public $output;
77
78 /**
79 * Content that is being saved (before PST)
80 *
81 * @var Content
82 */
83 public $newContent;
84
85 /**
86 * Current content of the page, if any
87 *
88 * @var Content|null
89 */
90 public $oldContent;
91
92 }