PHP 클래스 QueryPath\Options

This class stores the default options for QueryPath. When a new QueryPath object is constructed, options specified here will be used. Details This class defines no options of its own. Instead, it provides a central tool for developers to override options set by QueryPath. When a QueryPath object is created, it will evaluate options in the following order: - Options passed into qp() have highest priority. - Options in QueryPath::Options (this class) have the next highest priority. - If the option is not specified elsewhere, QueryPath will use its own defaults.
또한 보기: qp()
파일 보기 프로젝트 열기: microweber/microweber 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$options Use the {@link set()}, {@link get()}, and {@link merge()} to modify this array.

공개 메소드들

메소드 설명
get ( ) : array Get the default options.
has ( string $key ) Returns true of the specified key is already overridden in this object.
merge ( array $array ) Merge the provided array with existing options.
set ( array $array ) Set the default options.

메소드 상세

get() 공개 정적인 메소드

Get all options currently set as default.
public static get ( ) : array
리턴 array An array of options. Note that only explicitly set options are returned. {@link QueryPath} defines default options which are not stored in this object.

has() 공개 정적인 메소드

Returns true of the specified key is already overridden in this object.
public static has ( string $key )
$key string The key to search for.

merge() 공개 정적인 메소드

On duplicate keys, the value in $array will overwrite the value stored in the options.
public static merge ( array $array )
$array array Associative array of options to merge into the existing options.

set() 공개 정적인 메소드

The passed-in array will be used as the default options list.
public static set ( array $array )
$array array An associative array of options.

프로퍼티 상세

$options 공개적으로 정적으로 프로퍼티

Use the {@link set()}, {@link get()}, and {@link merge()} to modify this array.
public static $options