MediaWiki master
|
Extends DiffOp. More...
Inherits Wikimedia\Diff\DiffOp.
Public Member Functions | |
__construct ( $orig, $closing=false) | |
reverse () | |
![]() | |
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' | |
![]() | |
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 |
Extends DiffOp.
Used to mark strings that have been copied from one string array to the other.
Definition at line 36 of file DiffOpCopy.php.
Wikimedia\Diff\DiffOpCopy::__construct | ( | $orig, | |
$closing = false |
|||
) |
string[] | $orig | |
string[] | false | $closing | Should either be identical to $orig, or not given |
Definition at line 44 of file DiffOpCopy.php.
References Wikimedia\Diff\DiffOp\$closing, and Wikimedia\Diff\DiffOp\$orig.
Wikimedia\Diff\DiffOpCopy::reverse | ( | ) |
Reimplemented from Wikimedia\Diff\DiffOp.
Definition at line 55 of file DiffOpCopy.php.
Wikimedia\Diff\DiffOpCopy::$type = 'copy' |
Definition at line 38 of file DiffOpCopy.php.