PHP 클래스 Papi_Property_File, papi

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

공개 프로퍼티들

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

보호된 프로퍼티들

프로퍼티 타입 설명
$file_type string File type.

공개 메소드들

메소드 설명
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.
get_labels ( ) : array Get labels.
html ( ) Render property html.
import_value ( mixed $value, string $slug, integer $post_id ) : mixed Import value to the property.
render_file_template ( ) Render file template.
wp_get_attachment_metadata ( mixed $data, integer $post_id ) : mixed Get attachment metadata.

보호된 메소드들

메소드 설명
is_attachment ( integer $id ) : boolean Check if the given id is a attachment post type or not.
setup_actions ( ) Setup actions.
setup_filters ( ) Setup filters.

메소드 상세

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

get_labels() 공개 메소드

Get labels.
public get_labels ( ) : 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

is_attachment() 보호된 메소드

Check if the given id is a attachment post type or not.
protected is_attachment ( integer $id ) : boolean
$id integer
리턴 boolean

render_file_template() 공개 메소드

Render file template.

setup_actions() 보호된 메소드

Setup actions.
protected setup_actions ( )

setup_filters() 보호된 메소드

Setup filters.
protected setup_filters ( )

wp_get_attachment_metadata() 공개 메소드

Get attachment metadata.
public wp_get_attachment_metadata ( mixed $data, integer $post_id ) : mixed
$data mixed
$post_id integer
리턴 mixed

프로퍼티 상세

$convert_type 공개적으로 프로퍼티

The convert type.
public string $convert_type
리턴 string

$default_value 공개적으로 프로퍼티

The default value.
public array $default_value
리턴 array

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

File type.
protected string $file_type
리턴 string