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 173 of file class.ilProgressBar.php.
References $tpl, array, and ilUtil\getImagePath().
175 $tpl =
new ilTemplate(
"tpl.il_progress.html",
true,
true,
"Services/UIComponent/ProgressBar");
177 $tpl->setVariable(
"MIN", $this->min);
178 $tpl->setVariable(
"MAX", $this->max);
179 $tpl->setVariable(
"CURRENT_INT", round($this->current));
180 $tpl->setVariable(
"CURRENT", round($this->current));
181 $tpl->setVariable(
"CAPTION", $this->caption);
184 self::TYPE_INFO =>
"info" 185 ,self::TYPE_SUCCESS =>
"success" 186 ,self::TYPE_WARNING =>
"warning" 187 ,self::TYPE_DANGER =>
"danger" 189 $css =
array(
"progress-bar-" . $map[$this->type]);
191 if ($this->striped) {
192 $css[] =
"progress-bar-striped";
195 if ($this->animated) {
199 $tpl->setVariable(
"CSS", implode(
" ", $css));
201 if (!$this->show_caption) {
202 $tpl->touchBlock(
"hide_caption_in_bl");
203 $tpl->touchBlock(
"hide_caption_out_bl");
206 if (strlen($this->ajax_url) and $this->ajax_timeout) {
207 $tpl->setCurrentBlock(
'async_status');
208 $tpl->setVariable(
'ASYNC_STATUS_ID', $this->unique_id);
210 $tpl->setVariable(
'AJAX_URL', $this->ajax_url);
211 $tpl->setVariable(
'AJAX_TIMEOUT', 1000 * (
int) $this->ajax_timeout);
212 $tpl->parseCurrentBlock();
215 $tpl->setVariable(
'PROGRESS_ID', $this->unique_id);
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
special template class to simplify handling of ITX/PEAR
Create styles array
The data for the language used.
◆ setAnimated()
ilProgressBar::setAnimated |
( |
|
$a_value | ) |
|
◆ setAsyncStatusUrl()
ilProgressBar::setAsyncStatusUrl |
( |
|
$a_target | ) |
|
◆ setAsynStatusTimeout()
ilProgressBar::setAsynStatusTimeout |
( |
|
$a_timeout | ) |
|
◆ setCaption()
ilProgressBar::setCaption |
( |
|
$a_value | ) |
|
◆ setCurrent()
ilProgressBar::setCurrent |
( |
|
$a_value | ) |
|
◆ setId()
ilProgressBar::setId |
( |
|
$a_id | ) |
|
◆ 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 | ) |
|
◆ $ajax_timeout
ilProgressBar::$ajax_timeout = 5 |
|
protected |
◆ $ajax_url
ilProgressBar::$ajax_url = '' |
|
protected |
◆ $animated
◆ $caption
◆ $current
◆ $max
◆ $min
◆ $show_caption
ilProgressBar::$show_caption |
|
protected |
◆ $striped
◆ $type
◆ $unique_id
ilProgressBar::$unique_id = '' |
|
protected |
◆ 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: