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 174 of file class.ilProgressBar.php.
References $tpl, array, ilUtil\getImagePath(), and TYPE_WARNING.
176 $tpl =
new ilTemplate(
"tpl.il_progress.html",
true,
true,
"Services/UIComponent/ProgressBar");
178 $tpl->setVariable(
"MIN", $this->min);
179 $tpl->setVariable(
"MAX", $this->max);
180 $tpl->setVariable(
"CURRENT_INT", round($this->current));
181 $tpl->setVariable(
"CURRENT", round($this->current));
182 $tpl->setVariable(
"CAPTION", $this->caption);
185 self::TYPE_INFO =>
"info" 186 ,self::TYPE_SUCCESS =>
"success" 188 ,self::TYPE_DANGER =>
"danger" 190 $css =
array(
"progress-bar-".$map[$this->type]);
194 $css[] =
"progress-bar-striped";
202 $tpl->setVariable(
"CSS", implode(
" ", $css));
204 if(!$this->show_caption)
206 $tpl->touchBlock(
"hide_caption_in_bl");
207 $tpl->touchBlock(
"hide_caption_out_bl");
210 if(strlen($this->ajax_url)
and $this->ajax_timeout)
212 $tpl->setCurrentBlock(
'async_status');
213 $tpl->setVariable(
'ASYNC_STATUS_ID',$this->unique_id);
215 $tpl->setVariable(
'AJAX_URL',$this->ajax_url);
216 $tpl->setVariable(
'AJAX_TIMEOUT',1000 * (
int) $this->ajax_timeout);
217 $tpl->parseCurrentBlock();
220 $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: