PHP Class Mlp_Quicklink_Positions_Data

Inheritance: implements Inpsyde\MultilingualPress\Common\Setting\SettingsBoxViewModel
Exibir arquivo Open project: inpsyde/multilingual-press

Public Methods

Method 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

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

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

description() public method

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

id() public method

Returns the value for ID attribute for the box.
public id ( ) : string
return string

label_id() public method

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

markup() public method

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

title() public method

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