PHP Класс Mlp_Quicklink_Positions_Data

Наследование: implements Inpsyde\MultilingualPress\Common\Setting\SettingsBoxViewModel
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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

description() публичный Метод

Will be enclosed in p tags by the view, so make sure the markup is valid afterwards.
public description ( ) : string
Результат string

id() публичный Метод

Returns the value for ID attribute for the box.
public id ( ) : string
Результат string

label_id() публичный Метод

Used to wrap the description in a label element, so it is accessible for screen reader users.
public label_id ( ) : string
Результат string

markup() публичный Метод

public markup ( ) : mixed | void
Результат mixed | void Either a value, or void for actions.

title() публичный Метод

Will be wrapped in h4 tags by the view if it is not empty.
public title ( ) : string
Результат string