Text_Diff_Op_copy

The WordPress Core Text Diff Op copy class.

Defined (1)

The class is defined in the following location(s).

/wp-includes/Text/Diff.php  
  1. class Text_Diff_Op_copy extends Text_Diff_Op { 
  2.  
  3. /** 
  4. * PHP5 constructor. 
  5. */ 
  6. function __construct( $orig, $final = false ) 
  7. if (!is_array($final)) { 
  8. $final = $orig; 
  9. $this->orig = $orig; 
  10. $this->final = $final; 
  11.  
  12. /** 
  13. * PHP4 constructor. 
  14. */ 
  15. public function Text_Diff_Op_copy( $orig, $final = false ) { 
  16. self::__construct( $orig, $final ); 
  17.  
  18. function &reverse() 
  19. $reverse = new Text_Diff_Op_copy($this->final, $this->orig); 
  20. return $reverse; 
  21.