MediaWiki REL1_37
DiffOpCopy Class Reference

Extends DiffOp. More...

Inheritance diagram for DiffOpCopy:
Collaboration diagram for DiffOpCopy:

Public Member Functions

 __construct ( $orig, $closing=false)
 
 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 = 'copy'
 
- 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 copied from one string array to the other.

Access: internal

Definition at line 35 of file DiffOpCopy.php.

Constructor & Destructor Documentation

◆ __construct()

DiffOpCopy::__construct (   $orig,
  $closing = false 
)
Parameters
string[]$orig
string[] | false$closingShould either be identical to $orig, or not given

Definition at line 43 of file DiffOpCopy.php.

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

Member Function Documentation

◆ reverse()

DiffOpCopy::reverse ( )
Returns
DiffOpCopy

Reimplemented from DiffOp.

Definition at line 54 of file DiffOpCopy.php.

Member Data Documentation

◆ $type

DiffOpCopy::$type = 'copy'

Definition at line 37 of file DiffOpCopy.php.


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