MediaWiki  1.30.0
PreparedEdit.php
Go to the documentation of this file.
1 <?php
21 namespace MediaWiki\Edit;
22 
23 use Content;
26 
32 class PreparedEdit {
33 
39  public $timestamp;
40 
46  public $revid;
47 
53  public $pstContent;
54 
60  public $format;
61 
67  public $popts;
68 
74  public $output;
75 
81  public $newContent;
82 
88  public $oldContent;
89 
96  public $newText;
97 
104  public $oldText;
105 
112  public $pst;
113 }
ParserOptions
Set options of the Parser.
Definition: ParserOptions.php:40
MediaWiki\Edit\PreparedEdit\$pstContent
Content null $pstContent
Content after going through pre-save transform.
Definition: PreparedEdit.php:53
ParserOutput
Definition: ParserOutput.php:24
MediaWiki\Edit\PreparedEdit\$newText
string $newText
$newContent in text form
Definition: PreparedEdit.php:96
use
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
Definition: MIT-LICENSE.txt:10
MediaWiki\Edit\PreparedEdit\$pst
string $pst
$pstContent in text form
Definition: PreparedEdit.php:112
MediaWiki\Edit\PreparedEdit\$revid
int null $revid
Revision ID.
Definition: PreparedEdit.php:46
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
MediaWiki\Edit
Definition: PreparedEdit.php:21
MediaWiki\Edit\PreparedEdit\$newContent
Content $newContent
Content that is being saved (before PST)
Definition: PreparedEdit.php:81
MediaWiki\Edit\PreparedEdit\$oldContent
Content null $oldContent
Current content of the page, if any.
Definition: PreparedEdit.php:88
MediaWiki\Edit\PreparedEdit\$format
string $format
Content format.
Definition: PreparedEdit.php:60
MediaWiki\Edit\PreparedEdit\$oldText
string $oldText
$oldContent in text from
Definition: PreparedEdit.php:104
MediaWiki\Edit\PreparedEdit\$popts
ParserOptions $popts
Parser options used to get parser output.
Definition: PreparedEdit.php:67
MediaWiki\Edit\PreparedEdit\$timestamp
string $timestamp
Time this prepared edit was made.
Definition: PreparedEdit.php:39
Content
Base interface for content objects.
Definition: Content.php:34
MediaWiki\Edit\PreparedEdit
Represents information returned by WikiPage::prepareContentForEdit()
Definition: PreparedEdit.php:32
MediaWiki\Edit\PreparedEdit\$output
ParserOutput null $output
Parser output.
Definition: PreparedEdit.php:74