Core::arbitFrameworkDiffToken
Class arbitFrameworkDiffToken
This is a implemntation of the common diff algorithm for arbritrary arrays of tokens. This is a implemntation of the common diff algorithm for arbritrary arrays of tokens. This way you may diff on line / word / character / ... basis.
Extensions of this class may offer ways to split your text into the desired token type and apply and return the diff for them. The diffs are not rendered by this class.
arbitBaseStruct
|
--arbitFrameworkDiffToken
Author(s):
|
Version:
|
$Revision: 1236 $ |
|
License:
|
GPL |
Constants
ADDED
= 1
|
Token has been added Token has been added |
OLD
= 0
|
Token exists in old and new token list Token exists in old and new token list |
REMOVED
= 2
|
Token has been removed Token has been removed |
Member Variables
|
protected array |
$properties
= array( 'value' => null, 'type' => null, )
Array containing the structs properties.
Array containing the structs properties. |
Method Summary
|
public void |
__construct(
$token
, $type
)
Create a new diff token |
Inherited Methods
Methods
__construct
void
__construct(
mixed
$token
, int
$type
)
Create a new diff token
Parameters:
| Name |
Type |
Description |
$token |
mixed |
|
$type |
int |
|
|