コード例 #1
0
ファイル: php_parser.php プロジェクト: ngugijames/ThinkUp
 /**
  *    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() == "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;
     }
 }
コード例 #2
0
ファイル: page.php プロジェクト: Spark-Eleven/revive-adserver
 /**
  *    Adds a tag to the page.
  *    @param SimpleTag $tag        Tag to accept.
  *    @access public
  */
 function acceptTag(&$tag)
 {
     if ($tag->getTagName() == "a") {
         $this->_addLink($tag);
     } elseif ($tag->getTagName() == "title") {
         $this->_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;
     }
 }
コード例 #3
0
ファイル: page.php プロジェクト: kapai69/fl-ru-damp
 /**
  *    Adds a tag to the page.
  *
  *    @param SimpleTag $tag        Tag to accept.
  */
 public function acceptTag(&$tag)
 {
     if ($tag->getTagName() == 'a') {
         $this->_addLink($tag);
     } elseif ($tag->getTagName() == 'base') {
         $this->_setBase($tag);
     } elseif ($tag->getTagName() == 'title') {
         $this->_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;
     }
 }