PHP Class WPDKUIProgressBar

Since: 1.7.1
Author: =undo= ([email protected])
Inheritance: extends WPDKHTMLTag
显示文件 Open project: wpxtreme/wpdk

Public Properties

Property Type Description
$animated boolean If this property is TRUE also $stripe is TRUE.
$displayPercentage boolean Display the percentage inner progress bar.
$id string Progress (container) id.
$label string The label used instead the percentage.
$percentage integer Percentage
$striped boolean Display a striped progress bar.
$type string Type (style) of bar

Public Methods

Method Description
__construct ( string $id, $percentage, $progress_bar_type = WPDKUIProgressBarType::BASIC ) : WPDKUIProgress Create an instance of WPDKUIProgress class
html ( ) : string Return the HTML markup of single Progress bar

Method Details

__construct() public method

Create an instance of WPDKUIProgress class
public __construct ( string $id, $percentage, $progress_bar_type = WPDKUIProgressBarType::BASIC ) : WPDKUIProgress
$id string ID attribute
return WPDKUIProgress

html() public method

Return the HTML markup of single Progress bar
public html ( ) : string
return string

Property Details

$animated public_oe property

If this property is TRUE also $stripe is TRUE.
public bool $animated
return boolean

$displayPercentage public_oe property

Display the percentage inner progress bar.
public bool $displayPercentage
return boolean

$id public_oe property

Progress (container) id.
public string $id
return string

$label public_oe property

The label used instead the percentage.
public string $label
return string

$percentage public_oe property

Percentage
public int $percentage
return integer

$striped public_oe property

Display a striped progress bar.
public bool $striped
return boolean

$type public_oe property

Type (style) of bar
public string $type
return string