Text_Diff_Op_copy{}
Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.
No Hooks.
Usage
$Text_Diff_Op_copy = new Text_Diff_Op_copy(); // use class methods
Methods
- public Text_Diff_Op_copy( $orig, $final = false )
- public __construct( $orig, $final = false )
- public reverse()
Notes
- Package: Text_Diff
Text_Diff_Op_copy{} Text Diff Op copy{} code WP 6.5.2
class Text_Diff_Op_copy extends Text_Diff_Op { /** * PHP5 constructor. */ function __construct( $orig, $final = false ) { if (!is_array($final)) { $final = $orig; } $this->orig = $orig; $this->final = $final; } /** * PHP4 constructor. */ public function Text_Diff_Op_copy( $orig, $final = false ) { self::__construct( $orig, $final ); } function &reverse() { $reverse = new Text_Diff_Op_copy($this->final, $this->orig); return $reverse; } }