PHP 클래스 WPSEO_Metabox_Tab_Section, wordpress-seo

상속: implements WPSEO_Metabox_Section
파일 보기 프로젝트 열기: yoast/wordpress-seo

공개 프로퍼티들

프로퍼티 타입 설명
$name string
$tabs WPSEO_Metabox_Tab[]

공개 메소드들

메소드 설명
__construct ( string $name, string $link_content, array $tabs = [], array $options = [] ) Constructor.
add_tab ( WPSEO_Metabox_Tab $tab ) Add a WPSEO_Metabox_Tab object to the tabs.
display_content ( ) Outputs the section content if any tab has been added.
display_link ( ) Outputs the section link if any tab has been added.

보호된 메소드들

메소드 설명
has_tabs ( ) : boolean Checks if any tabs have been added to the section.

비공개 메소드들

메소드 설명
tab_content ( ) : string Concatenates all tabs' content into one html string.
tab_links ( ) : string Concatenates all tabs' links into one html string.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $name, string $link_content, array $tabs = [], array $options = [] )
$name string The name of the section, used as an identifier in the html. Can only contain URL safe characters.
$link_content string The text content of the section link.
$tabs array The metabox tabs (`WPSEO_Metabox_Tabs[]`) to be included in the section.
$options array Optional link attributes.

add_tab() 공개 메소드

Add a WPSEO_Metabox_Tab object to the tabs.
public add_tab ( WPSEO_Metabox_Tab $tab )
$tab WPSEO_Metabox_Tab Tab to add.

display_content() 공개 메소드

Outputs the section content if any tab has been added.
public display_content ( )

has_tabs() 보호된 메소드

Checks if any tabs have been added to the section.
protected has_tabs ( ) : boolean
리턴 boolean

프로퍼티 상세

$name 공개적으로 프로퍼티

public string $name
리턴 string

$tabs 공개적으로 프로퍼티

public WPSEO_Metabox_Tab[] $tabs
리턴 WPSEO_Metabox_Tab[]