PHP Class Papi_Property_Link, 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
$link_fields array Link fields.

Méthodes publiques

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

Méthodes protégées

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

Method Details

delete_value() public méthode

Delete value from the database.
public delete_value ( string $slug, integer $post_id, string $type ) : boolean
$slug string
$post_id integer
$type string
Résultat boolean

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

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

load_value() public méthode

Load value from database.
public load_value ( mixed $value, string $slug, integer $post_id ) : array
$value mixed
$slug string
$post_id integer
Résultat array

setup_actions() protected méthode

Setup actions.
protected setup_actions ( )

update_value() public méthode

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

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