This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.  
 More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Progress bar GUI 
- Author
 - Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
 
- Deprecated:
 - 10 
 
Definition at line 25 of file class.ilProgressBar.php.
 
◆ __construct()
  
  
      
        
          | ilProgressBar::__construct  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ getInstance()
  
  
      
        
          | static ilProgressBar::getInstance  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ render()
      
        
          | ilProgressBar::render  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 127 of file class.ilProgressBar.php.
References ilUtil\getImagePath().
  129         $tpl = 
new ilTemplate(
"tpl.il_progress.html", 
true, 
true, 
"components/ILIAS/UIComponent/ProgressBar");
   131         $tpl->setVariable(
"MIN", $this->min);
   132         $tpl->setVariable(
"MAX", $this->max);
   133         $tpl->setVariable(
"CURRENT_INT", round($this->current));
   134         $tpl->setVariable(
"CURRENT", round($this->current));
   135         $tpl->setVariable(
"CAPTION", $this->caption);
   138             self::TYPE_INFO => 
"info"   139             ,self::TYPE_SUCCESS => 
"success"   140             ,self::TYPE_WARNING => 
"warning"   141             ,self::TYPE_DANGER => 
"danger"   143         $css = array(
"progress-bar-" . $map[$this->type]);
   145         if ($this->striped) {
   146             $css[] = 
"progress-bar-striped";
   149         if ($this->animated) {
   153         $tpl->setVariable(
"CSS", implode(
" ", $css));
   155         if (!$this->show_caption) {
   156             $tpl->touchBlock(
"hide_caption_in_bl");
   157             $tpl->touchBlock(
"hide_caption_out_bl");
   160         if ($this->ajax_url !== 
'' && $this->ajax_timeout) {
   161             $this->main_tpl->addJavaScript(
"assets/js/progress_bar.js");
   162             $tpl->setCurrentBlock(
'async_status');
   163             $tpl->setVariable(
'ASYNC_STATUS_ID', $this->unique_id);
   165             $tpl->setVariable(
'AJAX_URL', $this->ajax_url);
   166             $tpl->setVariable(
'AJAX_TIMEOUT', 1000 * $this->ajax_timeout);
   167             $tpl->parseCurrentBlock();
   170         $tpl->setVariable(
'PROGRESS_ID', $this->unique_id);
 
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory) 
 
 
 
 
◆ setAnimated()
      
        
          | ilProgressBar::setAnimated  | 
          ( | 
          bool  | 
          $a_value | ) | 
           | 
        
      
 
 
◆ setAsyncStatusUrl()
      
        
          | ilProgressBar::setAsyncStatusUrl  | 
          ( | 
          string  | 
          $a_target | ) | 
           | 
        
      
 
 
◆ setAsynStatusTimeout()
      
        
          | ilProgressBar::setAsynStatusTimeout  | 
          ( | 
          int  | 
          $a_timeout | ) | 
           | 
        
      
 
 
◆ setCaption()
      
        
          | ilProgressBar::setCaption  | 
          ( | 
          string  | 
          $a_value | ) | 
           | 
        
      
 
 
◆ setCurrent()
      
        
          | ilProgressBar::setCurrent  | 
          ( | 
          float  | 
          $a_value | ) | 
           | 
        
      
 
 
◆ setId()
      
        
          | ilProgressBar::setId  | 
          ( | 
          string  | 
          $a_id | ) | 
           | 
        
      
 
 
◆ setMax()
      
        
          | ilProgressBar::setMax  | 
          ( | 
          int  | 
          $a_value | ) | 
           | 
        
      
 
 
◆ setMin()
      
        
          | ilProgressBar::setMin  | 
          ( | 
          int  | 
          $a_value | ) | 
           | 
        
      
 
 
◆ setShowCaption()
      
        
          | ilProgressBar::setShowCaption  | 
          ( | 
          bool  | 
          $a_value | ) | 
           | 
        
      
 
 
◆ setStriped()
      
        
          | ilProgressBar::setStriped  | 
          ( | 
          bool  | 
          $a_value | ) | 
           | 
        
      
 
 
◆ setType()
      
        
          | ilProgressBar::setType  | 
          ( | 
          int  | 
          $a_value | ) | 
           | 
        
      
 
 
◆ $ajax_timeout
  
  
      
        
          | int ilProgressBar::$ajax_timeout = 5 | 
         
       
   | 
  
protected   | 
  
 
 
◆ $ajax_url
  
  
      
        
          | string ilProgressBar::$ajax_url = '' | 
         
       
   | 
  
protected   | 
  
 
 
◆ $animated
  
  
      
        
          | bool ilProgressBar::$animated = false | 
         
       
   | 
  
protected   | 
  
 
 
◆ $async_timeout
  
  
      
        
          | int ilProgressBar::$async_timeout = 0 | 
         
       
   | 
  
protected   | 
  
 
 
◆ $caption
  
  
      
        
          | string ilProgressBar::$caption = "" | 
         
       
   | 
  
protected   | 
  
 
 
◆ $current
  
  
      
        
          | int ilProgressBar::$current = 0 | 
         
       
   | 
  
protected   | 
  
 
 
◆ $main_tpl
◆ $max
  
  
      
        
          | int ilProgressBar::$max = 0 | 
         
       
   | 
  
protected   | 
  
 
 
◆ $min
  
  
      
        
          | int ilProgressBar::$min = 0 | 
         
       
   | 
  
protected   | 
  
 
 
◆ $show_caption
  
  
      
        
          | bool ilProgressBar::$show_caption = false | 
         
       
   | 
  
protected   | 
  
 
 
◆ $striped
  
  
      
        
          | bool ilProgressBar::$striped = false | 
         
       
   | 
  
protected   | 
  
 
 
◆ $type
  
  
      
        
          | int ilProgressBar::$type = 0 | 
         
       
   | 
  
protected   | 
  
 
 
◆ $unique_id
  
  
      
        
          | string 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: