本文整理汇总了PHP中SimpleTag::getTagName方法的典型用法代码示例。如果您正苦于以下问题:PHP SimpleTag::getTagName方法的具体用法?PHP SimpleTag::getTagName怎么用?PHP SimpleTag::getTagName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SimpleTag
的用法示例。
在下文中一共展示了SimpleTag::getTagName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: acceptTag
/**
* 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: acceptTag
/**
* 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: acceptTag
/**
* 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;
}
}