PHP 클래스 Papi_Property_Relationship, papi

상속: extends Papi_Property
파일 보기 프로젝트 열기: wp-papi/papi

공개 프로퍼티들

프로퍼티 타입 설명
$convert_type string The convert type.
$default_value array The default value.

공개 메소드들

메소드 설명
format_value ( mixed $values, string $slug, integer $post_id ) : array Format the value of the property before it's returned to WordPress admin or the site.
get_default_settings ( ) : array Get default settings.
get_sort_option ( integer $post_id ) : string Get sort option value.
get_sort_options ( ) : array Get sort options for relationship property.
html ( ) Render property html.
import_value ( mixed $value, string $slug, integer $post_id ) : mixed Import value to the property.
load_value ( mixed $values, string $slug, integer $post_id ) : mixed Change value after it's loaded from the database.
sort_value ( array $values, string $slug, integer $post_id ) : array Sort the values.
update_value ( mixed $values, string $slug, integer $post_id ) : string Sort the values on update.

보호된 메소드들

메소드 설명
convert_post_to_item ( WP_Post $post ) : object Convert WordPress post object to a item object.
get_items ( stdClass $settings ) : array Get items to display from settings.

메소드 상세

convert_post_to_item() 보호된 메소드

Convert WordPress post object to a item object.
protected convert_post_to_item ( WP_Post $post ) : object
$post WP_Post
리턴 object

format_value() 공개 메소드

Format the value of the property before it's returned to WordPress admin or the site.
public format_value ( mixed $values, string $slug, integer $post_id ) : array
$values mixed
$slug string
$post_id integer
리턴 array

get_default_settings() 공개 메소드

Get default settings.
public get_default_settings ( ) : array
리턴 array

get_items() 보호된 메소드

Get items to display from settings.
protected get_items ( stdClass $settings ) : array
$settings stdClass
리턴 array

get_sort_option() 공개 메소드

Get sort option value.
public get_sort_option ( integer $post_id ) : string
$post_id integer
리턴 string

get_sort_options() 공개 정적인 메소드

Get sort options for relationship property.
public static get_sort_options ( ) : array
리턴 array

html() 공개 메소드

Render property html.
public html ( )

import_value() 공개 메소드

Import value to the property.
public import_value ( mixed $value, string $slug, integer $post_id ) : mixed
$value mixed
$slug string
$post_id integer
리턴 mixed

load_value() 공개 메소드

Change value after it's loaded from the database.
public load_value ( mixed $values, string $slug, integer $post_id ) : mixed
$values mixed
$slug string
$post_id integer
리턴 mixed

sort_value() 공개 메소드

Sort the values.
public sort_value ( array $values, string $slug, integer $post_id ) : array
$values array
$slug string
$post_id integer
리턴 array

update_value() 공개 메소드

Sort the values on update.
public update_value ( mixed $values, string $slug, integer $post_id ) : string
$values mixed
$slug string
$post_id integer
리턴 string

프로퍼티 상세

$convert_type 공개적으로 프로퍼티

The convert type.
public string $convert_type
리턴 string

$default_value 공개적으로 프로퍼티

The default value.
public array $default_value
리턴 array