MediaWiki REL1_40
DiffOpDelete Class Reference

Extends DiffOp. More...

Inherits DiffOp.

Collaboration diagram for DiffOpDelete:

Public Member Functions

 __construct ( $lines)
 
 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 = 'delete'
 
- 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 deleted from the first string array.

Access: internal

Definition at line 35 of file DiffOpDelete.php.

Constructor & Destructor Documentation

◆ __construct()

DiffOpDelete::__construct ( $lines)
Parameters
string[]$lines

Definition at line 42 of file DiffOpDelete.php.

References $lines.

Member Function Documentation

◆ reverse()

DiffOpDelete::reverse ( )
Returns
DiffOpAdd

Reimplemented from DiffOp.

Definition at line 50 of file DiffOpDelete.php.

Member Data Documentation

◆ $type

DiffOpDelete::$type = 'delete'

Definition at line 37 of file DiffOpDelete.php.


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