Definition at line 11 of file class.ilProgressBar.php.
◆ __construct()
ilProgressBar::__construct |
( |
| ) |
|
|
protected |
◆ getInstance()
static ilProgressBar::getInstance |
( |
| ) |
|
|
static |
◆ render()
ilProgressBar::render |
( |
| ) |
|
Render.
- Returns
- string
Definition at line 155 of file class.ilProgressBar.php.
References $tpl.
157 $tpl =
new ilTemplate(
"tpl.il_progress.html",
true,
true,
"Services/UIComponent/ProgressBar");
159 $tpl->setVariable(
"MIN", $this->min);
160 $tpl->setVariable(
"MAX", $this->max);
161 $tpl->setVariable(
"CURRENT_INT", round($this->current));
162 $tpl->setVariable(
"CURRENT", round($this->current));
163 $tpl->setVariable(
"CAPTION", $this->caption);
166 self::TYPE_INFO =>
"info" 167 ,self::TYPE_SUCCESS =>
"success" 168 ,self::TYPE_WARNING =>
"warning" 169 ,self::TYPE_DANGER =>
"danger" 171 $css = array(
"progress-bar-".$map[$this->type]);
175 $css[] =
"progress-bar-striped";
183 $tpl->setVariable(
"CSS", implode(
" ", $css));
185 if(!$this->show_caption)
187 $tpl->touchBlock(
"hide_caption_in_bl");
188 $tpl->touchBlock(
"hide_caption_out_bl");
special template class to simplify handling of ITX/PEAR
◆ setAnimated()
ilProgressBar::setAnimated |
( |
|
$a_value | ) |
|
◆ setCaption()
ilProgressBar::setCaption |
( |
|
$a_value | ) |
|
◆ setCurrent()
ilProgressBar::setCurrent |
( |
|
$a_value | ) |
|
◆ setMax()
ilProgressBar::setMax |
( |
|
$a_value | ) |
|
◆ setMin()
ilProgressBar::setMin |
( |
|
$a_value | ) |
|
◆ setShowCaption()
ilProgressBar::setShowCaption |
( |
|
$a_value | ) |
|
◆ setStriped()
ilProgressBar::setStriped |
( |
|
$a_value | ) |
|
◆ setType()
ilProgressBar::setType |
( |
|
$a_value | ) |
|
|
protected |
◆ $animated
◆ $caption
◆ $current
◆ $max
◆ $min
◆ $show_caption
ilProgressBar::$show_caption |
|
protected |
◆ $striped
◆ $type
◆ TYPE_DANGER
const ilProgressBar::TYPE_DANGER = 4 |
◆ TYPE_INFO
const ilProgressBar::TYPE_INFO = 1 |
◆ TYPE_SUCCESS
const ilProgressBar::TYPE_SUCCESS = 2 |
◆ TYPE_WARNING
const ilProgressBar::TYPE_WARNING = 3 |
The documentation for this class was generated from the following file: