PHP 클래스 Papi_Porter, papi

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

보호된 프로퍼티들

프로퍼티 타입 설명
$driver Papi_Porter_Driver The driver that should be used.

공개 메소드들

메소드 설명
__construct ( ) The constructor.
add_driver ( Papi_Porter_Driver $driver ) : Papi_Porter Add Porter Driver.
after ( string $filter, Closure $closure, integer $priority = 10, integer $accepted_args = 2 ) : boolean Add after filter.
before ( string $filter, Closure $closure, integer $priority = 10, integer $accepted_args = 2 ) : boolean Add before filter.
driver ( string | Papi_Porter_Driver $driver ) : Papi_Porter Alias for add_driver or use_driver method.
driver_exists ( string $driver ) : boolean Check if a driver exists or not.
export ( mixed $post_id, boolean $only_values = false ) : array Export data from Papi. With or without all property options.
fire_filter ( array $options ) : mixed Fire filter.
import ( mixed $options, array $fields = [] ) : boolean Import data to Papi.
options ( array $options = [] ) : Papi_Porter Add options per property.
use_driver ( string $driver ) : Papi_Porter Change Porter driver.

보호된 메소드들

메소드 설명
get_import_options ( mixed $options ) : array Get import options.
get_value ( array $options ) : mixed Get value that should be saved.

메소드 상세

__construct() 공개 메소드

The constructor.
public __construct ( )

add_driver() 공개 메소드

Add Porter Driver.
public add_driver ( Papi_Porter_Driver $driver ) : Papi_Porter
$driver Papi_Porter_Driver
리턴 Papi_Porter

after() 공개 메소드

Add after filter.
public after ( string $filter, Closure $closure, integer $priority = 10, integer $accepted_args = 2 ) : boolean
$filter string
$closure Closure
$priority integer
$accepted_args integer
리턴 boolean

before() 공개 메소드

Add before filter.
public before ( string $filter, Closure $closure, integer $priority = 10, integer $accepted_args = 2 ) : boolean
$filter string
$closure Closure
$priority integer
$accepted_args integer
리턴 boolean

driver() 공개 메소드

Alias for add_driver or use_driver method.
public driver ( string | Papi_Porter_Driver $driver ) : Papi_Porter
$driver string | Papi_Porter_Driver
리턴 Papi_Porter

driver_exists() 공개 메소드

Check if a driver exists or not.
public driver_exists ( string $driver ) : boolean
$driver string
리턴 boolean

export() 공개 메소드

Export data from Papi. With or without all property options.
public export ( mixed $post_id, boolean $only_values = false ) : array
$post_id mixed
$only_values boolean
리턴 array

fire_filter() 공개 메소드

Fire filter.
public fire_filter ( array $options ) : mixed
$options array
리턴 mixed

get_import_options() 보호된 메소드

Get import options.
protected get_import_options ( mixed $options ) : array
$options mixed
리턴 array

get_value() 보호된 메소드

Get value that should be saved.
protected get_value ( array $options ) : mixed
$options array
리턴 mixed

import() 공개 메소드

Import data to Papi.
public import ( mixed $options, array $fields = [] ) : boolean
$options mixed
$fields array
리턴 boolean

options() 공개 메소드

Add options per property.
public options ( array $options = [] ) : Papi_Porter
$options array
리턴 Papi_Porter

use_driver() 공개 메소드

Change Porter driver.
public use_driver ( string $driver ) : Papi_Porter
$driver string
리턴 Papi_Porter

프로퍼티 상세

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

The driver that should be used.
protected Papi_Porter_Driver $driver
리턴 Papi_Porter_Driver