MediaWiki REL1_39
DiffOpChange Class Reference

Extends DiffOp. More...

Inheritance diagram for DiffOpChange:
Collaboration diagram for DiffOpChange:

Public Member Functions

 __construct ( $orig, $closing)
 
 reverse ()
 
- Public Member Functions inherited from DiffOp
 getClosing ( $i=null)
 Without a line number this returns either all lines on the right ("new") side of the diff, or false when it's a delete operation.
 
 getOrig ()
 Returns either all lines on the left ("old") side of the diff, or false when it's an add operation.
 
 getType ()
 
 nclosing ()
 
 norig ()
 

Public Attributes

 $type = 'change'
 
- Public Attributes inherited from DiffOp
string[] false $closing
 The right ("new") side of the diff, or false when it's a "delete".
 
string[] false $orig
 The left ("old") side of the diff, or false when it's an "add".
 
string $type
 

Detailed Description

Extends DiffOp.

Used to mark strings that have been changed from the first string array (both added and subtracted).

Access: internal

Definition at line 35 of file DiffOpChange.php.

Constructor & Destructor Documentation

◆ __construct()

DiffOpChange::__construct ( $orig,
$closing )
Parameters
string[]$orig
string[]$closing

Definition at line 43 of file DiffOpChange.php.

References DiffOp\$closing, and DiffOp\$orig.

Member Function Documentation

◆ reverse()

DiffOpChange::reverse ( )
Returns
DiffOpChange

Reimplemented from DiffOp.

Definition at line 51 of file DiffOpChange.php.

Member Data Documentation

◆ $type

DiffOpChange::$type = 'change'

Definition at line 37 of file DiffOpChange.php.


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