MediaWiki REL1_31
DummySerializeErrorContentHandler.php
Go to the documentation of this file.
1<?php
23
24 public function __construct( $dataModel ) {
25 parent::__construct( $dataModel, [ "testing-serialize-error" ] );
26 }
27
36 public function unserializeContent( $blob, $format = null ) {
37 throw new MWContentSerializationException( 'Could not unserialize content' );
38 }
39
47 public function supportsDirectApiEditing() {
48 return true;
49 }
50
51}
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
Exception representing a failure to serialize or unserialize a content object.