Zeile 50 | Zeile 50 |
---|
require_once MYBB_ROOT.'inc/3rdparty/diff/Diff/Engine/' . $engine . '.php'; $class = 'Text_Diff_Engine_' . $engine;
|
require_once MYBB_ROOT.'inc/3rdparty/diff/Diff/Engine/' . $engine . '.php'; $class = 'Text_Diff_Engine_' . $engine;
|
$diff_engine = &new $class();
| $diff_engine = new $class();
|
$this->_edits = call_user_func_array(array($diff_engine, 'diff'), $params); }
| $this->_edits = call_user_func_array(array($diff_engine, 'diff'), $params); }
|
Zeile 68 | Zeile 68 |
---|
* * Example: * <code>
|
* * Example: * <code>
|
* $diff = &new Text_Diff($lines1, $lines2);
| * $diff = new Text_Diff($lines1, $lines2);
|
* $rev = $diff->reverse(); * </code> *
| * $rev = $diff->reverse(); * </code> *
|
Zeile 304 | Zeile 304 |
---|
function &reverse() {
|
function &reverse() {
|
$reverse = &new Text_Diff_Op_copy($this->final, $this->orig);
| $reverse = new Text_Diff_Op_copy($this->final, $this->orig);
|
return $reverse; }
| return $reverse; }
|
Zeile 326 | Zeile 326 |
---|
function &reverse() {
|
function &reverse() {
|
$reverse = &new Text_Diff_Op_add($this->orig);
| $reverse = new Text_Diff_Op_add($this->orig);
|
return $reverse; }
| return $reverse; }
|
Zeile 348 | Zeile 348 |
---|
function &reverse() {
|
function &reverse() {
|
$reverse = &new Text_Diff_Op_delete($this->final);
| $reverse = new Text_Diff_Op_delete($this->final);
|
return $reverse; }
| return $reverse; }
|
Zeile 370 | Zeile 370 |
---|
function &reverse() {
|
function &reverse() {
|
$reverse = &new Text_Diff_Op_change($this->final, $this->orig);
| $reverse = new Text_Diff_Op_change($this->final, $this->orig);
|
return $reverse; }
| return $reverse; }
|