PHP 클래스 Papi_Core_Data_Handler, papi

파일 보기 프로젝트 열기: wp-papi/papi

보호된 프로퍼티들

프로퍼티 타입 설명
$overwrite array The fields that should be overwritten.

공개 메소드들

메소드 설명
__construct ( ) The constructor.

보호된 메소드들

메소드 설명
decode_property ( string $key, string $value ) : mixed Decode property.
get_post_data ( string $pattern = '/^papi\_.*/' ) : array Get post data.
get_pre_data ( ) Get pre data that should be saved before all properties data.
get_pre_deep_keys_value ( array $arr ) : array Pre get deep keys and value.
prepare_post_data ( mixed $data ) : mixed Prepare post data.
prepare_properties_data ( array $data = [], integer $post_id ) : array Prepare properties data for saving.
santize_data ( mixed $value ) : mixed Sanitize data before saving it.
setup_actions ( ) Setup actions.

메소드 상세

__construct() 공개 메소드

The constructor.
public __construct ( )

decode_property() 보호된 메소드

Decode property.
protected decode_property ( string $key, string $value ) : mixed
$key string
$value string
리턴 mixed

get_post_data() 보호된 메소드

Get post data.
protected get_post_data ( string $pattern = '/^papi\_.*/' ) : array
$pattern string
리턴 array

get_pre_data() 보호된 메소드

Get pre data that should be saved before all properties data.
protected get_pre_data ( )

get_pre_deep_keys_value() 보호된 메소드

Used for saving pre data when properties are in a flexible or repeater.
protected get_pre_deep_keys_value ( array $arr ) : array
$arr array
리턴 array

prepare_post_data() 보호된 메소드

Will decode property options recursive.
protected prepare_post_data ( mixed $data ) : mixed
$data mixed
리턴 mixed

prepare_properties_data() 보호된 메소드

Prepare properties data for saving.
protected prepare_properties_data ( array $data = [], integer $post_id ) : array
$data array
$post_id integer
리턴 array

santize_data() 보호된 메소드

Sanitize data before saving it.
protected santize_data ( mixed $value ) : mixed
$value mixed
리턴 mixed

setup_actions() 보호된 메소드

Setup actions.
protected setup_actions ( )

프로퍼티 상세

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

The fields that should be overwritten.
protected array $overwrite
리턴 array