Text_Diff::getFinal()publicWP 1.0

Gets the final set of lines.

This reconstructs the $to_lines parameter passed to the constructor.

Метод класса: Text_Diff{}

Хуков нет.

Возвращает

Массив. The sequence of strings.

Использование

$Text_Diff = new Text_Diff();
$Text_Diff->getFinal();

Код Text_Diff::getFinal() WP 6.6.2

function getFinal()
{
    $lines = array();
    foreach ($this->_edits as $edit) {
        if ($edit->final) {
            array_splice($lines, count($lines), 0, $edit->final);
        }
    }
    return $lines;
}