Ejemplo n.º 1
0
 /**
  * This function adds something to a word list array, prefixed by the current passage.
  * $list: which list to add the text to.
  * The word is extracted from the input USFM. The Usfm pointer points to the current marker,
  * and the text following that marker is added to the word list array.
  */
 private function addToWordList(&$list)
 {
     $text = Filter_Usfm::peekTextFollowingMarker($this->chapterUsfmMarkersAndText, $this->chapterUsfmMarkersAndTextPointer);
     $text .= " (";
     $text .= $this->getCurrentPassageText();
     $text .= ")";
     $list[] = $text;
 }
Ejemplo n.º 2
0
 private function addResult($text, $modifier)
 {
     $current = $this->usfmItem;
     $next = Filter_Usfm::peekTextFollowingMarker($this->usfmMarkersAndText, $this->usfmMarkersAndTextPointer);
     $next = substr($next, 0, 20);
     switch ($modifier) {
         case Checks_Usfm::displayNothing:
             break;
         case Checks_Usfm::displayCurrent:
             $text .= ": " . $current;
             break;
         case Checks_Usfm::displayNext:
             $text .= ": " . $next;
             break;
         case Checks_Usfm::displayFull:
             $text .= ": " . $current . $next;
             break;
     }
     $this->checkingResults[] = array((int) $this->verseNumber => $text);
 }