Moodle  2.2.1
http://www.collinsharper.com
ouwiki_line Class Reference

Public Member Functions

 ouwiki_line ($data, $linepos)
 get_as_string ()
 get_as_strings ($lines)
 is_empty ()

Data Fields

 $words = array()

Detailed Description

Class representing one 'line' of HTML content for the purpose of text comparison.

Definition at line 273 of file difflib.php.


Member Function Documentation

Returns:
string Normalised string representation of this line object

Definition at line 326 of file difflib.php.

get_as_strings ( lines)

Static function converts lines to strings.

Parameters:
array$linesArray of ouwiki_line
Returns:
array Array of strings

Definition at line 342 of file difflib.php.

Here is the caller graph for this function:

is_empty ( )
Returns:
True if there are no words in the line

Definition at line 354 of file difflib.php.

ouwiki_line ( data,
linepos 
)

Construct line object based on a chunk of text.

Parameters:
string$dataText data that makes up this 'line'. (May include line breaks etc.)
int$lineposPosition number for first character in text

Definition at line 282 of file difflib.php.


Field Documentation

$words = array()

Array of ouwiki_words

Definition at line 275 of file difflib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations