MediaWiki  master
JsonContentHandler Class Reference

Content handler for JSON. More...

Inheritance diagram for JsonContentHandler:
Collaboration diagram for JsonContentHandler:

Public Member Functions

 __construct ($modelId=CONTENT_MODEL_JSON)
 
- Public Member Functions inherited from CodeContentHandler
 getFieldsForSearchIndex (SearchEngine $engine)
 
 getPageLanguage (Title $title, Content $content=null)
 Returns the english language, because code is english, and should be handled as such. More...
 
 getPageViewLanguage (Title $title, Content $content=null)
 Returns the english language, because code is english, and should be handled as such. More...
 
- Public Member Functions inherited from TextContentHandler
 __construct ($modelId=CONTENT_MODEL_TEXT, $formats=[CONTENT_FORMAT_TEXT])
 
 getFieldsForSearchIndex (SearchEngine $engine)
 
 makeEmptyContent ()
 Creates an empty TextContent object. More...
 
 merge3 (Content $oldContent, Content $myContent, Content $yourContent)
 Attempts to merge differences between three versions. More...
 
 serializeContent (Content $content, $format=null)
 Returns the content's text as-is. More...
 
 supportsDirectEditing ()
 
 unserializeContent ($text, $format=null)
 Unserializes a Content object of the type supported by this ContentHandler. More...
 

Protected Member Functions

 getContentClass ()
 
- Protected Member Functions inherited from CodeContentHandler
 getContentClass ()
 
- Protected Member Functions inherited from TextContentHandler
 getContentClass ()
 Returns the name of the associated Content class, to be used when creating new objects. More...
 

Detailed Description

Content handler for JSON.

Author
Ori Livneh ori@w.nosp@m.ikim.nosp@m.edia..nosp@m.org
Kunal Mehta legok.nosp@m.tm@g.nosp@m.mail..nosp@m.com
Since
1.24

Definition at line 30 of file JsonContentHandler.php.

Constructor & Destructor Documentation

JsonContentHandler::__construct (   $modelId = CONTENT_MODEL_JSON)

Definition at line 32 of file JsonContentHandler.php.

References CONTENT_FORMAT_JSON.

Member Function Documentation

JsonContentHandler::getContentClass ( )
protected
Returns
string

Definition at line 39 of file JsonContentHandler.php.


The documentation for this class was generated from the following file: