PHP 클래스 Papi_Porter_Driver, papi

파일 보기 프로젝트 열기: wp-papi/papi 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$alias array | string Alias for driver name.
$name string The driver name.
$options array Options per property.
$porter Papi_Porter Papi Porter instance.

공개 메소드들

메소드 설명
__construct ( ) The constructor.
bootstrap ( ) Bootstrap the driver.
filter ( string $type, string $filter ) : string Get filter key.
get_driver_name ( ) : string Get the driver name.
get_options ( ) : array Get options.
get_value ( array $options ) : mixed Get the import value for a property.
set_options ( array $options = [] ) Set options for properties.
set_porter ( Papi_Porter $porter ) Set Porter instance.

보호된 메소드들

메소드 설명
call_value ( mixed $value ) : mixed Call closure value if any.
set_driver_alias ( ) Set driver alias.
set_driver_name ( string $name ) Set driver name.
should_update_array ( string $slug ) : boolean Determine if a property should update existing array or not.
with ( mixed $obj ) : mixed Return the given object. Useful for chaining.

메소드 상세

__construct() 공개 메소드

The constructor.
public __construct ( )

bootstrap() 공개 메소드

Bootstrap the driver.
public bootstrap ( )

call_value() 보호된 메소드

Call closure value if any.
protected call_value ( mixed $value ) : mixed
$value mixed
리턴 mixed

filter() 공개 메소드

Get filter key.
public filter ( string $type, string $filter ) : string
$type string
$filter string
리턴 string

get_driver_name() 공개 메소드

Get the driver name.
public get_driver_name ( ) : string
리턴 string

get_options() 공개 메소드

Get options.
public get_options ( ) : array
리턴 array

get_value() 추상적인 공개 메소드

Get the import value for a property.
abstract public get_value ( array $options ) : mixed
$options array
리턴 mixed

set_driver_alias() 보호된 메소드

Set driver alias.
protected set_driver_alias ( )

set_driver_name() 보호된 메소드

Set driver name.
protected set_driver_name ( string $name )
$name string

set_options() 공개 메소드

Set options for properties.
public set_options ( array $options = [] )
$options array

set_porter() 공개 메소드

Set Porter instance.
public set_porter ( Papi_Porter $porter )
$porter Papi_Porter

should_update_array() 보호된 메소드

Determine if a property should update existing array or not.
protected should_update_array ( string $slug ) : boolean
$slug string
리턴 boolean

with() 보호된 메소드

Return the given object. Useful for chaining.
protected with ( mixed $obj ) : mixed
$obj mixed
리턴 mixed

프로퍼티 상세

$alias 보호되어 있는 프로퍼티

Alias for driver name.
protected array|string $alias
리턴 array | string

$name 보호되어 있는 프로퍼티

The driver name.
protected string $name
리턴 string

$options 보호되어 있는 프로퍼티

Options per property.
protected array $options
리턴 array

$porter 보호되어 있는 프로퍼티

Papi Porter instance.
protected Papi_Porter $porter
리턴 Papi_Porter