PHP Класс PHPHtmlParser\Options

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$defaults The default options array
$options The list of all current options set.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

__get() публичный Метод

A magic get to call the get() method.
public __get ( string $key ) : mixed
$key string
Результат mixed

get() публичный Метод

Gets the value associated to the key, or null if the key is not found.
public get ( $key ) : mixed
Результат mixed

setOptions() публичный Метод

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

Описание свойств

$defaults защищенное свойство

The default options array
protected $defaults

$options защищенное свойство

The list of all current options set.
protected $options