Пример #1
0
 /**
  *    Adds a tag to the page.
  *    @param SimpleTag $tag        Tag to accept.
  *    @access public
  */
 protected function acceptTag($tag)
 {
     if ($tag->getTagName() == "a") {
         $this->page->addLink($tag);
     } elseif ($tag->getTagName() == "img") {
         $this->page->addImage($tag);
     } elseif ($tag->getTagName() == "base") {
         $this->page->setBase($tag->getAttribute('href'));
     } elseif ($tag->getTagName() == "title") {
         $this->page->setTitle($tag);
     } elseif ($this->isFormElement($tag->getTagName())) {
         for ($i = 0; $i < count($this->open_forms); $i++) {
             $this->open_forms[$i]->addWidget($tag);
         }
         $this->last_widget = $tag;
     }
 }