PHP Класс Horde_Text_Diff_ThreeWay, horde

Copyright 2007-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Geoffrey T. Dairiki ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_conflictingBlocks integer Conflict counter.
$_edits array Array of changes.

Открытые методы

Метод Описание
__construct ( array $orig, array $final1, array $final2 ) Computes diff between 3 sequences of strings.
mergedOutput ( $label1 = false, $label2 = false )

Защищенные методы

Метод Описание
_diff3 ( $edits1, $edits2 )

Описание методов

__construct() публичный Метод

Computes diff between 3 sequences of strings.
public __construct ( array $orig, array $final1, array $final2 )
$orig array The original lines to use.
$final1 array The first version to compare to.
$final2 array The second version to compare to.

_diff3() защищенный Метод

protected _diff3 ( $edits1, $edits2 )

mergedOutput() публичный Метод

public mergedOutput ( $label1 = false, $label2 = false )

Описание свойств

$_conflictingBlocks защищенное свойство

Conflict counter.
protected int $_conflictingBlocks
Результат integer

$_edits защищенное свойство

Array of changes.
protected array $_edits
Результат array