Profiler: Call getContentType() only once in logData()
[mediawiki.git] / includes / content / JsonContentHandler.php
blob392ce37bebaabd9cb017fd315d4b00cfaacfa401
1 <?php
2 /**
3 * JSON Schema Content Handler
5 * @file
7 * @author Ori Livneh <ori@wikimedia.org>
8 * @author Kunal Mehta <legoktm@gmail.com>
9 */
11 /**
12 * @since 1.24
14 class JsonContentHandler extends CodeContentHandler {
16 public function __construct( $modelId = CONTENT_MODEL_JSON ) {
17 parent::__construct( $modelId, array( CONTENT_FORMAT_JSON ) );
20 /**
21 * @return string
23 protected function getContentClass() {
24 return 'JsonContent';