示例#1
0
 function start($xp, &$tag, &$attr)
 {
     parent::start($xp, $tag, $attr);
     $p = $this->parent;
     unset($this->text_meta);
     if ($tag == "link") {
         $this->{$p}[strtolower($attr["rel"])] = $attr["href"];
     } elseif ($tag == "meta") {
         $name = strtolower($attr["name"]);
         if (isset($attr["content"])) {
             $this->{$p}[$name] = $attr["content"];
         } elseif ($this->parent == "text") {
             $this->text_meta = $name;
         }
     }
 }
示例#2
0
文件: xml.php 项目: gpuenteallott/rox
 function start($xp, &$tag, &$attr)
 {
     parent::start($xp, $tag, $attr);
     foreach ($attr as $i => $content) {
         if ($this->as_content[$tag] == $i) {
             $this->cdata($xp, $content);
         }
     }
 }
示例#3
0
 function start($xp, $tag, $attr)
 {
     parent::start($xp, $tag, $attr);
     if ($this->parent) {
         $this->{$this->parent}[$tag] = true;
     }
 }