PHP Class PHPHtmlParser\Options

Show file Open project: paquettg/php-html-parser Class Usage Examples

Protected Properties

Property Type Description
$defaults The default options array
$options The list of all current options set.

Public Methods

Method Description
__construct ( ) Sets the default options in the options array
__get ( string $key ) : mixed A magic get to call the get() method.
get ( $key ) : mixed Gets the value associated to the key, or null if the key is not found.
setOptions ( array $options ) Sets a new options param to override the current option array.

Method Details

__construct() public method

Sets the default options in the options array
public __construct ( )

__get() public method

A magic get to call the get() method.
public __get ( string $key ) : mixed
$key string
return mixed

get() public method

Gets the value associated to the key, or null if the key is not found.
public get ( $key ) : mixed
return mixed

setOptions() public method

Sets a new options param to override the current option array.
public setOptions ( array $options )
$options array

Property Details

$defaults protected property

The default options array
protected $defaults

$options protected property

The list of all current options set.
protected $options