You are here

class _DiffOp_Copy in Diff 6.2

Same name and namespace in other branches
  1. 5.2 DiffEngine.php \_DiffOp_Copy
  2. 5 DiffEngine.php \_DiffOp_Copy
  3. 6 DiffEngine.php \_DiffOp_Copy
  4. 7.3 DiffEngine.php \_DiffOp_Copy
  5. 7.2 DiffEngine.php \_DiffOp_Copy

@todo document @private @subpackage DifferenceEngine

Hierarchy

Expanded class hierarchy of _DiffOp_Copy

File

./DiffEngine.php, line 41
A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)

View source
class _DiffOp_Copy extends _DiffOp {
  var $type = 'copy';
  function _DiffOp_Copy($orig, $closing = FALSE) {
    if (!is_array($closing)) {
      $closing = $orig;
    }
    $this->orig = $orig;
    $this->closing = $closing;
  }
  function reverse() {
    return new _DiffOp_Copy($this->closing, $this->orig);
  }

}

Members