| @@ 11-19 (lines=9) @@ | ||
| 8 | 'libxml_options' => 0 |
|
| 9 | ]; |
|
| 10 | ||
| 11 | public function __construct( $options = array() ) |
|
| 12 | { |
|
| 13 | $optionList = [ 'libxml_options' ]; |
|
| 14 | foreach( $options as $option => $optionValue ) { |
|
| 15 | if ( in_array( $option, $optionList ) ) { |
|
| 16 | $this->{$option} = $optionValue; |
|
| 17 | } |
|
| 18 | } |
|
| 19 | } |
|
| 20 | ||
| 21 | public function parse( $html, $encoding = 'UTF-8' ) |
|
| 22 | { |
|
| @@ 9-17 (lines=9) @@ | ||
| 6 | ||
| 7 | public $indent = false; |
|
| 8 | ||
| 9 | public function __construct( $options = [] ) |
|
| 10 | { |
|
| 11 | $optionList = ['indent']; |
|
| 12 | foreach( $options as $option => $optionValue ) { |
|
| 13 | if ( in_array( $option, $optionList ) ) { |
|
| 14 | $this->{$option} = $optionValue; |
|
| 15 | } |
|
| 16 | } |
|
| 17 | } |
|
| 18 | ||
| 19 | public function __call( $name, $args ) |
|
| 20 | { |
|