Class representing one 'line' of HTML content for the purpose of text comparison.
More...
|
| static | get_as_strings ($lines) |
| | Static function converts lines to strings.
|
| |
|
|
| $words =array() |
| | Array of ouwiki_words.
|
| |
Class representing one 'line' of HTML content for the purpose of text comparison.
◆ __construct()
| ouwiki_line::__construct |
( |
|
$data, |
|
|
|
$linepos |
|
) |
| |
Construct line object based on a chunk of text.
- Parameters
-
| string | $data | Text data that makes up this 'line'. (May include line breaks etc.) |
| int | $linepos | Position number for first character in text |
◆ get_as_string()
| ouwiki_line::get_as_string |
( |
| ) |
|
- Return values
-
| string | Normalised string representation of this line object |
◆ get_as_strings()
| static ouwiki_line::get_as_strings |
( |
|
$lines | ) |
|
|
static |
Static function converts lines to strings.
- Parameters
-
- Return values
-
◆ is_empty()
| ouwiki_line::is_empty |
( |
| ) |
|
- Return values
-
| True | if there are no words in the line |
◆ ouwiki_line()
| ouwiki_line::ouwiki_line |
( |
|
$data, |
|
|
|
$linepos |
|
) |
| |
Old syntax of class constructor.
Deprecated in PHP7.
- Deprecated:
- since Moodle 3.1
The documentation for this class was generated from the following file:
- mod/wiki/diff/difflib.php