PHP Class Mlp_Quicklink_Positions_Data

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

Méthodes publiques

Méthode Description
__construct ( Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce ) Constructor. Sets up the properties.
description ( ) : string Returns the box description.
id ( ) : string Returns the value for ID attribute for the box.
label_id ( ) : string Returns the ID used in the main form element.
markup ( ) : mixed | void
title ( ) : string Returns the box title.

Private Methods

Méthode Description
get_box_content ( ) : string Creates the content for the extra box, four illustrated checkboxes.
get_current_position ( array $positions ) : string Returns the currently selected position.
get_position_names ( ) : string[] Returns the keys and labels for the positions.

Method Details

__construct() public méthode

Constructor. Sets up the properties.
public __construct ( Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce )
$nonce Inpsyde\MultilingualPress\Common\Nonce\Nonce Nonce object.

description() public méthode

Will be enclosed in p tags by the view, so make sure the markup is valid afterwards.
public description ( ) : string
Résultat string

id() public méthode

Returns the value for ID attribute for the box.
public id ( ) : string
Résultat string

label_id() public méthode

Used to wrap the description in a label element, so it is accessible for screen reader users.
public label_id ( ) : string
Résultat string

markup() public méthode

public markup ( ) : mixed | void
Résultat mixed | void Either a value, or void for actions.

title() public méthode

Will be wrapped in h4 tags by the view if it is not empty.
public title ( ) : string
Résultat string