| @@ 1047-1060 (lines=14) @@ | ||
| 1044 | return array($words, $stripped); |
|
| 1045 | } |
|
| 1046 | ||
| 1047 | function orig() { |
|
| 1048 | $orig = new _HWLDF_WordAccumulator; |
|
| 1049 | ||
| 1050 | foreach ($this->edits as $edit) { |
|
| 1051 | if ($edit->type == 'copy') { |
|
| 1052 | $orig->addWords($edit->orig); |
|
| 1053 | } |
|
| 1054 | elseif ($edit->orig) { |
|
| 1055 | $orig->addWords($edit->orig, 'mark'); |
|
| 1056 | } |
|
| 1057 | } |
|
| 1058 | $lines = $orig->getLines(); |
|
| 1059 | return $lines; |
|
| 1060 | } |
|
| 1061 | ||
| 1062 | function closing() { |
|
| 1063 | $closing = new _HWLDF_WordAccumulator; |
|
| @@ 1062-1075 (lines=14) @@ | ||
| 1059 | return $lines; |
|
| 1060 | } |
|
| 1061 | ||
| 1062 | function closing() { |
|
| 1063 | $closing = new _HWLDF_WordAccumulator; |
|
| 1064 | ||
| 1065 | foreach ($this->edits as $edit) { |
|
| 1066 | if ($edit->type == 'copy') { |
|
| 1067 | $closing->addWords($edit->closing); |
|
| 1068 | } |
|
| 1069 | elseif ($edit->closing) { |
|
| 1070 | $closing->addWords($edit->closing, 'mark'); |
|
| 1071 | } |
|
| 1072 | } |
|
| 1073 | $lines = $closing->getLines(); |
|
| 1074 | return $lines; |
|
| 1075 | } |
|
| 1076 | } |
|
| 1077 | ||