PHP Класс HtmlDiff, php-htmldiff

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( $oldText, $newText, $encoding = 'UTF-8' )
build ( )
getDifference ( )
getNewHtml ( )
getOldHtml ( )

Приватные методы

Метод Описание
ConvertHtmlToListOfWords ( $characterString )
Explode ( $value )
ExtractConsecutiveWords ( &$words, $condition )
FindMatch ( $startInOld, $endInOld, $startInNew, $endInNew )
FindMatchingBlocks ( $startInOld, $endInOld, $startInNew, $endInNew, &$matchingBlocks )
IndexNewWords ( )
InsertTag ( $tag, $cssClass, &$words )
IsAlphaNum ( $value )
IsClosingTag ( $item )
IsEndOfTag ( $val )
IsOpeningTag ( $item )
IsStartOfTag ( $val )
IsTag ( $item )
IsWhiteSpace ( $value )
MatchingBlocks ( )
Operations ( )
PerformOperation ( $operation )
ProcessDeleteOperation ( $operation, $cssClass )
ProcessEqualOperation ( $operation )
ProcessInsertOperation ( $operation, $cssClass )
ProcessReplaceOperation ( $operation )
SplitInputsToWords ( )
StripTagAttributes ( $word )
WrapText ( $text, $tagName, $cssClass )
checkCondition ( $word, $condition )
getStringBetween ( $str, $start, $end )
purifyHtml ( $html, $tags = null )

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

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

public __construct ( $oldText, $newText, $encoding = 'UTF-8' )

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

public build ( )

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

public getDifference ( )

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

public getNewHtml ( )

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

public getOldHtml ( )