|
MediaWiki master
|
ContentJsonCodec handles serialization of Content objects to/from JSON using methods of the appropriate ContentHandler. More...
Inherits JsonClassCodec, and JsonClassCodec.

Public Member Functions | |
| __construct (private IContentHandlerFactory $contentHandlerFactory) | |
| jsonClassHintFor (string $className, string $keyName) | |
| newFromJsonArray (string $className, array $json) | |
| toJsonArray ( $obj) | |
ContentJsonCodec handles serialization of Content objects to/from JSON using methods of the appropriate ContentHandler.
<Content>
Definition at line 19 of file ContentJsonCodec.php.
| MediaWiki\Content\ContentJsonCodec::__construct | ( | private IContentHandlerFactory | $contentHandlerFactory | ) |
Definition at line 21 of file ContentJsonCodec.php.
| MediaWiki\Content\ContentJsonCodec::jsonClassHintFor | ( | string | $className, |
| string | $keyName ) |
Definition at line 50 of file ContentJsonCodec.php.
| MediaWiki\Content\ContentJsonCodec::newFromJsonArray | ( | string | $className, |
| array | $json ) |
Definition at line 38 of file ContentJsonCodec.php.
| MediaWiki\Content\ContentJsonCodec::toJsonArray | ( | $obj | ) |
Definition at line 27 of file ContentJsonCodec.php.