PHP 클래스 WPDKUIProgress

부터: 1.7.1
저자: =undo= ([email protected])
상속: extends WPDKHTMLTag
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 프로퍼티들

프로퍼티 타입 설명
$bars array List of WPDKUIProgressBar instances.
$id string Progress (container) id.
$width string Width (px or %) of progress container.

공개 메소드들

메소드 설명
__construct ( string $id, integer | array | WPDKUIProgressBar $percentage_or_bars, string $progress_bar_type = WPDKUIProgressBarType::BASIC ) : WPDKUIProgress Create an instance of WPDKUIProgress class.
html ( ) : string Return the HTML markup of Progress
init ( string $id, integer | array | WPDKUIProgressBar $percentage_or_bars, string $progress_bar_type = WPDKUIProgressBarType::BASIC ) : WPDKUIProgress Return an instance of WPDKUIProgress class

메소드 상세

__construct() 공개 메소드

Create an instance of WPDKUIProgress class.
public __construct ( string $id, integer | array | WPDKUIProgressBar $percentage_or_bars, string $progress_bar_type = WPDKUIProgressBarType::BASIC ) : WPDKUIProgress
$id string ID attribute for main container.
$percentage_or_bars integer | array | WPDKUIProgressBar Optional. Numeric percentage, array of WPDKUIProgressBar or an instance of WPDKUIProgressBar.
$progress_bar_type string Optional. Type of progress. This params is ignored if `$percentage_or_bars` is ans array of WPDKUIProgressBar
리턴 WPDKUIProgress

html() 공개 메소드

Return the HTML markup of Progress
public html ( ) : string
리턴 string

init() 공개 정적인 메소드

Return an instance of WPDKUIProgress class
public static init ( string $id, integer | array | WPDKUIProgressBar $percentage_or_bars, string $progress_bar_type = WPDKUIProgressBarType::BASIC ) : WPDKUIProgress
$id string ID attribute for main container.
$percentage_or_bars integer | array | WPDKUIProgressBar Optional. Numeric percentage, array of WPDKUIProgressBar or an instance of WPDKUIProgressBar.
$progress_bar_type string Optional. Type of progress. This params is ignored if `$percentage_or_bars` is ans array of WPDKUIProgressBar
리턴 WPDKUIProgress

프로퍼티 상세

$bars 공개적으로 프로퍼티

List of WPDKUIProgressBar instances.
public array $bars
리턴 array

$id 공개적으로 프로퍼티

Progress (container) id.
public string $id
리턴 string

$width 공개적으로 프로퍼티

Width (px or %) of progress container.
public string $width
리턴 string