MediaWiki REL1_40
|
The base class for all other DiffOp classes. More...
Inherited by DiffOpAdd, DiffOpChange, DiffOpCopy, and DiffOpDelete.
Public Member Functions | |
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 () | |
reverse () | |
Public Attributes | |
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 |
The base class for all other DiffOp classes.
The classes that extend DiffOp are: DiffOpCopy, DiffOpDelete, DiffOpAdd and DiffOpChange. FakeDiffOp also extends DiffOp, but it is not located in this file.
Definition at line 37 of file DiffOp.php.
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.
With a line number this returns either the line or null if the line doesn't exist.
int | null | $i | Line number, or null for all lines in the operation |
Definition at line 83 of file DiffOp.php.
References $closing.
DiffOp::getOrig | ( | ) |
Returns either all lines on the left ("old") side of the diff, or false when it's an add operation.
Definition at line 70 of file DiffOp.php.
References $orig.
DiffOp::getType | ( | ) |
Definition at line 60 of file DiffOp.php.
References $type.
DiffOp::nclosing | ( | ) |
Definition at line 108 of file DiffOp.php.
DiffOp::norig | ( | ) |
Definition at line 101 of file DiffOp.php.
|
abstract |
Reimplemented in DiffOpAdd, DiffOpChange, DiffOpCopy, and DiffOpDelete.
string [] false DiffOp::$closing |
The right ("new") side of the diff, or false when it's a "delete".
Definition at line 55 of file DiffOp.php.
Referenced by DiffOpChange\__construct(), DiffOpCopy\__construct(), and getClosing().
string [] false DiffOp::$orig |
The left ("old") side of the diff, or false when it's an "add".
Definition at line 49 of file DiffOp.php.
Referenced by DiffOpChange\__construct(), DiffOpCopy\__construct(), and getOrig().
string DiffOp::$type |
Definition at line 43 of file DiffOp.php.
Referenced by getType().