PHP Class Papi_Property_File, papi

Inheritance: extends Papi_Property
Afficher le fichier Open project: wp-papi/papi

Méthodes publiques

Свойство Type Description
$convert_type string The convert type.
$default_value array The default value.

Protected Properties

Свойство Type Description
$file_type string File type.

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Method Details

format_value() public méthode

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
Résultat mixed

get_default_settings() public méthode

Get default settings.
public get_default_settings ( ) : array
Résultat array

get_labels() public méthode

Get labels.
public get_labels ( ) : array
Résultat array

html() public méthode

Render property html.
public html ( )

import_value() public méthode

Import value to the property.
public import_value ( mixed $value, string $slug, integer $post_id ) : mixed
$value mixed
$slug string
$post_id integer
Résultat mixed

is_attachment() protected méthode

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

render_file_template() public méthode

Render file template.

setup_actions() protected méthode

Setup actions.
protected setup_actions ( )

setup_filters() protected méthode

Setup filters.
protected setup_filters ( )

wp_get_attachment_metadata() public méthode

Get attachment metadata.
public wp_get_attachment_metadata ( mixed $data, integer $post_id ) : mixed
$data mixed
$post_id integer
Résultat mixed

Property Details

$convert_type public_oe property

The convert type.
public string $convert_type
Résultat string

$default_value public_oe property

The default value.
public array $default_value
Résultat array

$file_type protected_oe property

File type.
protected string $file_type
Résultat string