[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Base content handler class for flat text contents. 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.
File Size: | 137 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
TextContentHandler:: (6 methods):
__construct()
serializeContent()
merge3()
getContentClass()
unserializeContent()
makeEmptyContent()
Class: TextContentHandler - X-Ref
Base content handler implementation for flat text contents.__construct( $modelId = CONTENT_MODEL_TEXT,$formats = array( CONTENT_FORMAT_TEXT ) X-Ref |
No description |
serializeContent( Content $content, $format = null ) X-Ref |
Returns the content's text as-is. param: Content $content param: string $format The serialization format to check return: mixed |
merge3( Content $oldContent, Content $myContent, Content $yourContent ) X-Ref |
Attempts to merge differences between three versions. Returns a new Content object for a clean merge and false for failure or a conflict. All three Content objects passed as parameters must have the same content model. This text-based implementation uses wfMerge(). param: Content $oldContent The page's previous content. param: Content $myContent One of the page's conflicting contents. param: Content $yourContent One of the page's conflicting contents. return: Content|bool |
getContentClass() X-Ref |
Returns the name of the associated Content class, to be used when creating new objects. Override expected by subclasses. return: string |
unserializeContent( $text, $format = null ) X-Ref |
Unserializes a Content object of the type supported by this ContentHandler. param: string $text Serialized form of the content param: string $format The format used for serialization return: Content The TextContent object wrapping $text |
makeEmptyContent() X-Ref |
Creates an empty TextContent object. return: Content A new TextContent object with empty text. |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |