PHP Class PHPHtmlParser\Options

Afficher le fichier Open project: paquettg/php-html-parser Class Usage Examples

Protected Properties

Свойство Type Description
$defaults The default options array
$options The list of all current options set.

Méthodes publiques

Méthode 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 méthode

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

__get() public méthode

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

get() public méthode

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

setOptions() public méthode

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

Property Details

$defaults protected_oe property

The default options array
protected $defaults

$options protected_oe property

The list of all current options set.
protected $options