Ejemplo n.º 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;
         }
     }
 }
Ejemplo n.º 2
0
 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);
         }
     }
 }
Ejemplo n.º 3
0
 function start($xp, $tag, $attr)
 {
     parent::start($xp, $tag, $attr);
     if ($this->parent) {
         $this->{$this->parent}[$tag] = true;
     }
 }