1.20.x diff.inc | Diff::orig() |
Get the original set of lines.
This reconstructs the $from_lines parameter passed to the constructor.
Return value
array The original sequence of strings.:
File
- includes/
diff.inc, line 734 - A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)
Class
- Diff
- Class representing a 'diff' between two sequences of strings. @private
Code
function orig() {
$lines = array();
foreach ($this->edits as $edit) {
if ($edit->orig) {
array_splice($lines, count($lines), 0, $edit->orig);
}
}
return $lines;
}