/**
  * Sets an array containing the text for this stat.
  * The indexes should match the indexes in the array returned by
  * {@link #getNumberArray}.
  *
  * This method overwrites the implemention in the super class to provide
  * transformation from internal to display text.
  *
  * @public
  * @version 0.0.1
  * @since 0.0.1
  * @return void
  * @param $engineIds the text array for this stat.
  */
 function setTextArray($engineIds)
 {
     $engines = new SearchEngines();
     $text =& $this->siteGenerator->newElement("text");
     $text->setParagraph(0);
     /*Don't put the text in a paragraphw*/
     $urlWrapper =& $this->siteGenerator->newElement("urlWrapper");
     //Translate the engine ids to urls and names.
     $urlForViewing = $this->siteGenerator->isUrlsForViewing();
     for ($i = 0; $i < sizeof($engineIds); $i++) {
         $engText = "";
         $engineUrls = $engines->getUrls($engineIds[$i]);
         $engineNames = $engines->getNames($engineIds[$i]);
         for ($n = 0; $n < sizeof($engineUrls); $n++) {
             $text->setText($engineNames[$n]);
             $urlWrapper->setWrapped($text);
             $urlWrapper->setTitle($engineUrls[$n]);
             if (!$urlForViewing) {
                 $url = "redir.php?url=" . urlencode($engineUrls[$n]);
             } else {
                 $url = $engineUrls[$n];
             }
             $urlWrapper->setUrl($url);
             if ($n > 0) {
                 $engText .= " / ";
             }
             $engText .= $urlWrapper->getCode();
         }
         /*End for $n...*/
         $engineIds[$i] = $engText;
     }
     /*End for $i...*/
     //Now set the values in the super class method
     GraphStatGenerator::setTextArray($engineIds);
 }