Arbit - project tracking

Arbit - project tracking

API documentation :: Docs For Class arbitFrameworkDiffToken

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

From arbitBaseStruct
protected void arbitBaseStruct::deepClone()
Deep clone array structures
public array arbitBaseStruct::getProperties()
Get property names Returns an arary with all properties defined in this struct.
public void arbitBaseStruct::__clone()
Method called, when struct ist cloned

Methods

__construct

void __construct( mixed $token , int $type )

Create a new diff token

Create a new diff token

Parameters:
Name Type Description
$token mixed
$type int
Documentation generated on Mon, 05 Apr 2010 14:02:20 +0200 by phpDocumentor 1.4.3