3 * See docs/deferred.txt
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * http://www.gnu.org/copyleft/gpl.html
20 * Abstract base class for update jobs that do something with some secondary
21 * data extracted from article.
23 abstract class SecondaryDataUpdate
{
28 var $mId, //!< Page ID of the article linked from
29 $mTitle, //!< Title object of the article linked from
30 $mParserOutput; //!< Whether to queue jobs for recursive updates
36 * @param $title Title of the page we're updating
37 * @param $parserOutput ParserOutput: output from a full parse of this page
38 * @param $recursive Boolean: queue jobs for recursive updates?
40 public function __construct( Title
$title, ParserOutput
$parserOutput) {
41 $this->mTitle
= $title;
42 $this->mId
= $title->getArticleID();
44 $this->mParserOutput
= $parserOutput;
48 * Update link tables with outgoing links from an updated article
50 public abstract function doUpdate();
53 * Return the title object of the page being updated
56 public function getTitle() {
61 * Returns parser output
63 * @return ParserOutput
65 public function getParserOutput() {
66 return $this->mParserOutput
;