Diff::__construct

public Diff::__construct($from_lines, $to_lines)

Constructor. Computes diff between sequences of strings.

Parameters

$from_lines array An array of strings.: (Typically these are lines from a file.)

$to_lines array An array of strings.:

File

core/lib/Drupal/Component/Diff/Diff.php, line 34

Class

Diff
Class representing a 'diff' between two sequences of strings. @todo document @subpackage DifferenceEngine

Namespace

Drupal\Component\Diff

Code

public function __construct($from_lines, $to_lines) {
  $eng = new DiffEngine();
  $this->edits = $eng->diff($from_lines, $to_lines);
  //$this->_check($from_lines, $to_lines);
}
doc_Drupal
2016-10-29 09:02:20
Comments
Leave a Comment

Please login to continue.