PHP Class Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\CustomPostTypeSupportSettingsBox

Since: 3.0.0
Inheritance: implements Inpsyde\MultilingualPress\Common\Setting\SettingsBoxViewModel
Afficher le fichier Open project: inpsyde/multilingual-press

Méthodes publiques

Méthode Description
__construct ( array $post_types, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce )
description ( ) : string Returns the description.
id ( ) : string Returns the ID of the container element.
label_id ( ) : string Returns the ID of the form element to be used by the label in order to make it accessible for screen readers.
markup ( ) : string Returns the markup for the settings box.
title ( ) : string Returns the title of the settings box.

Private Methods

Méthode Description
render_checkbox ( string $name, string $id, boolean $checked ) : void Renders a checkbox element according to the given data.
render_table_row ( $post_type, $slug, array $settings )

Method Details

__construct() public méthode

Since: 3.0.0
public __construct ( array $post_types, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce )
$post_types array Post types.
$nonce Inpsyde\MultilingualPress\Common\Nonce\Nonce Nonce object.

description() public méthode

Returns the description.
Since: 3.0.0
public description ( ) : string
Résultat string The description.

id() public méthode

Returns the ID of the container element.
Since: 3.0.0
public id ( ) : string
Résultat string The ID of the container element.

label_id() public méthode

Returns the ID of the form element to be used by the label in order to make it accessible for screen readers.
Since: 3.0.0
public label_id ( ) : string
Résultat string The ID of the primary form element.

markup() public méthode

Returns the markup for the settings box.
Since: 3.0.0
public markup ( ) : string
Résultat string The markup for the settings box.

title() public méthode

Returns the title of the settings box.
Since: 3.0.0
public title ( ) : string
Résultat string The title of the settings box.