You are here

function simple_html_dom::__get in simplehtmldom API 6

Same name and namespace in other branches
  1. 5.2 simplehtmldom/simple_html_dom.php \simple_html_dom::__get()
  2. 7 simplehtmldom/simple_html_dom.php \simple_html_dom::__get()

File

simplehtmldom/simple_html_dom.php, line 957

Class

simple_html_dom

Code

function __get($name) {
  switch ($name) {
    case 'outertext':
      return $this->root
        ->innertext();
    case 'innertext':
      return $this->root
        ->innertext();
    case 'plaintext':
      return $this->root
        ->text();
  }
}