2012-09-24 20:51:53 +00:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* A content object represents page content, e.g. the text to show on a page.
|
|
|
|
|
* Content objects have no knowledge about how they relate to Wiki pages.
|
|
|
|
|
*
|
2012-10-16 18:04:32 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
|
*
|
2012-10-05 13:03:24 +00:00
|
|
|
* @since 1.21
|
2012-10-16 18:04:32 +00:00
|
|
|
*
|
|
|
|
|
* @file
|
|
|
|
|
* @ingroup Content
|
|
|
|
|
*
|
|
|
|
|
* @author Daniel Kinzler
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
2012-12-20 19:44:47 +00:00
|
|
|
|
2020-01-18 20:25:04 +00:00
|
|
|
use MediaWiki\Content\IContentHandlerFactory;
|
2023-05-06 20:01:10 +00:00
|
|
|
use MediaWiki\HookContainer\HookRunner;
|
2020-01-18 20:25:04 +00:00
|
|
|
use MediaWiki\MediaWikiServices;
|
2022-12-09 12:28:41 +00:00
|
|
|
use MediaWiki\Parser\MagicWord;
|
2023-03-01 20:33:26 +00:00
|
|
|
use MediaWiki\Title\Title;
|
2020-01-18 20:25:04 +00:00
|
|
|
|
2012-12-20 19:44:47 +00:00
|
|
|
/**
|
|
|
|
|
* Base implementation for content objects.
|
|
|
|
|
*
|
2020-07-13 09:00:30 +00:00
|
|
|
* @stable to extend
|
2020-06-30 16:53:40 +00:00
|
|
|
*
|
2012-12-20 19:44:47 +00:00
|
|
|
* @ingroup Content
|
|
|
|
|
*/
|
2012-09-24 20:51:53 +00:00
|
|
|
abstract class AbstractContent implements Content {
|
|
|
|
|
/**
|
|
|
|
|
* Name of the content model this Content object represents.
|
|
|
|
|
* Use with CONTENT_MODEL_XXX constants
|
|
|
|
|
*
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
|
|
|
|
*
|
2019-11-29 13:33:43 +00:00
|
|
|
* @var string
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
protected $model_id;
|
|
|
|
|
|
|
|
|
|
/**
|
2020-07-13 08:53:06 +00:00
|
|
|
* @stable to call
|
2020-06-30 16:53:40 +00:00
|
|
|
*
|
2018-06-26 21:14:43 +00:00
|
|
|
* @param string|null $modelId
|
2012-10-16 18:16:11 +00:00
|
|
|
*
|
|
|
|
|
* @since 1.21
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
2012-10-16 18:16:11 +00:00
|
|
|
public function __construct( $modelId = null ) {
|
|
|
|
|
$this->model_id = $modelId;
|
2012-09-24 20:51:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
2014-03-03 17:08:05 +00:00
|
|
|
*
|
|
|
|
|
* @see Content::getModel
|
2017-09-09 20:47:04 +00:00
|
|
|
* @return string
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function getModel() {
|
|
|
|
|
return $this->model_id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
|
|
|
|
*
|
|
|
|
|
* @param string $modelId The model to check
|
2012-09-24 20:51:53 +00:00
|
|
|
*
|
2014-03-03 17:08:05 +00:00
|
|
|
* @throws MWException If the provided ID is not the ID of the content model supported by this
|
|
|
|
|
* Content object.
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
2012-10-16 18:16:11 +00:00
|
|
|
protected function checkModelID( $modelId ) {
|
|
|
|
|
if ( $modelId !== $this->model_id ) {
|
|
|
|
|
throw new MWException(
|
|
|
|
|
"Bad content model: " .
|
2013-02-03 18:30:03 +00:00
|
|
|
"expected {$this->model_id} " .
|
2012-10-16 18:16:11 +00:00
|
|
|
"but got $modelId."
|
|
|
|
|
);
|
2012-09-24 20:51:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
2014-03-03 17:08:05 +00:00
|
|
|
*
|
|
|
|
|
* @see Content::getContentHandler
|
2017-09-09 20:47:04 +00:00
|
|
|
* @return ContentHandler
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function getContentHandler() {
|
2020-01-18 20:25:04 +00:00
|
|
|
return $this->getContentHandlerFactory()->getContentHandler( $this->getModel() );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return IContentHandlerFactory
|
|
|
|
|
*/
|
|
|
|
|
protected function getContentHandlerFactory(): IContentHandlerFactory {
|
|
|
|
|
return MediaWikiServices::getInstance()->getContentHandlerFactory();
|
2012-09-24 20:51:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
2014-03-03 17:08:05 +00:00
|
|
|
*
|
|
|
|
|
* @see Content::getDefaultFormat
|
2017-09-09 20:47:04 +00:00
|
|
|
* @return string
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function getDefaultFormat() {
|
|
|
|
|
return $this->getContentHandler()->getDefaultFormat();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
2014-03-03 17:08:05 +00:00
|
|
|
*
|
|
|
|
|
* @see Content::getSupportedFormats
|
2017-09-09 20:47:04 +00:00
|
|
|
* @return string[]
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function getSupportedFormats() {
|
|
|
|
|
return $this->getContentHandler()->getSupportedFormats();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2014-03-03 17:08:05 +00:00
|
|
|
* @since 1.21
|
2012-10-16 18:16:11 +00:00
|
|
|
*
|
|
|
|
|
* @param string $format
|
|
|
|
|
*
|
2014-03-03 17:08:05 +00:00
|
|
|
* @return bool
|
2012-10-16 18:16:11 +00:00
|
|
|
*
|
2014-03-03 17:08:05 +00:00
|
|
|
* @see Content::isSupportedFormat
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function isSupportedFormat( $format ) {
|
|
|
|
|
if ( !$format ) {
|
|
|
|
|
return true; // this means "use the default"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $this->getContentHandler()->isSupportedFormat( $format );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
|
|
|
|
*
|
2014-03-03 17:08:05 +00:00
|
|
|
* @param string $format The serialization format to check.
|
|
|
|
|
*
|
|
|
|
|
* @throws MWException If the format is not supported by this content handler.
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
protected function checkFormat( $format ) {
|
|
|
|
|
if ( !$this->isSupportedFormat( $format ) ) {
|
2012-10-16 18:16:11 +00:00
|
|
|
throw new MWException(
|
|
|
|
|
"Format $format is not supported for content model " .
|
|
|
|
|
$this->getModel()
|
|
|
|
|
);
|
2012-09-24 20:51:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2020-07-13 08:57:12 +00:00
|
|
|
* @stable to override
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
|
|
|
|
*
|
2018-06-26 21:14:43 +00:00
|
|
|
* @param string|null $format
|
2014-03-03 17:08:05 +00:00
|
|
|
*
|
2012-10-16 18:16:11 +00:00
|
|
|
* @return string
|
2014-03-03 17:08:05 +00:00
|
|
|
*
|
|
|
|
|
* @see Content::serialize
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function serialize( $format = null ) {
|
|
|
|
|
return $this->getContentHandler()->serializeContent( $this, $format );
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-28 17:57:57 +00:00
|
|
|
/**
|
|
|
|
|
* Returns native representation of the data. Interpretation depends on
|
|
|
|
|
* the data model used, as given by getDataModel().
|
|
|
|
|
*
|
|
|
|
|
* @stable to override
|
|
|
|
|
* @since 1.21
|
|
|
|
|
*
|
2023-08-19 02:41:20 +00:00
|
|
|
* @deprecated since 1.33. Use getText() for TextContent instances.
|
2022-08-28 17:57:57 +00:00
|
|
|
* For other content models, use specialized getters.
|
2023-08-19 02:41:20 +00:00
|
|
|
* Emitting deprecation warnings since 1.41.
|
2022-08-28 17:57:57 +00:00
|
|
|
*
|
|
|
|
|
* @return mixed The native representation of the content. Could be a
|
|
|
|
|
* string, a nested array structure, an object, a binary blob...
|
|
|
|
|
* anything, really.
|
|
|
|
|
* @throws LogicException
|
|
|
|
|
*
|
|
|
|
|
* @note Caller must be aware of content model!
|
|
|
|
|
*/
|
|
|
|
|
public function getNativeData() {
|
2023-08-19 02:41:20 +00:00
|
|
|
wfDeprecated( __METHOD__, '1.33' );
|
2022-08-28 17:57:57 +00:00
|
|
|
throw new LogicException( __METHOD__ . ': not implemented' );
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-24 20:51:53 +00:00
|
|
|
/**
|
2020-07-13 08:57:12 +00:00
|
|
|
* @stable to override
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
|
|
|
|
*
|
2014-03-03 17:08:05 +00:00
|
|
|
* @return bool
|
|
|
|
|
*
|
|
|
|
|
* @see Content::isEmpty
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function isEmpty() {
|
2012-10-08 15:26:11 +00:00
|
|
|
return $this->getSize() === 0;
|
2012-09-24 20:51:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2014-03-03 17:08:05 +00:00
|
|
|
* Subclasses may override this to implement (light weight) validation.
|
2012-10-16 18:16:11 +00:00
|
|
|
*
|
2020-07-13 08:57:12 +00:00
|
|
|
* @stable to override
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
|
|
|
|
*
|
2014-03-03 17:08:05 +00:00
|
|
|
* @return bool Always true.
|
|
|
|
|
*
|
|
|
|
|
* @see Content::isValid
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function isValid() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2018-11-08 15:19:23 +00:00
|
|
|
* Decides whether two Content objects are equal.
|
|
|
|
|
* Two Content objects MUST not be considered equal if they do not share the same content model.
|
|
|
|
|
* Two Content objects that are equal SHOULD have the same serialization.
|
|
|
|
|
*
|
2021-12-26 11:13:47 +00:00
|
|
|
* This default implementation relies on equalsInternal() to determine whether the
|
2018-11-08 15:19:23 +00:00
|
|
|
* Content objects are logically equivalent. Subclasses that need to implement a custom
|
|
|
|
|
* equality check should consider overriding equalsInternal(). Subclasses that override
|
|
|
|
|
* equals() itself MUST make sure that the implementation returns false for $that === null,
|
|
|
|
|
* and true for $that === this. It MUST also return false if $that does not have the same
|
|
|
|
|
* content model.
|
|
|
|
|
*
|
2020-07-13 08:57:12 +00:00
|
|
|
* @stable to override
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
|
|
|
|
*
|
2018-06-26 21:14:43 +00:00
|
|
|
* @param Content|null $that
|
2012-10-16 18:16:11 +00:00
|
|
|
*
|
2014-03-03 17:08:05 +00:00
|
|
|
* @return bool
|
|
|
|
|
*
|
|
|
|
|
* @see Content::equals
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function equals( Content $that = null ) {
|
2020-01-09 23:48:34 +00:00
|
|
|
if ( $that === null ) {
|
2012-09-24 20:51:53 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( $that === $this ) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( $that->getModel() !== $this->getModel() ) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-08 15:19:23 +00:00
|
|
|
// For type safety. Needed for odd cases like MessageContent using CONTENT_MODEL_WIKITEXT
|
|
|
|
|
if ( get_class( $that ) !== get_class( $this ) ) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $this->equalsInternal( $that );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Checks whether $that is logically equal to this Content object.
|
|
|
|
|
*
|
|
|
|
|
* This method can be overwritten by subclasses that need to implement custom
|
|
|
|
|
* equality checks.
|
|
|
|
|
*
|
|
|
|
|
* This default implementation checks whether the serializations
|
|
|
|
|
* of $this and $that are the same: $this->serialize() === $that->serialize()
|
|
|
|
|
*
|
|
|
|
|
* Implementors can assume that $that is an instance of the same class
|
|
|
|
|
* as the present Content object, as long as equalsInternal() is only called
|
|
|
|
|
* by the standard implementation of equals().
|
|
|
|
|
*
|
|
|
|
|
* @note Do not call this method directly, call equals() instead.
|
|
|
|
|
*
|
2020-07-13 08:57:12 +00:00
|
|
|
* @stable to override
|
2020-06-30 16:53:40 +00:00
|
|
|
*
|
2018-11-08 15:19:23 +00:00
|
|
|
* @param Content $that
|
|
|
|
|
* @return bool
|
|
|
|
|
*/
|
|
|
|
|
protected function equalsInternal( Content $that ) {
|
|
|
|
|
return $this->serialize() === $that->serialize();
|
2012-09-24 20:51:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2014-03-03 17:08:05 +00:00
|
|
|
* Subclasses that implement redirects should override this.
|
2012-10-16 18:16:11 +00:00
|
|
|
*
|
2020-07-13 08:57:12 +00:00
|
|
|
* @stable to override
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
2014-03-03 17:08:05 +00:00
|
|
|
*
|
2016-07-01 00:08:44 +00:00
|
|
|
* @return Title|null
|
2014-03-03 17:08:05 +00:00
|
|
|
*
|
|
|
|
|
* @see Content::getRedirectTarget
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function getRedirectTarget() {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2012-10-05 13:03:24 +00:00
|
|
|
* @since 1.21
|
2012-09-24 20:51:53 +00:00
|
|
|
*
|
|
|
|
|
* @return bool
|
2014-03-03 17:08:05 +00:00
|
|
|
*
|
|
|
|
|
* @see Content::isRedirect
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function isRedirect() {
|
|
|
|
|
return $this->getRedirectTarget() !== null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This default implementation always returns $this.
|
2014-03-03 17:08:05 +00:00
|
|
|
* Subclasses that implement redirects should override this.
|
2012-10-16 18:16:11 +00:00
|
|
|
*
|
2020-07-13 08:57:12 +00:00
|
|
|
* @stable to override
|
2012-10-05 13:03:24 +00:00
|
|
|
* @since 1.21
|
2012-09-24 20:51:53 +00:00
|
|
|
*
|
2014-03-03 17:08:05 +00:00
|
|
|
* @param Title $target
|
|
|
|
|
*
|
2012-09-24 20:51:53 +00:00
|
|
|
* @return Content $this
|
2014-03-03 17:08:05 +00:00
|
|
|
*
|
|
|
|
|
* @see Content::updateRedirect
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function updateRedirect( Title $target ) {
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2020-07-13 08:57:12 +00:00
|
|
|
* @stable to override
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
2014-03-03 17:08:05 +00:00
|
|
|
*
|
2017-09-09 20:47:04 +00:00
|
|
|
* @param string|int $sectionId
|
2014-03-03 17:08:05 +00:00
|
|
|
* @return null
|
|
|
|
|
*
|
|
|
|
|
* @see Content::getSection
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function getSection( $sectionId ) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2020-07-13 08:57:12 +00:00
|
|
|
* @stable to override
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
2014-03-03 17:08:05 +00:00
|
|
|
*
|
2022-07-31 00:02:18 +00:00
|
|
|
* @param string|int|null|false $sectionId
|
2017-09-09 20:47:04 +00:00
|
|
|
* @param Content $with
|
|
|
|
|
* @param string $sectionTitle
|
2014-03-03 17:08:05 +00:00
|
|
|
* @return null
|
|
|
|
|
*
|
|
|
|
|
* @see Content::replaceSection
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
2014-06-12 14:05:18 +00:00
|
|
|
public function replaceSection( $sectionId, Content $with, $sectionTitle = '' ) {
|
2012-09-24 20:51:53 +00:00
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2020-07-13 08:57:12 +00:00
|
|
|
* @stable to override
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
2014-03-03 17:08:05 +00:00
|
|
|
*
|
2017-09-09 20:47:04 +00:00
|
|
|
* @param string $header
|
2014-03-03 17:08:05 +00:00
|
|
|
* @return Content $this
|
|
|
|
|
*
|
|
|
|
|
* @see Content::addSectionHeader
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function addSectionHeader( $header ) {
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2013-11-20 04:49:59 +00:00
|
|
|
* This default implementation always returns false. Subclasses may override
|
|
|
|
|
* this to supply matching logic.
|
2012-09-24 20:51:53 +00:00
|
|
|
*
|
2020-07-13 08:57:12 +00:00
|
|
|
* @stable to override
|
2012-10-16 18:16:11 +00:00
|
|
|
* @since 1.21
|
|
|
|
|
*
|
2012-09-24 20:51:53 +00:00
|
|
|
* @param MagicWord $word
|
|
|
|
|
*
|
2014-03-03 17:08:05 +00:00
|
|
|
* @return bool Always false.
|
|
|
|
|
*
|
|
|
|
|
* @see Content::matchMagicWord
|
2012-09-24 20:51:53 +00:00
|
|
|
*/
|
|
|
|
|
public function matchMagicWord( MagicWord $word ) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2012-11-05 15:53:48 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This base implementation calls the hook ConvertContent to enable custom conversions.
|
|
|
|
|
* Subclasses may override this to implement conversion for "their" content model.
|
|
|
|
|
*
|
2020-07-13 08:57:12 +00:00
|
|
|
* @stable to override
|
2020-06-30 16:53:40 +00:00
|
|
|
*
|
2014-03-03 17:08:05 +00:00
|
|
|
* @param string $toModel
|
|
|
|
|
* @param string $lossy
|
|
|
|
|
*
|
2022-07-31 00:02:18 +00:00
|
|
|
* @return Content|false
|
2012-11-05 15:53:48 +00:00
|
|
|
*
|
2014-03-03 17:08:05 +00:00
|
|
|
* @see Content::convert()
|
2012-11-05 15:53:48 +00:00
|
|
|
*/
|
|
|
|
|
public function convert( $toModel, $lossy = '' ) {
|
|
|
|
|
if ( $this->getModel() === $toModel ) {
|
2015-09-11 13:44:59 +00:00
|
|
|
// nothing to do, shorten out.
|
2012-11-05 15:53:48 +00:00
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$lossy = ( $lossy === 'lossy' ); // string flag, convert to boolean for convenience
|
|
|
|
|
$result = false;
|
|
|
|
|
|
2023-05-06 20:01:10 +00:00
|
|
|
( new HookRunner( MediaWikiServices::getInstance()->getHookContainer() ) )
|
|
|
|
|
->onConvertContent( $this, $toModel, $lossy, $result );
|
2013-11-19 21:26:16 +00:00
|
|
|
|
2012-11-05 15:53:48 +00:00
|
|
|
return $result;
|
|
|
|
|
}
|
2012-10-16 10:38:20 +00:00
|
|
|
|
2012-10-17 16:16:23 +00:00
|
|
|
}
|