Exemplo n.º 1
0
 /**
  * When progress is updated, after a certain time, starts actually displaying
  * the progress bar.
  *
  * @see \core\progress\base::update_progress()
  */
 public function update_progress()
 {
     // If we haven't started yet, consider starting.
     if ($this->starttime) {
         if (time() > $this->starttime) {
             $this->starttime = 0;
         } else {
             // Do nothing until start time.
             return;
         }
     }
     // We have started, so handle as default.
     parent::update_progress();
 }