You are here

function simple_html_dom_node::__isset in simplehtmldom API 6

Same name and namespace in other branches
  1. 5.2 simplehtmldom/simple_html_dom.php \simple_html_dom_node::__isset()
  2. 7 simplehtmldom/simple_html_dom.php \simple_html_dom_node::__isset()
1 call to simple_html_dom_node::__isset()
simple_html_dom_node::hasAttribute in simplehtmldom/simple_html_dom.php

File

simplehtmldom/simple_html_dom.php, line 446

Class

simple_html_dom_node

Code

function __isset($name) {
  switch ($name) {
    case 'outertext':
      return true;
    case 'innertext':
      return true;
    case 'plaintext':
      return true;
  }

  //no value attr: nowrap, checked selected...
  return array_key_exists($name, $this->attr) ? true : isset($this->attr[$name]);
}