MediaWiki  REL1_22
DummyContentHandlerForTesting Class Reference
Inheritance diagram for DummyContentHandlerForTesting:
Collaboration diagram for DummyContentHandlerForTesting:

List of all members.

Public Member Functions

 __construct ($dataModel)
 makeEmptyContent ()
 Creates an empty Content object of the type supported by this ContentHandler.
 serializeContent (Content $content, $format=null)
 Serializes Content object of the type supported by this ContentHandler.
 unserializeContent ($blob, $format=null)
 Unserializes a Content object of the type supported by this ContentHandler.

Detailed Description

Definition at line 311 of file ContentHandlerTest.php.


Constructor & Destructor Documentation

Definition at line 313 of file ContentHandlerTest.php.

References array().


Member Function Documentation

Creates an empty Content object of the type supported by this ContentHandler.

Reimplemented from ContentHandler.

Definition at line 345 of file ContentHandlerTest.php.

DummyContentHandlerForTesting::serializeContent ( Content content,
format = null 
)

Serializes Content object of the type supported by this ContentHandler.

Parameters:
Content$contentthe Content object to serialize
null$formatthe desired serialization format
Returns:
String serialized form of the content

Reimplemented from ContentHandler.

Definition at line 324 of file ContentHandlerTest.php.

References Content\serialize().

DummyContentHandlerForTesting::unserializeContent ( blob,
format = null 
)

Unserializes a Content object of the type supported by this ContentHandler.

Parameters:
$blobString serialized form of the content
null$formatthe format used for serialization
Returns:
Content the Content object created by deserializing $blob

Reimplemented from ContentHandler.

Definition at line 335 of file ContentHandlerTest.php.

References $blob.


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