PHP 클래스 RWMB_Image_Advanced_Field

상속: extends RWMB_Media_Field
파일 보기 프로젝트 열기: rilwis/meta-box 1 사용 예제들

공개 메소드들

메소드 설명
admin_enqueue_scripts ( ) Enqueue scripts and styles
file_info ( integer $file, array $args = [] ) : array | boolean Get uploaded file information.
format_single_value ( array $field, array $value ) : string Format a single value for the helper functions.
format_value ( array $field, string | array $value ) : string Format value for the helper functions.
get_value ( array $field, array $args = [], null $post_id = null ) : mixed Get the field value.
normalize ( array $field ) : array Normalize parameters for field
print_templates ( ) : void Template for media item

메소드 상세

admin_enqueue_scripts() 정적인 공개 메소드

Enqueue scripts and styles
static public admin_enqueue_scripts ( )

file_info() 정적인 공개 메소드

Get uploaded file information.
static public file_info ( integer $file, array $args = [] ) : array | boolean
$file integer Attachment image ID (post ID). Required.
$args array Array of arguments (for size).
리턴 array | boolean False if file not found. Array of image info on success

format_single_value() 공개 정적인 메소드

Format a single value for the helper functions.
public static format_single_value ( array $field, array $value ) : string
$field array Field parameter
$value array The value
리턴 string

format_value() 공개 정적인 메소드

Format value for the helper functions.
public static format_value ( array $field, string | array $value ) : string
$field array Field parameter
$value string | array The field meta value
리턴 string

get_value() 정적인 공개 메소드

Get the field value.
static public get_value ( array $field, array $args = [], null $post_id = null ) : mixed
$field array
$args array
$post_id null
리턴 mixed

normalize() 정적인 공개 메소드

Normalize parameters for field
static public normalize ( array $field ) : array
$field array
리턴 array

print_templates() 공개 정적인 메소드

Template for media item
public static print_templates ( ) : void
리턴 void