PHP 클래스 Papi_Property_Link, papi

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

공개 프로퍼티들

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

보호된 프로퍼티들

프로퍼티 타입 설명
$link_fields array Link fields.

공개 메소드들

메소드 설명
delete_value ( string $slug, integer $post_id, string $type ) : boolean Delete value from the database.
format_value ( mixed $value, string $slug, integer $post_id ) : mixed Format the value of the property before it's returned to WordPress admin or the site.
get_default_settings ( ) : array Get default settings.
html ( ) Render property html.
import_value ( mixed $value, string $slug, integer $post_id ) : mixed Import value to the property.
load_value ( mixed $value, string $slug, integer $post_id ) : array Load value from database.
render_link_template ( ) Render link template.
update_value ( mixed $values, string $slug, integer $post_id ) : array Prepare value for the database.

보호된 메소드들

메소드 설명
prepare_link_array ( array | object $link, string $slug ) : array | object Prepare link array with post id. If it gets a post id bigger then zero it will use the permalink as url.
setup_actions ( ) Setup actions.

메소드 상세

delete_value() 공개 메소드

Delete value from the database.
public delete_value ( string $slug, integer $post_id, string $type ) : boolean
$slug string
$post_id integer
$type string
리턴 boolean

format_value() 공개 메소드

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

get_default_settings() 공개 메소드

Get default settings.
public get_default_settings ( ) : 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() 공개 메소드

Load value from database.
public load_value ( mixed $value, string $slug, integer $post_id ) : array
$value mixed
$slug string
$post_id integer
리턴 array

setup_actions() 보호된 메소드

Setup actions.
protected setup_actions ( )

update_value() 공개 메소드

Prepare value for the database.
public update_value ( mixed $values, string $slug, integer $post_id ) : array
$values mixed
$slug string
$post_id integer
리턴 array

프로퍼티 상세

$convert_type 공개적으로 프로퍼티

The convert type.
public string $convert_type
리턴 string

$default_value 공개적으로 프로퍼티

The default value.
public array $default_value
리턴 array