PHP 클래스 Mlp_Quicklink_Positions_Data

상속: implements Inpsyde\MultilingualPress\Common\Setting\SettingsBoxViewModel
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
__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