PHP Class Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\CustomPostTypeSupportSettingsBox

Since: 3.0.0
Inheritance: implements Inpsyde\MultilingualPress\Common\Setting\SettingsBoxViewModel
Mostra file Open project: inpsyde/multilingual-press

Public Methods

Method 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

Method 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 method

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 method

Returns the description.
Since: 3.0.0
public description ( ) : string
return string The description.

id() public method

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

label_id() public method

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
return string The ID of the primary form element.

markup() public method

Returns the markup for the settings box.
Since: 3.0.0
public markup ( ) : string
return string The markup for the settings box.

title() public method

Returns the title of the settings box.
Since: 3.0.0
public title ( ) : string
return string The title of the settings box.