Documentation

HtmlDiff
in package

Table of Contents

Properties

$content  : mixed
$encoding  : mixed
$newText  : mixed
$newWords  : mixed
$oldText  : mixed
$oldWords  : mixed
$specialCaseClosingTags  : mixed
$specialCaseOpeningTags  : mixed
$wordIndices  : mixed

Methods

__construct()  : mixed
build()  : mixed
getDifference()  : mixed
getNewHtml()  : mixed
getOldHtml()  : mixed
checkCondition()  : mixed
ConvertHtmlToListOfWords()  : mixed
Explode()  : mixed
ExtractConsecutiveWords()  : mixed
FindMatch()  : mixed
FindMatchingBlocks()  : mixed
getStringBetween()  : mixed
IndexNewWords()  : mixed
InsertTag()  : mixed
IsAlphaNum()  : mixed
IsClosingTag()  : mixed
IsEndOfTag()  : mixed
IsOpeningTag()  : mixed
IsStartOfTag()  : mixed
IsTag()  : mixed
IsWhiteSpace()  : mixed
MatchingBlocks()  : mixed
Operations()  : mixed
PerformOperation()  : mixed
ProcessDeleteOperation()  : mixed
ProcessEqualOperation()  : mixed
ProcessInsertOperation()  : mixed
ProcessReplaceOperation()  : mixed
purifyHtml()  : mixed
SplitInputsToWords()  : mixed
StripTagAttributes()  : mixed
WrapText()  : mixed

Properties

$newWords

private mixed $newWords = array()

$oldWords

private mixed $oldWords = array()

$specialCaseClosingTags

private mixed $specialCaseClosingTags = array("</strong>", "</b>", "</i>", "</big>", "</small>", "</u>", "</sub>", "</sup>", "</strike>", "</s>", '</p>')

$specialCaseOpeningTags

private mixed $specialCaseOpeningTags = array("/<strong[^>]*/i", "/<b[^>]*/i", "/<i[^>]*/i", "/<big[^>]*/i", "/<small[^>]*/i", "/<u[^>]*/i", "/<sub[^>]*/i", "/<sup[^>]*/i", "/<strike[^>]*/i", "/<s[^>]*/i", '/<p[^>]*/i')

Methods

__construct()

public __construct(mixed $oldText, mixed $newText[, mixed $encoding = 'UTF-8' ]) : mixed
Parameters
$oldText : mixed
$newText : mixed
$encoding : mixed = 'UTF-8'

getDifference()

public getDifference() : mixed

getNewHtml()

public getNewHtml() : mixed

getOldHtml()

public getOldHtml() : mixed

checkCondition()

private checkCondition(mixed $word, mixed $condition) : mixed
Parameters
$word : mixed
$condition : mixed

ConvertHtmlToListOfWords()

private ConvertHtmlToListOfWords(mixed $characterString) : mixed
Parameters
$characterString : mixed

Explode()

private Explode(mixed $value) : mixed
Parameters
$value : mixed

ExtractConsecutiveWords()

private ExtractConsecutiveWords(mixed &$words, mixed $condition) : mixed
Parameters
$words : mixed
$condition : mixed

FindMatch()

private FindMatch(mixed $startInOld, mixed $endInOld, mixed $startInNew, mixed $endInNew) : mixed
Parameters
$startInOld : mixed
$endInOld : mixed
$startInNew : mixed
$endInNew : mixed

FindMatchingBlocks()

private FindMatchingBlocks(mixed $startInOld, mixed $endInOld, mixed $startInNew, mixed $endInNew, mixed &$matchingBlocks) : mixed
Parameters
$startInOld : mixed
$endInOld : mixed
$startInNew : mixed
$endInNew : mixed
$matchingBlocks : mixed

getStringBetween()

private getStringBetween(mixed $str, mixed $start, mixed $end) : mixed
Parameters
$str : mixed
$start : mixed
$end : mixed

IndexNewWords()

private IndexNewWords() : mixed

InsertTag()

private InsertTag(mixed $tag, mixed $cssClass, mixed &$words) : mixed
Parameters
$tag : mixed
$cssClass : mixed
$words : mixed

IsAlphaNum()

private IsAlphaNum(mixed $value) : mixed
Parameters
$value : mixed

IsClosingTag()

private IsClosingTag(mixed $item) : mixed
Parameters
$item : mixed

IsEndOfTag()

private IsEndOfTag(mixed $val) : mixed
Parameters
$val : mixed

IsOpeningTag()

private IsOpeningTag(mixed $item) : mixed
Parameters
$item : mixed

IsStartOfTag()

private IsStartOfTag(mixed $val) : mixed
Parameters
$val : mixed

IsTag()

private IsTag(mixed $item) : mixed
Parameters
$item : mixed

IsWhiteSpace()

private IsWhiteSpace(mixed $value) : mixed
Parameters
$value : mixed

MatchingBlocks()

private MatchingBlocks() : mixed

Operations()

private Operations() : mixed

PerformOperation()

private PerformOperation(mixed $operation) : mixed
Parameters
$operation : mixed

ProcessDeleteOperation()

private ProcessDeleteOperation(mixed $operation, mixed $cssClass) : mixed
Parameters
$operation : mixed
$cssClass : mixed

ProcessEqualOperation()

private ProcessEqualOperation(mixed $operation) : mixed
Parameters
$operation : mixed

ProcessInsertOperation()

private ProcessInsertOperation(mixed $operation, mixed $cssClass) : mixed
Parameters
$operation : mixed
$cssClass : mixed

ProcessReplaceOperation()

private ProcessReplaceOperation(mixed $operation) : mixed
Parameters
$operation : mixed

purifyHtml()

private purifyHtml(mixed $html[, mixed $tags = null ]) : mixed
Parameters
$html : mixed
$tags : mixed = null

SplitInputsToWords()

private SplitInputsToWords() : mixed

StripTagAttributes()

private StripTagAttributes(mixed $word) : mixed
Parameters
$word : mixed

WrapText()

private WrapText(mixed $text, mixed $tagName, mixed $cssClass) : mixed
Parameters
$text : mixed
$tagName : mixed
$cssClass : mixed

        
On this page

Search results