PHP 클래스 PHPHtmlParser\Options

파일 보기 프로젝트 열기: paquettg/php-html-parser 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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