PHP 클래스 WPDKTwitterBootstrapButton

## Overview This class is a wrap of Twitter Bootstrap Button
사용 중단: since 1.4.21
저자: =undo= ([email protected])
상속: extends WPDKTwitterBootstrap
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 프로퍼티들

프로퍼티 타입 설명
$block boolean Display the button as block
$disabled boolean TRUE to disabled the button
$href string Usage only for tag anchor
$label string The button label
$size string Any of WPDKTwitterBootstrapButtonSize enums
$tag string You can choose A, BUTTON or INPUT tag type. Usage WPDKHTMLTagName enums.
$type string Any of WPDKTwitterBootstrapButtonType enum

공개 메소드들

메소드 설명
__construct ( string $id, string $label, string $type = WPDKTwitterBootstrapButtonType::PRIMARY, string $tag = WPDKHTMLTagName::BUTTON ) : WPDKTwitterBootstrapButton Create and instance of WPDKTwitterBootstrapButton class
html ( ) : string Return the HTML markup for the button

메소드 상세

__construct() 공개 메소드

Create and instance of WPDKTwitterBootstrapButton class
public __construct ( string $id, string $label, string $type = WPDKTwitterBootstrapButtonType::PRIMARY, string $tag = WPDKHTMLTagName::BUTTON ) : WPDKTwitterBootstrapButton
$id string ID and name of tag
$label string Label of button
$type string Optional. Any WPDKTwitterBootstrapButtonTyped enum
$tag string Optional. Type of tag
리턴 WPDKTwitterBootstrapButton

html() 공개 메소드

Return the HTML markup for the button
public html ( ) : string
리턴 string

프로퍼티 상세

$block 공개적으로 프로퍼티

Display the button as block
public bool $block
리턴 boolean

$disabled 공개적으로 프로퍼티

TRUE to disabled the button
public bool $disabled
리턴 boolean

$href 공개적으로 프로퍼티

Usage only for tag anchor
public string $href
리턴 string

$label 공개적으로 프로퍼티

The button label
public string $label
리턴 string

$size 공개적으로 프로퍼티

Any of WPDKTwitterBootstrapButtonSize enums
public string $size
리턴 string

$tag 공개적으로 프로퍼티

You can choose A, BUTTON or INPUT tag type. Usage WPDKHTMLTagName enums.
public string $tag
리턴 string

$type 공개적으로 프로퍼티

Any of WPDKTwitterBootstrapButtonType enum
public string $type
리턴 string