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

List of all members.

Public Member Functions

 __construct ($text)
 copy ()
 Return a copy of this Content object.
 getText ()
 setText ($text)

Detailed Description

Definition at line 448 of file RevisionTest.php.


Constructor & Destructor Documentation

Parameters:
string | null$modelId
Since:
1.21

Reimplemented from AbstractContent.

Definition at line 449 of file RevisionTest.php.

References MediaWikiTestCase\__construct().


Member Function Documentation

Return a copy of this Content object.

The following must be true for the object returned:

if $copy = $original->copy()

  • get_class($original) === get_class($copy)
  • $original->getModel() === $copy->getModel()
  • $original->equals( $copy )

If and only if the Content object is immutable, the copy() method can and should return $this. That is, $copy === $original may be true, but only for immutable content objects.

Since:
1.21
Returns:
Content. A copy of this object

Reimplemented from TextContent.

Definition at line 453 of file RevisionTest.php.

Definition at line 461 of file RevisionTest.php.


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